Timer-XL: Long-Context Transformers for Unified Time Series Forecasting

Yong Liu, Guo Qin, Xiangdong Huang, Jianmin Wang, Mingsheng Long
2/12/2026

No official code found. Best implementation: thuml/Large-Time-Series-Model (1,013 stars, MIT, last commit 2026-03-22). 1 more below.

Abstract

We present Timer-XL, a causal Transformer for unified time series forecasting. To uniformly predict multidimensional time series, we generalize next token prediction, predominantly adopted for 1D token sequences, to multivariate next token prediction. The paradigm formulates various forecasting tasks as a long-context prediction problem. We opt for decoder-only Transformers that capture causal dependencies from varying-length contexts for unified forecasting, making predictions on non-stationary univariate time series, multivariate series with complicated dynamics and correlations, as well as covariate-informed contexts that include exogenous variables. Technically, we propose a universal TimeAttention to capture fine-grained intra- and inter-series dependencies of flattened time series tokens (patches), which is further enhanced by deft position embedding for temporal causality and variable equivalence. Timer-XL achieves state-of-the-art performance across task-specific forecasting benchmarks through a unified approach. Based on large-scale pre-training, Timer-XL achieves state-of-the-art zero-shot performance, making it a promising architecture for pre-trained time series models. Code is available at this repository: https://github.com/thuml/Timer-XL.

View on arXivView PDF

Code Implementations(2)

MIT

Official code, datasets and checkpoints for "Timer: Generative Pre-trained Transformers Are Large Time Series Models" (ICML 2024) and subsequent works

1,013110Shell, PythonFeb 28, 20247 months agoMIT
foundation-modelslarge-modelstime-seriestime-series-analysistransformer
thuml/Timer-XLCommunity78%
Apache-2.0

About model release for "Timer-XL: Long-Context Transformers for Unified Time Series Forecasting"

14615Jupyter NotebookOct 17, 20241 years agoApache-2.0
large-time-series-modelpre-trained-modelstime-seriestransformer

Cite this paper

@article{liu2026timerxl,
  title  = {Timer-XL: Long-Context Transformers for Unified Time Series Forecasting},
  author = {Yong Liu and Guo Qin and Xiangdong Huang and Jianmin Wang and Mingsheng Long},
  year   = {2026},
  eprint = {2410.04803},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.04803},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.04803.svg)](https://codeofpaper.com/paper/2410.04803)

Discussion