Timer
A decoder-only Transformer for time series, pre-trained by next token prediction over patch tokens.
Time series · 260 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
- 67.4M
- Operations
- 260
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2024
- Cited by
- 5 (as of 23 October 2026)
- Authors
- Yong Liu, Haoran Zhang, Chenyu Li and others
- License
- MIT
- 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
- m3103
- Graph hash
- 8e8987c130948c6c7fe8c8999ecb4f1ea8314fdef7c408398d606de16aa5829b
- Skeleton hash
- 113b6d11b16e368d4b41677fc52690487bbb16c963f6c56f919cd3be22cca209
- Architecture hash
- f904c2686ce8f11bee62ff9a0121270874c647a0e7e39d206c565252724d2385
- Diagram SHA-256
- 0b4a4f99fee7781a033eb9c969e2d3eee0096fb1b5e949e358ec0b375180ee3e
- 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 Timer, the original univariate model, which regards a single-dimensional time series as non-overlapping patch tokens.
Timer, short for Time Series Transformer, is a decoder-only Transformer that is generative pre-trained by next token prediction, a GPT-style objective applied to time series. The paper aims at the early development of large time series models, as an alternative to training scenario-specific small models from scratch.
A token here is a segment of consecutive time points. To pre-train on heterogeneous data, the authors convert series into a single-series sequence (S3) format, which does not require time alignment. They curated the Unified Time Series Dataset (UTSD), which encompasses seven domains with up to 1 billion time points. Forecasting, imputation and anomaly detection are all converted into a unified generative task. The paper reports that Timer fine-tuned on only 1% of the available samples from ETTh1 achieves better results than forecasters trained on the full samples.
Timer-XL is the follow-up for multidimensional series: it generalizes next token prediction to multivariate next token prediction. Its TimeAttention captures causal dependencies between patch tokens within and among all variables, with RoPE as the position embedding on the temporal dimension. The Timer-XL paper presents the model as an extra long version of Timer and reports that it outperforms Timer especially on high-dimensional time series.
Key idea. Timer is a decoder-only Time Series Transformer, generative pre-trained by next token prediction on up to 1 billion time points and adapted to forecasting, imputation and anomaly detection.
- Timer
- Time Series Transformer
- Timer-XL
- TimerXL
- large time series model
- LTSM
- time series forecasting
- generative pre-trained transformer
- next token prediction
- UTSD
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{liu2024timergenerativepretrainedtransformers,
title={Timer: Generative Pre-trained Transformers Are Large Time Series Models},
author={Yong Liu and Haoran Zhang and Chenyu Li and Xiangdong Huang and Jianmin Wang and Mingsheng Long},
year={2024},
eprint={2402.02368},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2402.02368},
}