Autoformer is a Transformer-family model for long-term forecasting that builds series decomposition, which splits a time series into "trend" and "seasonal" (periodic fluctuation) parts, into the network many times over, and replaces attention with "Auto-Correlation," which aggregates copies of the series shifted by a period. Wu, Xu, Wang, and Long of Tsinghua University published it in 2021, and it was accepted at NeurIPS 2021.
The paper identified two problems with earlier Transformer-based long-term forecasting.
- Relationships are hard to find in complex, distant changes: Long series intertwine trends, multiple periods, and irregular changes, making it hard for attention to find reliable relationships.
- Sparse attention misses information: To reduce computation, Informer and similar models restrict attention to a subset of time-step pairs. Because they reduce computation while still linking time steps point by point, the usable information shrinks as well.
In response, Autoformer introduced two ideas.
- Make decomposition a component of the network: Series decomposition is usually preprocessing applied to the look-back window before forecasting. Autoformer places decomposition blocks inside every encoder and decoder layer, and forecasts while gradually extracting the trend from intermediate representations.
- Link sub-series instead of points: Using the property that sub-series at the same phase of a period (such as the same time of day each day) behave similarly, it shifts the series by the period and aggregates the shifted copies.
The paper reports that on six benchmarks (energy, traffic, economics, weather, and disease), it reduced MSE by 38% on average relative to the previous best results.
In this article, the past interval used as input for forecasting is called the look-back window, and the interval to be predicted is called the forecast window. In the paper's notation, the look-back window has length and the forecast window has length , written "input--predict-." Autoformer outputs the values of the forecast window all at once.

