Papers › iTransformer: Inverted Transformers Are Effective for Time Series Forecasting

iTransformer: Inverted Transformers Are Effective for Time Series Forecasting

10 Oct 2023arXiv:2310.06625archive 2025-07-28

Yong liu, Tengge Hu, Haoran Zhang, Haixu Wu, Shiyu Wang, Lintao Ma, Mingsheng Long

The recent boom of linear forecasting models questions the ongoing passion for architectural modifications of Transformer-based forecasters. These forecasters leverage Transformers to model the global dependencies over temporal tokens of time series, with each token formed by multiple variates of the same timestamp. However, Transformers are challenged in forecasting series with larger lookback windows due to performance degradation and computation explosion. Besides, the embedding for each temporal token fuses multiple variates that represent potential delayed events and distinct physical measurements, which may fail in learning variate-centric representations and result in meaningless attention maps. In this work, we reflect on the competent duties of Transformer components and repurpose the Transformer architecture without any modification to the basic components. We propose iTransformer that simply applies the attention and feed-forward network on the inverted dimensions. Specifically, the time points of individual series are embedded into variate tokens which are utilized by the attention mechanism to capture multivariate correlations; meanwhile, the feed-forward network is applied for each variate token to learn nonlinear representations. The iTransformer model achieves state-of-the-art on challenging real-world datasets, which further empowers the Transformer family with promoted performance, generalization ability across different variates, and better utilization of arbitrary lookback windows, making it a nice alternative as the fundamental backbone of time series forecasting. Code is available at this repository: https://github.com/thuml/iTransformer.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.06625")

Code

Syntology Ran 8 of 10 code samples harvested from 2 repositories linked to this paper; 2 have no recorded run. Of those that ran: 2 ran · honoured contract; 4 ran · violated contract; 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: community (archive-listed): 10 samples from 2 repositories, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

thuml/iTransformer officialmentioned in papermentioned on GitHubpytorch report
Hannibal046/GridTST mentioned on GitHubpytorch report
hughxx/tsf-new-paper-taste mentioned on GitHubpytorch report
kwuking/TimeMixer mentioned on GitHubpytorch report
lss-1138/SegRNN mentioned on GitHubpytorchApache-2.0 report
lucidrains/iTransformer mentioned on GitHubpytorchMIT report
master-plc/fredf mentioned on GitHubpytorchMIT report
sanjaylopa22/QCAAPatchTF mentioned on GitHubpytorch report
taohan10200/weather-5k mentioned on GitHubpytorch report
thuml/Time-Series-Library mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 8 ran; 2 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
4ran · violated contract
1ran · our draft was wrong
1ran
2unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

identity lucidrains/iTransformer/iTransformer/iTransformer.py community (archive-listed) ran · honoured contract MIT (permissive) · 7f1040f5e3991d5e · report
PositionalEncoding lss-1138/SegRNN/layers/PatchTST_layers.py community (archive-listed) ran · honoured contract Apache-2.0 (permissive) · 16b9b78d429636b7 · report
default lucidrains/iTransformer/iTransformer/attend.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 60fff7c3c400d7ff · report
default lucidrains/iTransformer/iTransformer/iTransformer.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 99b3563ebc6734ad · report
exists lucidrains/iTransformer/iTransformer/attend.py community (archive-listed) ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
exists lucidrains/iTransformer/iTransformer/iTransformer.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · b7c3487f192e31b7 · report
get_activation_fn lss-1138/SegRNN/layers/PatchTST_layers.py community (archive-listed) ran Apache-2.0 (permissive) · 72b9272542f279c6 · report
once lucidrains/iTransformer/iTransformer/attend.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 52e10a7d6b0fa036 · report
Coord2dPosEncoding lss-1138/SegRNN/layers/PatchTST_layers.py community (archive-listed) unverified Apache-2.0 (permissive) · c3fc6992d1e467f3 · report
pack_one lucidrains/iTransformer/iTransformer/iTransformer2D.py community (archive-listed) unverified MIT (permissive) · 6182326691dd827b · report

Tasks

Time SeriesTime Series Forecasting

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Time Series Forecasting ETTh1 (336) Multivariate iTransformer MAE 0.458 #59 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate iTransformer MSE 0.487 #59 of 72 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections