TSLib TimeXer
TimeXer, a Transformer that forecasts a target series while drawing on exogenous variables.
Time series · 142 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
- 5.7M
- Operations
- 142
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2024
- Cited by
- 291 (as of 23 October 2026)
- Authors
- Yuxuan Wang, Haixu Wu, Jiaxiang Dong 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
- m3049
- Graph hash
- fd084ff658ed90e6cccd7729afc828a5bd003bf61af84707761dfada01041cb9
- Skeleton hash
- c021d6274a5fc7845e6fd76444725ef7d509be0d937038aa94801c9df6d54483
- Architecture hash
- f5f8cd5f75f9b5ebaa26066ea480769cac0018c28cb5df58de5507e24ce07785
- Diagram SHA-256
- 891f1fdb474c36415711ca13704808c25f1f0be11b4c4c328ef3cc050435fc79
- 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
TimeXer is a Transformer forecaster built for one setting: time series forecasting with exogenous variables. The endogenous variables are the targets to be forecast, while exogenous variables are given to the forecaster for information and do not need to be predicted.
The two kinds of series are embedded differently. The endogenous series is split into non-overlapping patches, and each patch is projected to a temporal token. Each exogenous series is embedded as a single series-wise variate token. A learnable global token for each endogenous variable serves as the representation that interacts with the exogenous variables. A cross-attention layer then takes the endogenous variable as query and the exogenous variable as key and value.
The paper describes this as using the canonical Transformer without any architectural modifications. Its experiments cover twelve datasets, in both univariate and multivariate settings. Time-Series-Library includes TimeXer and describes it as defining a practical forecasting paradigm, forecasting with exogenous variables.
Key idea. TimeXer lets the canonical Transformer forecast with exogenous variables by using patch-wise self-attention on the endogenous series together with variate-wise cross-attention to the exogenous series.
- timexer
- tslib timexer
- time series forecasting
- exogenous variables
- forecasting with exogenous variables
- endogenous variables
- electricity price forecasting
- patch-wise self-attention
- variate-wise cross-attention
- time-series-library
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2024timexerempoweringtransformerstime,
title={TimeXer: Empowering Transformers for Time Series Forecasting with Exogenous Variables},
author={Yuxuan Wang and Haixu Wu and Jiaxiang Dong and Guo Qin and Haoran Zhang and Yong Liu and Yunzhong Qiu and Jianmin Wang and Mingsheng Long},
year={2024},
eprint={2402.19072},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2402.19072},
}