NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Preformer: Predictive Transformer with Multi-Scale Segment-Wise Correlations for Long-Term Time Series Forecasting

Dazhao Du, Bing Su, Zhewei Wei

TL;DR

The Preformer is a novel Transformer architecture designed to conquer the challenges of long-term time series forecasting. By replacing traditional point-wise attention with a Multi-Scale Segment-Correlation (MSSC) mechanism and a clever "predictive" decoding paradigm, it achieves state-of-the-art accuracy while remaining significantly more memory-efficient than its predecessors.

What Problem Does This Paper Address?

Long-term time series forecasting (LSTF)—predicting hundreds or thousands of future time steps—is critical for everything from power grid management to financial planning. However, standard Transformers struggle with LSTF for two main reasons:

  1. Quadratic Complexity: Standard self-attention scales at $O(L^2)$, where $L$ is the sequence length. For long sequences, this becomes computationally "intractable" (it eats all your RAM).
  2. Point-wise Noise: Standard attention looks at individual time points. In time series, a single data point is often noisy and carries little predictive power on its own. Real dependencies usually exist at the segment level (e.g., the "morning rush hour" segment today is highly correlated with the "morning rush hour" segment yesterday).

While previous models like Informer and Autoformer tried to solve this using sparse attention or Fourier transforms, they often missed these intuitive, local segment-wise relationships.

Methods

The authors introduce two primary innovations:

1. Multi-Scale Segment-Correlation (MSSC)

Instead of calculating attention between every pair of points, Preformer divides the time series into segments. It calculates correlations between these segments, which reduces the number of operations from $L^2$ to $(L/L_{seg})^2$. To avoid the headache of picking the "perfect" segment length, they use a multi-scale approach. The model processes the data at multiple resolutions (e.g., segment lengths of 4, 8, 16, etc.) and aggregates the results. This allows the model to capture both fine-grained fluctuations and coarse-grained seasonal patterns simultaneously.

2. The Predictive Paradigm (PreMSSC)

In a standard Transformer decoder, the "Query" and "Key/Value" usually come from the same temporal alignment. Preformer introduces a one-segment delay. When the decoder tries to predict a future segment, it uses the previous segment as the query. If this query segment is highly correlated with a historical "Key" segment, the model assigns a high weight to that historical segment's successor (the "Value"). Essentially, it explicitly asks: "If the past looked like this, what happened immediately after?"

Datasets

The model was evaluated on six real-world LSTF benchmarks:

  • ETT (Electricity Transformer Temperature): Four subsets (ETTh1, ETTh2, ETTm1, ETTm2) with different sampling frequencies.
  • Electricity: Hourly consumption of 321 clients.
  • Exchange: Daily exchange rates of eight countries.
  • Traffic: Hourly road occupancy rates in California.
  • Weather: Climatological data recorded every 10 minutes.
  • ILI: Weekly outpatient visits for influenza-like illness.

Key Insights and Ideas

  • Segments are more informative than points: By shifting the focus to segments, the model naturally filters out point-level noise and captures the "shape" of the data.
  • The "Predictive" Delay is intuitive: In time series, we care about transitions. By forcing the attention mechanism to look at the next segment in the history relative to the match, the model learns the underlying dynamics of the system rather than just repeating historical values.
  • Efficiency through Hierarchy: The $O(L^2/L_0)$ complexity means that as the sequence length grows, Preformer stays faster and leaner than even $O(L \log L)$ models like Autoformer, because the constant factor provided by the segment length $L_0$ is quite powerful.

Key Results

  • Superior Accuracy: Preformer outperformed Autoformer and Informer in the vast majority of multivariate and univariate tests. For example, it showed a 14.9% improvement in MSE on the Electricity dataset and a 10.7% improvement on the Exchange dataset compared to previous state-of-the-art results.
  • Long-Horizon Stability: Unlike some models that degrade quickly as the prediction window grows, Preformer’s performance remained stable even when predicting 720 steps into the future.
  • Robustness: The multi-scale structure made the model much less sensitive to hyperparameter tuning. While a single-scale model's performance swung wildly depending on the chosen segment length, the Multi-Scale version provided consistent, high-quality results.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain open:

  • Short-term performance: In very short-term forecasting (e.g., predicting only 96 steps), traditional models like ARIMA or the standard Autoformer occasionally performed slightly better, suggesting the segment-wise approach is specifically optimized for the "long game."
  • Segment Boundaries: The paper uses fixed-length segments. Future work could explore dynamic or overlapping segments to better capture events that don't align perfectly with a fixed grid.
  • Computational Overhead of Scales: While memory-efficient, calculating multiple scales does add some constant-time overhead that could be further optimized.

Summary updated

BibTeX
@inproceedings{du2023preformer,
  author = {Dazhao Du and Bing Su and Zhewei Wei},
  title = {{Preformer: Predictive Transformer with Multi-Scale Segment-Wise Correlations for Long-Term Time Series Forecasting}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096881},
}

Loading related content...

Figure