Predict, Refine, Synthesize: Self-Guiding Diffusion Models for Probabilistic Time Series Forecasting

Marcel Kollovieh, Abdul Fatir Ansari, Michael Bohlke-Schneider, Jasper Zschiegner, Hao Wang, Bernie Wang

Introduction

In the landscape of time series analysis, deep learning models have traditionally been "conditional"—trained specifically to map a fixed historical window to a predefined future horizon. While successful, this approach creates brittle systems that require retraining for different forecasting lengths or specialized architectures for tasks like missing value imputation.

TSDiff introduces a paradigm shift by leveraging the generative power of diffusion models—the technology behind state-of-the-art image synthesis—in an unconditional framework. By training a single generative model to understand the underlying distribution of time series data, the authors demonstrate that a model can be "guided" during inference to perform forecasting, refinement, and synthesis without task-specific training.

The TSDiff Framework

TSDiff utilizes a backbone architecture designed for the unique challenges of sequential data. It combines S4 layers, which are highly effective at capturing long-range dependencies, with Conv1x1 layers to manage channel-wise information.

Unlike previous diffusion approaches for time series that rely on conditional training, TSDiff is trained unconditionally. The "intelligence" of the model is unlocked during the inference stage through two primary mechanisms:

1. Observation Self-Guidance

Standard diffusion guidance typically requires an auxiliary "classifier" network to steer the generation process. TSDiff eliminates this requirement through self-guidance. During the denoising process, the model uses its own internal logic to estimate a "clean" version of a noisy sample and ensures it aligns with known observations. The authors propose two variants:

  • Mean Square Guidance: Optimized for average accuracy.
  • Quantile Guidance: Utilizing an asymmetric Laplace distribution (pinball loss) to better capture the range of possible outcomes, leading to superior probabilistic forecasts.

2. Prediction Refinement as an Energy-Based Model

TSDiff can also function as a post-processor for existing "black-box" forecasting systems. By treating the learned probability density as an Energy-Based Model (EBM), TSDiff uses Langevin Monte Carlo to "nudge" the predictions of legacy models toward the manifold of realistic data. This process effectively filters out errors and aligns external predictions with the statistical patterns learned during training.

Experimental Setup and Metrics

The researchers evaluated TSDiff across eight diverse univariate datasets from the GluonTS library, including Solar, Electricity, Traffic, and Exchange Rate data.

To evaluate the quality of synthetic data, the authors introduced the Linear Predictive Score (LPS). This metric involves training a simple ridge regression model on synthetic data and testing its performance on real-world data. This provides a practical measure of how much useful, transferable information the generative model has captured.

Key Insights and Results

Forecasting and Imputation

Despite being an unconditional model, TSDiff-Q (the quantile version) proved highly competitive, outperforming or matching state-of-the-art task-specific models like CSDI on 5 out of 8 datasets. It also demonstrated significant robustness in "blackout" scenarios, where long stretches of data are missing—a task that typically necessitates specialized imputation architectures.

The Power of Synthesis

One of the most compelling findings was that TSDiff significantly outperformed existing generative models such as TimeGAN and TimeVAE in terms of the Linear Predictive Score. Interestingly, the researchers found that training a simple forecaster on synthetic data generated by TSDiff sometimes yielded better results than training on the original real-world data. This suggests that TSDiff acts as a powerful generative denoiser, capturing the essential signal while discarding the random noise inherent in real-world measurements.

Model Refinement

As a refiner, TSDiff consistently improved the accuracy of various baselines. It successfully enhanced the performance of simple models like Seasonal Naive and even provided measurable gains for sophisticated architectures like Transformers, proving its utility as a universal "plug-and-play" enhancement tool.

Conclusion and Future Directions

TSDiff demonstrates that unconditional diffusion models can serve as a "Swiss Army Knife" for time series tasks. By moving away from task-specific conditioning, the framework offers unprecedented flexibility in forecasting, refinement, and data synthesis.

While the iterative denoising process presents computational challenges compared to single-pass models, future work involving faster diffusion solvers (such as consistency models) could mitigate these bottlenecks. Additionally, automating the tuning of guidance scales and extending the framework to high-dimensional multivariate data represent promising frontiers for this research.

Summary updated

BibTeX
@inproceedings{kollovieh2023predict,
  author = {Marcel Kollovieh and Abdul Fatir Ansari and Michael Bohlke-Schneider and Jasper Zschiegner and Hao Wang and Bernie Wang},
  title = {{Predict, Refine, Synthesize: Self-Guiding Diffusion Models for Probabilistic Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=q6X038vKgU},
}
Figure