Amazon Chronos T5 tiny
Time series turned into tokens by scaling and quantization, forecast by a T5 language model trained with cross-entropy.
Time series · 549 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
- 8.4M
- Operations
- 549
- Framework
- PyTorch
- Recurrent
- No
- Published
- Transactions on Machine Learning Research (arXiv 2024)
- Cited by
- 84 (as of 16 October 2026)
- Authors
- Abdul Fatir Ansari, Lorenzo Stella, Caner Turkmen and others
- Source
- transformers 5.18.0
- 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
- m100
- Graph hash
- 766708d86063a3ed5f36f5bae3d390829fab8d8475c88acbc41fa9601afc562c
- Skeleton hash
- b03178b6683f055e977d8dcdaed999b757a7c9e6ac57f9116da2328aceb83503
- Architecture hash
- 6944be02fe5d15211f08e8c6a2f4a5d8ceaf26f09da414d4267f84eb6d0efa17
- Diagram SHA-256
- 16f52de5bced1b2b06d72d4bfa24ba33c97115f94b681696a6ffac19812bce55
- 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
Chronos is a language modeling framework minimally adapted for time series forecasting. It tokenizes time series values into a fixed vocabulary through simple scaling and quantization, then trains existing transformer-based language model architectures on those tokens with the cross-entropy loss. The mean scaling it uses preserves zero values, which are often meaningful, such as zero sales for a product or zero solar generation at night. Perhaps counter-intuitively, Chronos ignores time and frequency information and treats the series simply as a sequence. At inference, tokens are sampled autoregressively and mapped back to numerical values, and multiple trajectories give a predictive distribution.
The pretrained models are based on the encoder-decoder T5 family, with sizes from 20M to 710M parameters, and adjusting the vocabulary only means truncating or extending the language model's input and output embedding layers. The vocabulary is set to 4096 tokens including the PAD and EOS specials, compared with 32128 in the original T5, which leaves fewer parameters. Training data came from public datasets plus a synthetic set from two procedures: TSMixup takes convex combinations of base series from different datasets, and KernelSynth composes Gaussian process kernels at random.
On a benchmark of 42 datasets, Chronos models significantly outperform other methods on datasets in their training corpus and show comparable, occasionally superior, zero-shot performance on new datasets against methods trained specifically on them. The same repository later added Chronos-Bolt, a patch-based variant that generates quantile forecasts directly over multiple future steps and is up to 250 times faster and 20 times more memory-efficient than the original Chronos of the same size, and then Chronos-2.
Key idea. Casting forecasting as language modeling: scale and quantize series values into a fixed token vocabulary, train an unchanged T5 with cross-entropy, and sample trajectories for probabilistic zero-shot forecasts.
- Chronos
- Chronos-T5
- chronos-t5-tiny
- Chronos-Bolt
- Chronos-2
- time series foundation model
- zero-shot forecasting
- TSMixup
- KernelSynth
- AutoGluon
- amazon-science
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{ansari2024chronoslearninglanguagetime,
title={Chronos: Learning the Language of Time Series},
author={Abdul Fatir Ansari and Lorenzo Stella and Caner Turkmen and Xiyuan Zhang and Pedro Mercado and Huibin Shen and Oleksandr Shchur and Syama Sundar Rangapuram and Sebastian Pineda Arango and Shubham Kapoor and Jasper Zschiegner and Danielle C. Maddix and Hao Wang and Michael W. Mahoney and Kari Torkkola and Andrew Gordon Wilson and Michael Bohlke-Schneider and Yuyang Wang},
year={2024},
eprint={2403.07815},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2403.07815},
}