Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting

Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, Wancai Zhang

Introduction

Long-sequence time-series forecasting (LSTF) is critical for various domains, including energy management and disease tracking. Traditional models often struggle with long-term "look-aheads," where sequence lengths extend significantly. The Informer addresses these challenges by optimizing the Transformer architecture for efficiency and accuracy in long-range predictions.

Problem Statement: The LSTF Bottleneck

Standard Transformers face three primary obstacles when applied to LSTF:

  1. Quadratic Complexity: Computational requirements scale at $O(L^2)$ with sequence length.
  2. Memory Constraints: High memory usage prevents the processing of very long inputs on standard hardware.
  3. Inference Speed: Auto-regressive decoding is slow and prone to error accumulation over long horizons.
Comparison of MSE and inference speed across different prediction sequence lengths.

Proposed Methodology: The Informer Architecture

The Informer introduces three architectural innovations to mitigate the bottlenecks of vanilla Transformers.

The overall Informer architecture featuring the ProbSparse self-attention encoder and generative decoder.

1. ProbSparse Self-Attention

By identifying that attention scores typically follow a long-tail distribution, the authors developed "ProbSparse" attention. This mechanism selects only the most "active" queries for calculation, reducing complexity from $O(L^2)$ to $O(L \log L)$.

2. Self-Attention Distilling

To manage memory, the encoder employs a distilling operation. Using 1D convolutions and max-pooling between layers, the model halves the sequence length, effectively compressing information and focusing on dominant features.

3. Generative Style Decoder

Unlike traditional step-by-step (auto-regressive) decoding, the Informer uses a generative decoder. It takes a "start token" of recent history and predicts the entire target sequence in a single forward pass, drastically improving inference speed.

Experimental Evaluation

The model was tested on several large-scale datasets, including:

  • ETT (Electricity Transformer Temperature): A new dataset featuring two years of high-resolution electricity data.
  • ECL (Electricity Consuming Load): Hourly data for 321 clients.
  • Weather: Climatological data from 1,600 locations.

Key Results and Insights

The Informer demonstrates significant improvements over state-of-the-art models like LSTMs and other Transformer variants:

  • Accuracy: Achieved a 26.8% to 60.1% reduction in MSE on the ETT dataset compared to LSTMs for long horizons.
  • Efficiency: Maintained near-constant inference speed regardless of prediction length, unlike the rapid performance drop seen in RNN-based models.
  • Scalability: Successfully handled horizons up to 720 points on a single GPU.

Conclusion

The Informer represents a major advancement in LSTF by leveraging sparsity and generative decoding. While it excels in efficiency, future work may address multivariate complexity and further hardware optimization for edge deployment.

Summary updated

BibTeX
@inproceedings{zhou2021informer,
  author = {Haoyi Zhou and Shanghang Zhang and Jieqi Peng and Shuai Zhang and Jianxin Li and Hui Xiong and Wancai Zhang},
  title = {{Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17325},
}
Figure