All models

TimeGrad (denoising diffusion for time series)

An autoregressive forecaster whose recurrent state conditions a denoising diffusion model at each time step.

Time series · 255 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (82 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
300.2K
Operations
255
Framework
PyTorch
Recurrent
No
Published
ICML 2021
Cited by
163 (as of 27 October 2026)
Authors
Kashif Rasul, Calvin Seward, Ingmar Schuster, Roland Vollgraf
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20973
Graph hash
ba44c3a1c8df3cffa54ff0a0dc3173b2147992c01028e00b76e8e99b4075aaab
Skeleton hash
c1469ac66b29b5eb5e05369f6e3c2c35f41f866055d3559ddcd2d0e26bff2660
Architecture hash
c91cd35a2dd27ee64412eca1df8f661db63077e78c2cbb5276bd3b38291966d5
Diagram SHA-256
7d045d4571cca5bcdbac95fe3db8c96c70e8c9f0315d9f1e82d6f3d49daa9d65
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

TimeGrad is an autoregressive model for multivariate probabilistic time series forecasting that samples from the data distribution at each time step by estimating its gradient. To do so it uses diffusion probabilistic models, a class of latent variable models closely connected to score matching and energy-based methods.

A recurrent network, a multi-layer LSTM or GRU, encodes the series and its covariates into a hidden state. The model is autoregressive: it consumes the observations of the previous time step to learn the distribution of, or sample, the next one. The denoising network that this state conditions consists of conditional 1-dim dilated ConvNets with residual connections, adapted from the WaveNet and DiffWave models. Each series is divided by its context window mean before it enters the model, because magnitudes of different series can vary drastically.

At inference the model converts white noise into a sample through a Markov chain using Langevin sampling, passes the sample back to the recurrent network and repeats until the forecast horizon is reached. Repeating this sampling many times gives empirical quantiles of the uncertainty of the predictions. The paper benchmarks TimeGrad on six real-world data sets and reports the best CRPS-sum among the compared methods on all but the smallest of them. For long time sequences, the authors suggest the recurrent network could be replaced with a Transformer architecture.

Key idea. TimeGrad combines an autoregressive recurrent network with a denoising diffusion model that generates each time step of a multivariate forecast from white noise.

  • timegrad
  • time grad
  • autoregressive denoising diffusion
  • multivariate probabilistic forecasting
  • time series forecasting
  • diffusion model for time series
  • pytorchts
  • energy-based model

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{rasul2021autoregressivedenoisingdiffusionmodels,
      title={Autoregressive Denoising Diffusion Models for Multivariate Probabilistic Time Series Forecasting}, 
      author={Kashif Rasul and Calvin Seward and Ingmar Schuster and Roland Vollgraf},
      year={2021},
      eprint={2101.12072},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2101.12072}, 
}