Introduction: The Transformer Surge in Time Series
In recent years, the research community has witnessed a significant shift toward Transformer-based architectures for long-term time series forecasting (LTSF). Inspired by their revolutionary success in Natural Language Processing (NLP) and Computer Vision (CV), models like Informer, Autoformer, and FEDformer were designed to capture long-range dependencies in numerical sequences using self-attention mechanisms.
However, a fundamental question remains: are these complex architectures truly necessary, or even optimal, for time series data? This paper challenges the status quo by introducing LTSF-Linear, a family of "embarrassingly simple" one-layer linear models that consistently outperform state-of-the-art Transformers across nine major benchmarks.
The Mismatch: Why Transformers Struggle
The authors identify three core reasons why the Transformer's inherent design might be ill-suited for time series forecasting:
- Permutation Invariance: Self-attention is "order-agnostic." While positional encodings are used to reintroduce sequence information, the core mechanism does not prioritize temporal order. In time series, the "meaning" of a data point is almost entirely defined by its position relative to others.
- Semantic vs. Temporal Correlation: In NLP, words possess rich semantic meaning; a sentence often remains intelligible even if slightly reordered. In contrast, time series data consists of continuous numerical values where temporal correlation is the primary signal.
- Forecasting Strategy Bias: Many studies credited Transformer gains to their architecture, but the authors suggest the improvement often came from using Direct Multi-Step (DMS) forecasting instead of the error-prone Iterated Multi-Step (IMS) strategy used by older baselines.
Methods: Embracing Simplicity
To test their hypothesis, the authors developed three variants of LTSF-Linear:
- Linear: A basic one-layer model regressing historical data directly into future predictions.
- DLinear (Decomposition Linear): This model uses a moving average to decompose the signal into trend and seasonal components, applying separate linear layers to each.
- NLinear (Normalized Linear): Designed to mitigate distribution shifts by normalizing the input sequence relative to its last value before processing.
These models were compared against a suite of complex Transformer architectures, which typically involve multi-stage pipelines as shown below.
Key Insights
The Look-back Window Paradox
Typically, more historical data improves model performance. For LTSF-Linear, error consistently decreases as the look-back window expands. Surprisingly, many Transformers see their performance plateau or even degrade with longer windows, suggesting they fail to extract meaningful temporal information from extended sequences.
The Shuffling Test
To prove that Transformers do not respect temporal order effectively, the authors conducted a "shuffling test." While shuffling input data significantly increased error for Linear models, some Transformers showed negligible changes in performance. This indicates that these complex models might be overfitting to noisy patterns rather than learning the underlying temporal dynamics.
Key Results: Accuracy and Efficiency
The results were striking: LTSF-Linear variants outperformed the state-of-the-art FEDformer in nearly every scenario, often by margins of 20% to 50%.
Beyond accuracy, the efficiency gains are massive. On the Electricity dataset, DLinear uses only ~140K parameters and achieves an inference time of 0.4ms, compared to FEDformer’s 20.7M parameters and 40.5ms inference time. In some cases, such as the Exchange-Rate dataset, a naive "Repeat" baseline (predicting the last known value) even outperformed the complex Transformers, highlighting their vulnerability to financial noise.
Conclusion
While linear models have limited capacity and may struggle with highly non-linear systems, their superior performance on standard LTSF benchmarks serves as a wake-up call for the research community. The findings suggest that instead of blindly applying NLP-centric attention mechanisms, future research should focus on developing architectures that are inherently "order-aware" and specifically tailored for the unique properties of time series data.
Summary updated