Papers / Time series
PatchTST (2022)
A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
Cut each series into patches and treat them like words, and Transformers forecast better than the linear models that had just beaten them.
Why it matters
In 2022 a one-layer linear model had outperformed Informer and its successors, and the field asked whether Transformers were useful for forecasting at all. PatchTST answered yes, with the right tokens, and patching became the standard input format for time series foundation models.
- Year
- 2022
- Authors
- Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant Kalagnanam
- Venue
- ICLR 2023
- Data
- ETT (Electricity Transformer Temperature), Electricity Load Diagrams
The idea
Instead of one token per time step, split each series into short patches (16 steps, say) and embed each patch as a token, as ViT does with image patches. Forecast every channel of a multivariate series separately with the same shared Transformer ("channel independence").
The result
Across ETT, electricity, traffic and weather, PatchTST cut mean squared error by 21% on average against the best earlier Transformer forecasters, and beat the simple linear baselines too.
Oil temperature, ETTh1, hourly8 copies of the last value, as paddingOne patch = one token
L = 336 hours, P = 16, S = 8: ⌊(L − P) / S⌋ + 2 = 42 tokens instead of 336
The data
ETT (Electricity Transformer Temperature)
2021Two years of load and oil temperature from two Chinese power transformers, the standard test for long-horizon forecasting. (1 year earlier)
Electricity Load Diagrams
2015The power use of 370 Portuguese clients every 15 minutes for four years, with clear daily and weekly rhythms. (7 years earlier)
Builds on
- Informer (2020): A Transformer made cheap enough to forecast hundreds of steps ahead, and the paper that introduced the ETT dataset.
- ViT (2020): Cut an image into 16×16 patches, treat them as words, and a plain Transformer matches the best convolutional networks.
- Transformer (2017): A translation model built only from attention, and the architecture behind every large language model since.
