- Introduced by
- Zhou, H. et al.
- Year
- 2021
- Type
- Transformer (ProbSparse self-attention)
What does it do?
Informer is a Transformer-based model introduced by Zhou et al. in 2021 for long-sequence time-series forecasting.
Its ProbSparse self-attention lowers the computational cost of the standard Transformer to O(L log L) in time and memory. It is designed for problems that require predictions over long future horizons.
The intuition behind the method
A standard Transformer compares every time step with every other step, so its attention cost grows quadratically with sequence length. This becomes impractical for very long series. Informer rests on the observation that only a small set of queries carries most of the attention weight, while the rest contribute little. By concentrating computation on these dominant queries, the original paper reports that the model keeps useful long-range dependencies while reducing time and memory cost. The paper evaluates this design on four large-scale datasets.
History
Zhou et al. introduced Informer at AAAI in 2021 to extend the Transformer to long-sequence time-series forecasting, where the full self-attention cost of the original architecture is prohibitive. Its ProbSparse self-attention reduces the complexity to O(L log L). The same paper also introduces self-attention distilling and a generative-style decoder.
When to use it
Choose Informer when you need forecasts over a long horizon for a continuous time series and have a long history of observations, since it is designed for this setting. The original paper gives no minimum sample size, and the required history depends on the dataset, the horizon and the validation results. Do not use Informer on short series, where a deep model with many parameters is likely to overfit; simpler models such as ARIMA or Random Forest need less data and are easier to check. If your horizon is short or you can only train on a CPU, a lighter model is usually the more practical choice.
Limitations and considerations
- Its efficiency comes from approximating attention by selecting dominant queries. The original paper argues for comparable performance on dependency alignment, not for exact equivalence with full attention.
- It needs a long history to learn reliably. The original paper gives no minimum sample size, and the required length depends on the dataset and the horizon.
- Training is computationally demanding and is normally carried out on a GPU.
- On short series, the model has many parameters relative to the few observations available, which makes overfitting a serious risk.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- ProbSparse self-attention reduces attention complexity from the quadratic cost of the standard Transformer to O(L log L) in time and memory, which is what makes very long input sequences tractable.
- The generative-style decoder predicts the whole horizon in one forward pass, which the original paper reports greatly improves inference speed for long-sequence predictions.
- The architecture is designed for long-sequence forecasting rather than adapted from short-horizon models.
- The original paper reports better performance than existing methods across four large-scale datasets.
Applications
- Energy load and electricity consumption forecasting over long horizons.
- Weather prediction over many future steps.
- Traffic forecasting over long prediction windows.
- Multivariate continuous time-series forecasting where standard Transformers are too costly in time or memory.
How it works
How it works
Informer targets long-sequence time-series forecasting, where both the input history and the prediction horizon are long. Full self-attention is costly in time and memory at this scale, and the original paper also identifies the encoder-decoder design as a limitation for this setting. The architecture is therefore modified to keep long-range dependencies while remaining computationally tractable. Self-attention distilling, the second contribution named in the original abstract, highlights dominating attention by halving the cascading layer input, which allows very long input sequences to be handled efficiently.
Instead of letting every query attend to every key, ProbSparse self-attention selects a small set of dominant queries using a sparsity measurement and computes full attention only for them. In the formula, Q̄ denotes this reduced set of selected queries, so the expression shows attention computed for those selected queries only. The sparsity measurement used to choose them is defined in the original paper (Zhou et al., 2021) and is not reproduced here, and the handling of non-selected queries should be checked there. The original paper reports O(L log L) complexity in time and memory for this mechanism.
Formula
\mathcal{A}(Q,K,V) = \text{Softmax}\!\left(\frac{\bar{Q}K^{\top}}{\sqrt{d}}\right)VInformer uses a generative-style decoder that predicts the full forecast horizon in one forward pass rather than step by step, which the original paper reports greatly improves inference speed for long-sequence predictions. In typical use the input is a continuous multivariate series such as energy load, weather or traffic. A long history is needed for the attention mechanism to learn reliable patterns, and training is computationally demanding, so it is normally run on a GPU.
Common pitfalls
- Applying it to a short time series in place of a simpler model such as ARIMA.
- Attempting CPU-only training on long sequences and expecting practical run times.
- Assuming the long-horizon design is an advantage for short horizons, where simpler models may perform as well or better.
- Treating ProbSparse attention as exact attention. It is an approximation that keeps only the dominant queries.
Frequently asked questions
How is Informer different from a standard Transformer?
It replaces full self-attention with ProbSparse self-attention, which computes full attention only for a small set of dominant queries. The original paper reports that this lowers the time and memory complexity from quadratic to O(L log L), which makes very long input sequences feasible.
How much data do I need?
Informer is a deep model aimed at long sequences and needs a long history. The original paper gives no minimum sample size; the required length depends on the dataset, the forecast horizon and the validation results. Short series risk overfitting, so simpler models are preferable when the history is limited.
Do I need a GPU?
In practice, yes. Informer is a deep Transformer-based model, and training it on long sequences is computationally demanding, so a GPU is normally used.
When should I not use Informer?
Avoid it for short time series and for short forecast horizons. For limited histories, simpler models such as Random Forest or ARIMA need less data and are easier to check.
Related methods
Sources
Zhou, H. et al. (2021). Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting. AAAI.
Open DOI referenceWu, H., Xu, J., Wang, J. & Long, M. (2021). Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. NeurIPS 34.
Open publication reference