Sundial
A generative time series forecaster: a decoder-only Transformer with a flow-matching output.
Time series · 4,420 operations Checked
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
- Task
- Time series
- Parameters
- 128.3M
- Operations
- 4,420
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- ICML 2025
- Cited by
- 2 (as of 23 October 2026)
- Authors
- Yong Liu, Guo Qin, Zhiyuan Shi and others
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m2948
- Graph hash
- 3f925f82cd98d57ead33f998385d05df32d0a6da7c5c16b3649a397f26daeb52
- Skeleton hash
- 2e0bb4d607dadb541fe02fc3a6efd12e1f17274eafaadd06c523ee86e54e0257
- Architecture hash
- e77a93765c40a191ee0c9177ad548e8fb2a94154c9c2b17403d8c0325d3ba6d8
- Diagram SHA-256
- 377b7961ef30ca0df0b3a1b6801e0674e325115db22e7f63fd3e056e667c5ce7
- 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
This model is the base version, which its model card describes as pre-trained on 1 trillion time points with 128M parameters.
Sundial is a family of time series foundation models that forecast by generation: given a series, a model can produce multiple probable predictions instead of a single one. It works on continuous values directly, and the paper's TimeFlow Loss is what allows Transformers to be pre-trained on continuous-valued time series without discrete tokenization.
The paper describes the model in three parts. Tokenization applies a context-level re-normalization and a patch embedding. A decoder-only Transformer then learns per-token representations, with Pre-LN for pre-training stability and causal self-attention with RoPE. The third part is the TimeFlow Loss, a parameterized loss function that models the distribution of each token and generates raw series during inference. Its flow-matching network is a small MLP. In the authors' analogy to ARMA models, the Transformer learns token representations autoregressively and TimeFlow transforms random noises into non-deterministic predictions.
For pre-training, the authors curated TimeBench, with one trillion time points, comprising mostly real-world datasets and synthetic data. The models are also pre-trained by multi-patch prediction to reduce autoregression steps. The paper reports zero-shot results on the TSLib, GIFT-Eval and FEV benchmarks for both point and probabilistic forecasting.
Key idea. Sundial introduces TimeFlow Loss, a flow-matching loss that predicts the next patch's distribution so Transformers can be pre-trained on continuous-valued time series without discrete tokenization.
- Sundial
- Timer 3.0
- sundial-base-128m
- time series foundation model
- generative forecasting
- probabilistic forecasting
- TimeFlow Loss
- flow matching
- zero-shot forecasting
- TimeBench
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{liu2026sundialfamilyhighlycapable,
title={Sundial: A Family of Highly Capable Time Series Foundation Models},
author={Yong Liu and Guo Qin and Zhiyuan Shi and Zhi Chen and Caiyin Yang and Xiangdong Huang and Jianmin Wang and Mingsheng Long},
year={2026},
eprint={2502.00816},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2502.00816},
}