Frequency-aware Generative Models for Multivariate Time Series Imputation

Xinyu Yang, Yu Sun, Xiaojie Yuan, Xinyang Chen

TL;DR

Most time series imputation models fail because they focus on broad patterns (trends and seasonality) while neglecting the "messy" residual details. FGTI introduces a frequency-aware diffusion model that uses specialized filters to capture high-frequency information, significantly reducing imputation errors in the often-ignored residual components of data.

What Problem Does This Paper Address?

Missing data is a persistent headache in multivariate time series analysis, whether it's caused by sensor failure in a smart city or skipped measurements in an ICU. Traditionally, researchers decompose time series into three parts: Trend (long-term direction), Seasonal (repeating patterns), and Residual (the irregular "leftovers").

The authors identify a critical gap: existing deep learning models are actually quite good at capturing trends and seasonality, but they stumble on the residuals. In fact, their analysis shows that the residual term is the primary source of imputation error. Furthermore, deep learning architectures often suffer from "spectral bias," meaning they naturally gravitate toward learning low-frequency patterns and struggle to generalize to the high-frequency "noise" that often contains the most critical information for accurate reconstruction.

RMSE comparison across trend, seasonal, and residual components, highlighting the residual bottleneck.

Methods

The authors propose FGTI (Frequency-aware Generative Model for Multivariate Time Series Imputation), which is built on a conditional diffusion framework. The "secret sauce" lies in how it handles the frequency domain:

  1. Dual Frequency-Domain Filters:
    • High-frequency Filter: Uses Fast Fourier Transforms (FFT) to isolate high-frequency components specifically to guide the imputation of the residual term.
  2. Dominant-frequency Filter: Extracts the most powerful frequencies to provide background structural information for the trend and seasonal terms, ensuring the high-frequency "noise" doesn't interfere with the smoother patterns.
  3. Cross-domain Representation Learning: Instead of just feeding raw numbers into a network, FGTI uses a Transformer-based encoder to map these frequency insights into a latent space. It then employs cross-attention mechanisms (Time-frequency and Attribute-frequency learning) to fuse these frequency priors with standard time-domain representations.
  4. Frequency-aware Diffusion: The model treats imputation as a denoising process. During the reverse diffusion steps, the model uses the extracted frequency conditions to "steer" the generation of missing values, making the outcomes more predictable and accurate.

Datasets

The model was evaluated on three diverse, real-world datasets:

  • KDD: Meteorological and air quality data from Beijing (9 stations, 11 sensors).
  • Guangzhou: Traffic speed data recorded every ten minutes across 214 roads.
  • PhysioNet: Highly sparse clinical measurements (nearly 80% missing) from ICU patients.

Key Insights and Ideas

  • The "Residual" Bottleneck: The paper’s most striking insight is that we’ve been looking at the wrong part of the problem. By proving that the residual term is the biggest component of imputation error, they shift the focus from "pattern matching" to "detail reconstruction."
  • Frequency as a Structural Prior: By explicitly providing frequency information as a condition for the generative model, they bypass the natural tendency of neural networks to ignore high-frequency details.
  • Mathematical Certainty: The authors provide a theoretical proof showing that adding frequency-domain conditions reduces the conditional entropy of the diffusion process. In plain English: the frequency info makes the model "less confused" about what the missing values should be.

Key Results

FGTI consistently outperformed fifteen widely adopted baselines, including state-of-the-art models like CSDI and PriSTI.

  • Accuracy: On the KDD dataset with 10% missing values, FGTI achieved an RMSE of 0.406, a significant improvement over the next best model, PriSTI (0.472).
  • Robustness: The model maintained its lead across different missingness mechanisms, including Missing at Random (MAR) and Missing Not at Random (MNAR), which are much harder to handle than simple random deletions.
  • Downstream Impact: Better imputation led to better real-world results. Using FGTI-imputed data improved the accuracy of PM2.5 air quality predictions and increased the AUC for patient mortality forecasting on the PhysioNet dataset.

Limitations and Future Work

While FGTI is a powerhouse for accuracy, it comes with a trade-off: Resource Consumption. * Computational Cost: Like most diffusion-based models, FGTI is more computationally expensive and slower than simple matrix factorization or standard RNN/Transformer models. The authors acknowledge that its running time and GPU memory usage are slightly higher than CSDI. * Hyperparameter Tuning: The model relies on two key hyperparameters—the cutoff frequency and the number of dominant frequencies. While the authors provide suggested values, these might require careful tuning for entirely new types of data.

Future work could involve optimizing the diffusion process to make it faster (perhaps through consistency models) or exploring how these frequency filters could be integrated into even larger foundation models for time series.

Summary updated

BibTeX
@inproceedings{yang2024frequency,
  author = {Xinyu Yang and Yu Sun and Xiaojie Yuan and Xinyang Chen},
  title = {{Frequency-aware Generative Models for Multivariate Time Series Imputation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=UE6CeRMnq3},
}
Figure