A new conditional diffusion framework called Duet-Diff achieved lower missing-value imputation errors than 14 competing baselines on electricity and weather time-series benchmarks, according to a computational modeling study published December 3, 2026, in the Journal of King Saud University Computer and Information Sciences. Developed by Yanqing Zhang, Xiang Yin, and Guiping Liu, the model combines adaptive fusion of short-term and seasonal historical priors with decoupled temporal-feature encoding and a two-stage denoiser. Across real-world datasets covering electricity, meteorology, and road traffic, Duet-Diff outperformed representative statistical, machine learning, neural, and diffusion baselines in most experimental scenarios under both point-missing and block-missing patterns. Its advantages were not uniform, however: competing diffusion models recorded lower errors on several metrics in the high-dimensional traffic benchmark, and Duet-Diff’s 100-sample probabilistic inference required substantially more runtime than deterministic models and roughly 2.46 times that of a leading diffusion baseline.
The study targets multivariate time series imputation, the estimation of missing entries across multiple correlated variables recorded over time. Such data appear in healthcare monitoring, traffic management, industrial control, energy systems, and environmental sensing, supporting forecasting, anomaly detection, diagnosis, and decision-making. Sensor malfunction, communication errors, limited sampling budgets, and manual recording omissions routinely create gaps that distort temporal dynamics, weaken inter-variable dependencies, and degrade downstream analytics. Earlier statistical interpolation, matrix or tensor completion, and low-rank methods often fall short on nonlinear, nonstationary sequences, while recurrent, attention, graph, and diffusion models have improved recovery. Yet most existing approaches reconstruct missing segments in one stage or condition primarily on observed entries without explicitly constructing complementary historical priors. Compressing global trend estimation, boundary transition, and local detail recovery into a single mapping can produce boundary discontinuity, over-smoothed local dynamics, or distorted trends during long or complex gaps.
Formally, the authors treat imputation as learning a conditional distribution over missing entries given observed values and a binary observation mask. To guide reverse diffusion with historical context, Duet-Diff introduces an Adaptive Dual-Prior Fusion (ADPF) module that builds two references for each target window: a previous-window prior capturing short-term continuity from the preceding interval, and a seasonal prior drawn from temporally aligned historical segments using dataset-specific periodic lags of 4 for electricity, 6 for weather, and 12 for traffic. Because historical segments may themselves contain missing values, ADPF tracks validity masks for both priors. A learnable gating network of two 1×1 convolutional layers—mapping four concatenated channels to 32 with ReLU activation and then to one channel with a sigmoid function—produces position-dependent weights across variables and timestamps. Mask-aware normalization then zeroes out unavailable entries and suppresses positions where neither historical prior is valid.
External priors can provide unreliable guidance if they are not coupled with dependencies inside the current window. To model those internal constraints, the team created a Prior-aware Temporal-Feature Dependency Encoder (PTFDE) that turns basic side information into a structured conditional representation. For each window, PTFDE concatenates 128-dimensional relative temporal embeddings, 16-dimensional variable embeddings, and the conditional observation mask, describing when each entry occurs, which variable it belongs to, and whether it is observed. After a 1×1 convolutional projection into a unified latent space, PTFDE applies decoupled attention: feature-domain attention first captures cross-variable correlations at each timestamp, and temporal-domain attention then models local contextual transitions along time. Instead of flattening all time-variable positions into one entangled attention space, decoupling reduces unnecessary interactions. Rather than concatenating historical priors into side information, PTFDE collaborates with ADPF during denoising by supplying intra-window structure alongside external historical guidance.
To avoid entangling global structure estimation with local dynamic detail, the authors designed a Dual-stage Gated Attention (DGA) denoiser as the reverse network. Its architecture uses four stacked layers, 64 hidden channels, eight attention heads, a 128-dimensional diffusion-step embedding, a 256-dimensional feed-forward layer, and two feature-dependency encoder layers. Within each gated attention residual block, conditioned on the diffusion step and PTFDE representation, temporal-domain and feature-domain attention run sequentially before a gated activation emphasizes relevant dynamics and suppresses noisy signals. DGA executes two consecutive stages: the first establishes the overall temporal structure and dominant trend, while the second receives the sum of the first stage’s hidden and skip representations to refine local fluctuations, peak-valley variations, and temporal transitions. At decoding, DGA injects the ADPF fused prior via stochastic interpolation with the noisy conditional input using element-wise random coefficients sampled independently from a uniform distribution between zero and one.
During training, Gaussian noise is added to target sequences while observed positions remain fixed, and the network learns to predict the injected noise at masked targets. The training objective combines four weighted losses configured per dataset and missing pattern: a main noise-prediction loss on the final output, an auxiliary stage-wise loss averaging noise-prediction errors across both stages, a contrastive consistency loss comparing hidden representations under conditional perturbations with a temperature of 0.1, and a latent representation alignment loss using cosine similarity between incomplete-view representations and a stop-gradient complete-view anchor. Implemented in PyTorch 1.13.1 on an Intel Core i7-14700KF CPU and an NVIDIA GeForce RTX 4070 Ti SUPER GPU, Duet-Diff was trained with the Adam optimizer at a 0.001 learning rate for up to 300 epochs over 24-step windows and 50 diffusion steps. During inference, missing entries start as standard Gaussian noise and undergo 50 reverse steps across 100 independent samples per window.
The team evaluated Duet-Diff on three publicly available real-world datasets: ETT electricity measurements recorded every 15 minutes, Weather meteorological observations every 10 minutes, and METR-LA road-sensor traffic speeds every 5 minutes. For ETT, July through October 2016 served as the test set, November 2016 through February 2017 as validation, and March 2017 through June 2018 as training; Weather and METR-LA used chronological splits of 70 percent training, 10 percent validation, and 20 percent testing, all divided into non-overlapping 24-step windows. Two protocols simulated missingness: point missing randomly masked 20 percent of entries, while block missing randomly masked 5 percent and added continuous gaps of half to twice the window length at 0.15 percent probability. Duet-Diff was benchmarked against 14 baselines—Mean, KNN, MICE, TRMF, GP-VAE, rGAIN, BRITS, mTAN, SAITS, Non-stationary Transformer, TimesNet, CSBI, CSDI, and MTSCI—using MAE, RMSE, and MAPE on sample medians plus CRPS across all 100 samples.
Under point missing, Duet-Diff achieved lower errors than every baseline across all three point-estimate metrics on ETT and Weather. On ETT, it recorded an MAE of 0.202, an RMSE of 0.348, and a MAPE of 2.548 percent; on Weather, it obtained an MAE of 1.886, an RMSE of 16.052, and a MAPE of 1.119 percent. On METR-LA, Duet-Diff achieved the lowest RMSE at 3.163, while CSDI obtained lower MAE at 1.733 and lower MAPE at 3.026 percent. Under block missing, Duet-Diff again led on ETT with 0.729 MAE, 2.709 RMSE, and 8.996 percent MAPE, and maintained favorable errors on Weather at 4.140 MAE, 22.715 RMSE, and 2.169 percent MAPE. On METR-LA block missing, however, MTSCI outperformed Duet-Diff across all three metrics—2.114 MAE, 4.036 RMSE, and 3.669 percent MAPE versus Duet-Diff’s 2.154, 4.173, and 3.737 percent—showing that model suitability varies on high-dimensional traffic data. In a representative ETT visualization, Duet-Diff also tracked the ground-truth trajectory and rapid peak variations more smoothly than MTSCI.
Ablations and diagnostic tests examined how each module contributed. Removing ADPF on ETT point missing raised MAE from 0.202 to 0.205, RMSE from 0.348 to 0.399, and MAPE from 2.548 to 2.576 percent. Removing PTFDE on ETT block missing increased MAE from 0.729 to 0.851, RMSE from 2.709 to 3.166, and MAPE from 8.996 to 10.498 percent, while removing DGA increased MAE to 0.800. On ETT and Weather, both historical priors exhibited higher Pearson correlation and mutual information with target windows than random windows, and gate visualizations on ETT showed ADPF emphasizing the previous-window prior during sudden fluctuations and the seasonal prior during stable periodicity. On ETT point missing, adaptive fusion beat direct concatenation on all four metrics—MAE 0.202 versus 0.204, RMSE 0.348 versus 0.373, MAPE 2.548 versus 2.570 percent, and CRPS 0.0195 versus 0.0196—though a fixed seasonal prior achieved slightly lower RMSE with worse MAE and MAPE. Across three independent runs on ETT block missing, two-stage DGA also outperformed a parameter-matched single-stage denoiser on all four metrics.
Further tests assessed missingness stress and computational efficiency. On Weather point missing evaluated at 10, 30, 50, and 70 percent missing ratios using one trained checkpoint, errors stayed close at 10 and 30 percent before rising at 50 and 70 percent, with reported deviations capturing random evaluation seeds rather than separate model trainings. Across Weather consecutive gaps of 6, 12, 24, and 48 time steps, MAE, RMSE, MAPE, and CRPS increased progressively as gaps grew longer. In a unified ETT block-missing timing benchmark over 488 test windows at batch size 16, deterministic SAITS and TimesNet ran much faster—even though TimesNet contains more parameters than Duet-Diff—because they require one forward pass. Generating 100 samples took 765.090 ± 6.361 seconds for Duet-Diff (1567.807 milliseconds per window, versus 7.720 ± 0.087 seconds for one sample), roughly 2.46 times MTSCI’s 310.960918 ± 0.049133 seconds, leading the authors to prioritize faster sampling, external events, spatial topology, and domain knowledge in future work.
Subject of Research: Multivariate time series imputation using conditional diffusion models
Article Title: Duet-Diff: dual-prior and dual-stage diffusion with dependency-aware encoding for time series imputation
Article References: Zhang, Y., Yin, X., & Liu, G. (2026). Duet-Diff: dual-prior and dual-stage diffusion with dependency-aware encoding for time series imputation. Journal of King Saud University Computer and Information Sciences, 38(10), Article 1096. https://doi.org/10.1007/s44443-026-01530-8
Image Credits: AI Generated
DOI: 10.1007/s44443-026-01530-8
Keywords: Duet-Diff, multivariate time series imputation, conditional diffusion models, Adaptive Dual-Prior Fusion, Prior-aware Temporal-Feature Dependency Encoder, Dual-stage Gated Attention, seasonal priors, decoupled attention, probabilistic imputation, point-missing data, block-missing data, ETT dataset, Weather dataset, METR-LA dataset, inference efficiency, contrastive consistency loss, latent representation alignment, reverse diffusion denoising
News Source: Denise Maddox. (December 3, 2026). Duet-Diff lowers time series imputation errors on electricity and weather benchmarks. Scienmag.



