Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting

Haixu Wu, Jiehui Xu, Jianmin Wang, Mingsheng Long

Abstract

Long-term series forecasting (LTSF) is a critical task in various domains, yet it remains challenging due to complex temporal patterns and the computational bottlenecks of standard Transformer architectures. We present Autoformer, a novel architecture that integrates a deep decomposition block and a period-aware Auto-Correlation mechanism. Autoformer achieves a 38% relative improvement over previous state-of-the-art models while maintaining $O(L \log L)$ efficiency, effectively breaking the point-wise dependency bottleneck of canonical self-attention.

Introduction

Predicting far into the future—long-term series forecasting—faces two primary hurdles. First, real-world time series exhibit entangled temporal patterns where long-term trends and seasonal fluctuations are obscured by noise. Second, the canonical self-attention mechanism in Transformers calculates point-wise dependencies with $O(L^2)$ complexity. While sparse variants reduce this cost, they often create an information utilization bottleneck by ignoring critical point-to-point connections. Autoformer addresses these by shifting the focus from point-wise dependencies to sub-series-level dependencies and embedding decomposition directly into the model architecture.

Methodology

Progressive Decomposition

Unlike traditional methods that treat decomposition as a pre-processing step, Autoformer incorporates it as an internal block. The architecture consists of an encoder and a decoder that iteratively refine the trend-cyclical and seasonal components.

The Autoformer architecture featuring integrated Series Decomposition blocks in both the encoder and decoder.

The Encoder uses these blocks to progressively extract the trend-cyclical part, allowing the model to focus on seasonal patterns. The Decoder then extracts the trend from intermediate hidden variables, refining the final prediction layer-by-layer. This iterative process allows the model to handle non-stationary data more effectively.

Auto-Correlation Mechanism

To replace the computationally expensive self-attention, Autoformer introduces the Auto-Correlation mechanism. This mechanism identifies sub-series-level dependencies based on periodicity rather than individual time points.

The Auto-Correlation mechanism utilizes FFT to identify top-k periods and aggregates similar sub-series via time delay.

The process involves:

  1. Period-based Dependencies: Using the Fast Fourier Transform (FFT) and the Wiener–Khinchin theorem, the model calculates the autocorrelation of the series to identify the top-$k$ most significant time delays (periods).
  2. Time Delay Aggregation: The series is "rolled" based on these delays to align similar sub-processes (e.g., aligning data from the same time of day across different days). These segments are aggregated using softmax-normalized confidences.
  3. Efficiency: By leveraging FFT, the mechanism achieves $O(L \log L)$ complexity, significantly improving speed and memory efficiency for long sequences.

Experimental Evaluation

Autoformer was evaluated on six diverse real-world benchmarks: ETT (Electricity Transformer Temperature), Electricity consumption, Exchange rates, Traffic occupancy, Weather indicators, and Influenza-like Illness (ILI) cases.

Key Results

Autoformer established a new state-of-the-art in LTSF:

  • Accuracy: It achieved an average MSE reduction of 38% across all benchmarks compared to previous leaders like Informer. Notable gains included a 74% reduction on the ETT dataset and 61% on Exchange rates.
  • Efficiency: The model scales significantly better than standard Transformers. For output lengths as large as 3072, Autoformer remains computationally feasible where standard models often exceed GPU memory limits.
  • Robustness: Even on datasets with less obvious periodicity, such as Exchange rates, Autoformer outperformed competitors, demonstrating the strength of the decomposition inductive bias.

Conclusion

Autoformer represents a paradigm shift in time series forecasting by moving from point-wise attention to sub-series-level auto-correlation. By making decomposition a first-class citizen within the deep learning architecture, it provides a robust framework for handling complex, non-stationary temporal data. Future work may explore applying these segment-aware mechanisms to other sequential data types like audio or video.

Summary updated

BibTeX
@inproceedings{wu2021autoformer,
  author = {Haixu Wu and Jiehui Xu and Jianmin Wang and Mingsheng Long},
  title = {{Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=J4gRj6d5Qm},
}
Figure