HyFAD: Hybrid Time-Frequency Diffusion with Frequency-Aware Embedding for Time Series Imputation

Hongfan Gao, Wangmeng Shen, Bin Yang, Jilin Hu

TL;DR

Standard time-domain diffusion models often smooth out sharp, localized variations when filling in missing time-series data. HyFAD solves this by coupling time- and frequency-domain diffusion within a unified framework, using a novel frequency-aware embedding to guide the denoising process from coarse global trends to fine-grained high-frequency details. This approach achieves state-of-the-art performance on real-world medical and environmental imputation benchmarks.

What Problem Does This Paper Address?

Time series imputation—the task of filling in missing values in sequential data—is vital for downstream applications in healthcare, climate science, and industrial sensing. Recently, diffusion models (like DDPMs) have become the gold standard for this task due to their ability to model complex data distributions.

However, existing diffusion models suffer from a major flaw: they operate almost exclusively in the time domain. This leads to three main problems:

  1. Over-smoothing: Standard diffusion models inject uniform (isotropic) noise across all frequencies. Because real-world time series concentrate most of their energy in low frequencies, weak high-frequency details get drowned out by noise and are rarely recovered properly.
  2. Trend vs. Dynamics Mismatch: Models struggle to balance long-term global trends with sudden, short-term local fluctuations.
  3. Frequency Blindness: Standard step embeddings tell the model when it is in the denoising process, but not where in the spectrum it should be focusing its attention.

As shown in the paper's introductory example, top-tier baselines like CSDI successfully capture coarse trends but completely smooth out sharp, localized spikes, significantly underestimating mid- and high-frequency amplitudes.

Figure 1: An imputation example from Channel 4 on PhysioNet. While CSDI captures coarse trends, it attenuates sharp local variations in the highlighted region. In contrast, HyFAD better preserves these local structures and matches the ground-truth spectrum, correcting CSDI’s underestimation of mid/high-frequency amplitudes.

Methods

The authors introduce HyFAD (Hybrid time-frequency Diffusion model with Frequency-Aware embedding), which splits the diffusion workload across both time and frequency domains.

1. Coupled Time-Frequency Diffusion

Instead of adding noise to just the time-domain signal, HyFAD uses a two-stage forward process per step: it first injects noise into the frequency domain, and then injects independent noise into the time domain.

Crucially, the reverse process mirrors this order. At each denoising step, the model first removes time-domain noise (which stabilizes global structures and low-frequency trends) and then removes frequency-domain noise (which sharpens high-frequency details). This creates a natural coarse-to-fine generation pipeline. To maintain mathematical consistency and avoid data redundancy, the authors use an orthonormal real Discrete Fourier Transform (rDFT).

Figure 2: Noise injection and denoising process in HyFAD. At each forward step, frequency-domain noise is injected first and then time-domain noise. In the reverse process, time-domain noise is removed first, followed by frequency-domain noise.

2. Frequency-Aware Diffusion Embedding

To give the model spectral guidance, HyFAD replaces standard step embeddings with a dynamic, frequency-aware embedding composed of three parts:

  • Noise-aware frequency gate: Filters out frequency bands that have suboptimal signal-to-noise ratios at a given step.
  • Stage-aware frequency schedule: Mathematically models the fact that high-frequency components degrade faster in the forward process and must be recovered later in the reverse process.
  • Missing-aware band reliability: Down-weights frequency bands that are heavily distorted by the missing data pattern itself (mitigating spectral leakage).

3. Signal Proxy Mechanism

Directly calculating Fourier transforms on data with missing values introduces severe spectral leakage. HyFAD introduces a "Signal Proxy" that dynamically patches missing intervals with the model's current latent state estimates at each step, ensuring clean frequency representations throughout the loops.

Datasets

HyFAD was evaluated on two popular real-world benchmarks:

  • PhysioNet (2012 Challenge): 4,000 clinical ICU records containing 35 variables (e.g., heart rate, albumin) recorded over 48 hours. The dataset naturally contains ~80% missing data. The authors tested performance by masking an additional 10%, 50%, and 90% of the observed data.
  • Air Quality Dataset: Hourly PM2.5 data and weather metrics from 36 monitoring stations in Beijing over 12 months, featuring a 13.3% natural, non-random missing pattern.

Key Insights and Ideas

  • The "High Frequencies Recover Last" Principle: The authors prove mathematically (Proposition 3.1) that under isotropic noise, higher-frequency bands hit their degradation thresholds earlier than lower-frequency bands. Consequently, a reverse diffusion model must learn global, low-frequency structures before it can reliably reconstruct fine-grained details.
  • Coarse-to-Fine Denoising: By separating the denoising network into a time-domain branch followed by a frequency-domain branch, the model avoids the typical competition between global consistency and local volatility.
  • Dynamic Patching Prevents Artifacts: You cannot simply take the FFT of a masked vector without creating artificial high-frequency noise. Synchronizing a "signal proxy" with the diffusion process solves this representation problem cleanly.

Key Results

HyFAD consistently outperformed all classical, deep learning, and generative baselines across both datasets.

Table 1: Imputation performance on PhysioNet and Air Quality datasets. Best results are in bold; second-best are underlined
  • PhysioNet Performance: At extreme data scarcity (90% missingness), HyFAD achieved an MAE of 0.448 and RMSE of 0.782, outperforming the next-best baseline (LSCD/CSDI) which sat at an MAE of 0.492.
  • Air Quality Performance: HyFAD achieved the lowest error rates with an MAE of 9.296 and RMSE of 17.730.
  • Bandwise Fidelity: In specialized spectral evaluations (Log-SMAE), HyFAD reduced reconstruction errors in the middle- and high-frequency bands by up to 25% and 20.8% respectively compared to CSDI, proving its unique capability to recover rapid periodic structures.

Limitations and Future Work

While powerful, the authors note a few limitations:

  • Transform Limitations: The architecture is currently tied to the Discrete Fourier Transform (DFT). Exploring alternative transforms like the Discrete Cosine Transform (DCT) or Discrete Wavelet Transform (DWT) could help capture different types of non-periodic temporal features.
  • Deterministic Focus: This study optimized for efficient, deterministic sampling using DDIM. Adapting the hybrid framework to probabilistic sampling (DDPM) would be valuable for quantifying imputation uncertainty.
  • Numerical Stability: Denoising in the frequency domain can occasionally suffer from numerical instability when reconstructing signals from highly sparse spectral representations, an area that requires specialized stabilization techniques moving forward.

Summary updated

BibTeX
@inproceedings{gao2026hyfad,
  author = {Hongfan Gao and Wangmeng Shen and Bin Yang and Jilin Hu},
  title = {{HyFAD: Hybrid Time-Frequency Diffusion with Frequency-Aware Embedding for Time Series Imputation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lWM3u6LGyO},
}
Figure