Liu, Hu, Zhang, Wu, Wang, Ma and Long (ICLR 2024; arXiv:2310.06625) invert the Transformer: each variate’s full look-back is one token. Attention mixes assets; FFN (shared MLP) encodes that series; LayerNorm is per variate. No new attention gadget. Strong on high-dimensional ECL/Traffic/PEMS; inverting also lifts vanilla/Informer/Reformer. thuml/iTransformer. Plain-language intro. Not investment advice.
Takeaway. Standard TS Transformers embed all tickers at one timestamp as a token. That glues delayed sensors and different units into one vector, then attends across time (permutation-invariant on a series that cares about order). iTransformer does not invent a new attention. It transposes: one token = one variate’s whole look-back. Attention = who correlates with whom. FFN = temporal encoder.
iTransformer: Inverted Transformers Are Effective for Time Series Forecasting (Yong Liu, Tengge Hu, Haoran Zhang, Haixu Wu, Shiyu Wang, Lintao Ma, Mingsheng Long, 2023; ICLR 2024; arXiv:2310.06625). Tsinghua / Ant Group.
Fit for learners: Invert tokens to variables — strong multivariate forecaster for multi-asset return panels in PyTorch.
This Hub note is a plain-language intro. Not investment advice.
DLinear-style linear models beat many LTSF Transformers. The authors’ diagnosis: the tokenization is wrong. A timestamp token (i) mixes physically different measurements, (ii) may not be the same event if series are lagged (Traffic sensors), (iii) has a tiny receptive field, (iv) wastes permutation-invariant attention on the time axis that actually needs order. PatchTST enlarges the field but still treats channels independently.
For a multi-asset return panel, invert first; do not concat 50 tickers into one time token.
If you already know nn.TransformerEncoder, the code change is x.transpose(1, 2) before the encoder and an MLP that maps time->D instead of (N-features)->D. That is a Saturday.
Tiny evening exercise: two sine series, one lag-shifted. Embed each length-48 vector with a linear map to 16-D. 1-head attention 2 by 2. Check that the off-diagonal weight is large. Learning only.
Landing: arXiv abs
Not investment advice. This Hub note is educational only. iTransformer’s ECL / Traffic / PEMS scores are not a licence to trade a multi-asset panel with inverted attention.
Single course CTA: SoloQuant Academy’s Introduction to Python Programming—transposing a 2D list and taking a dot product between two column-vectors is the iTransformer cartoon.