TimeXer: Empowering Transformers for Time Series Forecasting with Exogenous Variables

Yuxuan Wang, Haixu Wu, Jiaxiang Dong, Yong Liu, Yunzhong Qiu +3 more
2/3/2026

No official code found. Best implementation: thuml/TimeXer (517 stars, last commit 2024-11-27). 1 more below.

Abstract

Deep models have demonstrated remarkable performance in time series forecasting. However, due to the partially-observed nature of real-world applications, solely focusing on the target of interest, so-called endogenous variables, is usually insufficient to guarantee accurate forecasting. Notably, a system is often recorded into multiple variables, where the exogenous variables can provide valuable external information for endogenous variables. Thus, unlike well-established multivariate or univariate forecasting paradigms that either treat all the variables equally or ignore exogenous information, this paper focuses on a more practical setting: time series forecasting with exogenous variables. We propose a novel approach, TimeXer, to ingest external information to enhance the forecasting of endogenous variables. With deftly designed embedding layers, TimeXer empowers the canonical Transformer with the ability to reconcile endogenous and exogenous information, where patch-wise self-attention and variate-wise cross-attention are used simultaneously. Moreover, global endogenous tokens are learned to effectively bridge the causal information underlying exogenous series into endogenous temporal patches. Experimentally, TimeXer achieves consistent state-of-the-art performance on twelve real-world forecasting benchmarks and exhibits notable generality and scalability. Code is available at this repository: https://github.com/thuml/TimeXer.

View on arXivView PDF

Code Implementations(2)

thuml/TimeXerCommunity72%

Official implementation for "TimeXer: Empowering Transformers for Time Series Forecasting with Exogenous Variables" (NeurIPS 2024)

51774Shell, PythonOct 22, 20241 years ago

A refined, configurable, and composable implementation of TimeXer arXiv:2402.19072 (Unofficial)

00PythonJan 5, 20269 months ago

Similar Papers

Cite this paper

@article{wang2026timexer,
  title  = {TimeXer: Empowering Transformers for Time Series Forecasting with Exogenous Variables},
  author = {Yuxuan Wang and Haixu Wu and Jiaxiang Dong and Yong Liu and Yunzhong Qiu and Haoran Zhang and Jianmin Wang and Mingsheng Long},
  year   = {2026},
  eprint = {2402.19072},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2402.19072},
  url    = {https://arxiv.org/abs/2402.19072},
  journal = {NEURIPS 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/2402.19072.svg)](https://codeofpaper.com/paper/2402.19072)

Discussion