Stochastic Diffusion: A Diffusion Probabilistic Model for Stochastic Time Series Forecasting

Yuansan Liu, Sudanthi N. R. Wijewickrema, Dongting Hu, Christofer Bester, Stephen J. O'Leary, James Bailey · OpenReview

Abstract

Recent innovations in diffusion probabilistic models have paved the way for significant progress in image, text and audio generation, leading to their applications in generative time series forecasting. However, leveraging such abilities to model highly stochastic time series data remains a challenge. In this paper, we propose a novel Stochastic Diffusion (StochDiff) model which learns data-driven prior knowledge at each time step by utilizing the representational power of the stochastic latent spaces to model the variability of the multivariate time series data. The learnt prior knowledge helps the model to capture complex temporal dynamics and the inherent uncertainty of the data. This improves its ability to model highly stochastic time series data. Through extensive experiments on real-world datasets, we demonstrate the effectiveness of our proposed model on stochastic time series forecasting. Additionally, we showcase an application of our model for real-world surgical guidance, highlighting its potential to benefit the medical community.

Introduction

Generative diffusion models have significantly advanced time series forecasting. However, existing frameworks often treat diffusion as a "post-hoc" generation step following a separate sequential modeling phase. This approach creates an integration gap and typically relies on a simple, unimodal Gaussian prior ($N(0, I)$) that is often too restrictive for highly stochastic data, such as medical signals. Real-world data frequently exhibits multi-modal distributions where a single historical path could lead to several distinct future outcomes. StochDiff (Stochastic Diffusion) addresses these limitations by integrating the diffusion process directly into the sequential modeling stage, utilizing a data-driven prior to capture complex temporal dynamics.

Methodology

The core innovation of StochDiff is the transition from a two-stage generation process to a step-wise integrated framework. Instead of diffusing an entire sequence at once, the model applies a diffusion module at every individual time step.

The StochDiff architecture overview, illustrating the modeling of observations through recurrent learning and the autoregressive forecasting process.

Key Components:

  • Step-Wise Modeling: By applying diffusion at each step, the model learns the specific distribution of individual values as they evolve, enhancing its ability to handle individualized, non-linear patterns.
  • Data-Driven Prior: Rather than starting from pure noise, StochDiff learns a conditional latent variable ($z_t$). This variable is informed by both historical temporal dynamics (via an LSTM) and current data, allowing the latent space to be far more expressive than a standard normal distribution.
  • Attention-Net: During the reverse diffusion process, a specialized Attention-Net captures correlations between different dimensions of multivariate data.
  • GMM Point-Wise Solution: To improve point predictions, StochDiff fits a Gaussian Mixture Model (GMM) to the generated samples and selects the center of the largest cluster, effectively managing multi-modal distributions.

Experimental Setup

The researchers evaluated StochDiff across two categories of datasets to test its versatility: homogeneous benchmarks with consistent patterns and heterogeneous, highly stochastic clinical datasets.

Summary of datasets used in the evaluation, detailing window sizes, forecasting horizons, and statistical properties like seasonality and stationarity.

Clinical datasets like ECochG (intra-operative signals from cochlear surgeries) and MMG (uterine signals) are particularly challenging due to their high variability and sudden, non-linear shifts between subjects.

Key Results

  • Predictive Accuracy: StochDiff achieved a significant performance boost on highly stochastic data, improving predictive accuracy (measured by CRPS) by approximately 15% on ECochG and 14% on MMG compared to state-of-the-art baselines.
  • Inference Efficiency: Despite the complexity of step-wise modeling, the use of DDIM sampling and parallelism made the model remarkably fast. StochDiff completed a 5-step prediction in 0.98 seconds, outperforming models like TimeGrad (2.7s) and SSSD (>30s).
  • Clinical Application: In a surgical case study, the model successfully predicted "traumatic drops" in signal amplitude during cochlear implantation. This capability provides critical real-time guidance that could help surgeons avoid permanent ear damage.

Conclusion and Future Work

StochDiff demonstrates that diffusion can function as a core mechanism for transition and observation within a sequential framework rather than just a final generation step. While the current model uses an LSTM backbone, future iterations could explore Transformers or State Space Models to better capture long-term dependencies. Additionally, further research into directly integrating the learned prior into the diffusion trajectory—rather than using it as an auxiliary condition—may yield even greater performance gains in modeling the inherent uncertainty of real-world time series.

Summary updated

BibTeX
@misc{liu2024stochastic,
  author = {Yuansan Liu and Sudanthi N. R. Wijewickrema and Dongting Hu and Christofer Bester and Stephen J. O'Leary and James Bailey},
  title = {{Stochastic Diffusion: A Diffusion Probabilistic Model for Stochastic Time Series Forecasting}},
  year = {2024},
  eprint = {2406.02827},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.02827},
}
Figure