InParformer: Evolutionary Decomposition Transformers with Interactive Parallel Attention for Long-Term Time Series Forecasting

Haizhou Cao, Zhenhao Huang, Tiechui Yao, Jue Wang, Hui He, Yangang Wang

Abstract

Transformers have revolutionized natural language processing and computer vision, yet their application to time series forecasting remains challenging due to the continuous nature and high redundancy of numeric sequences. InParformer introduces a novel architecture designed to bridge this semantic gap. By utilizing a dual-path Interactive Parallel Attention (InPar Attention) mechanism and an Evolutionary Seasonal-Trend Decomposition (EvoSTD) module, the model captures both global periodic patterns and local dynamics efficiently. Experimental results across multiple benchmarks demonstrate that InParformer significantly outperforms existing state-of-the-art models, particularly in long-term forecasting scenarios.

Introduction

Standard Transformers were designed for discrete tokens with high semantic density, such as words in a sentence. In contrast, time series data consists of continuous numeric points that are often individually "weak" in meaning but carry significant information through collective trends and seasonality. Existing adaptations often struggle with computational redundancy and the difficulty of disentangling complex patterns. InParformer addresses these hurdles by processing data in both the time and frequency domains simultaneously while employing a flexible "evolutionary" decomposition method.

The InParformer Architecture

The InParformer follows an encoder-decoder structure optimized for time series decomposition. Unlike traditional models that use fixed-window moving averages, InParformer integrates evolutionary components to adapt to shifting data patterns.

The overall architecture of InParformer, highlighting the Encoder and Decoder blocks containing InPar Attention and EvoSTD modules.

Interactive Parallel Attention (InPar Attention)

A core innovation of InParformer is the Interactive Parallel Attention mechanism. Instead of a single attention path, it employs a dual-path approach to capture multi-scale features:

  • Frequency-Aware Attention (FAA): Utilizes Fast Fourier Transforms (FFT) to operate in the frequency domain, capturing global periodic patterns that are often missed in the time domain.
  • Time-Aware Attention (TAA): Focuses on local, point-to-point dynamics to maintain sensitivity to sudden changes or spikes.

To maintain efficiency, InParformer uses Query Selection to sample subsets of queries and Interactive Partitioned Convolution (IPConv). IPConv compresses keys and values using multi-resolution convolutions, allowing the model to observe data at different scales without the quadratic memory costs associated with standard attention.

The Parallel Attention Module, illustrating the dual paths of Frequency-Aware and Time-Aware Attention.

Evolutionary Seasonal-Trend Decomposition (EvoSTD)

Most forecasting models rely on a fixed-window moving average to separate trends from seasonality. InParformer introduces the Evolutionary Seasonal-Trend Decomposition (EvoSTD) module, which utilizes a Binary Decomposition algorithm. This divide-and-conquer approach iteratively splits the series to extract seasonal components without requiring a pre-defined window size. This flexibility makes the model robust against data with complex or non-stationary trends.

Experimental Evaluation

The researchers evaluated InParformer on six real-world benchmarks, including the Electricity Transformer Temperature (ETT) datasets, Traffic, Weather, and Exchange rates.

Key Results

  • Multivariate Forecasting: InParformer achieved an average 5.9% reduction in Mean Squared Error (MSE) compared to the previous state-of-the-art, FEDformer.
  • Univariate Forecasting: The improvement was more pronounced, with an average 20.5% reduction in MSE.
  • Challenging Datasets: On the "Exchange" dataset—noted for its lack of clear periodicity—InParformer achieved a 15.1% MSE reduction, proving its flexibility.
  • Stability: Performance remained stable even as the forecasting horizon increased, indicating resilience against error accumulation.

Conclusion

InParformer represents a significant advancement in time series forecasting by effectively addressing the low semantic density and high redundancy of numeric sequences. By combining frequency-domain global awareness with time-domain local precision, and replacing rigid decomposition with an evolutionary approach, it sets a new benchmark for accuracy and efficiency. Future work may involve integrating InPar Attention into larger foundation models to create more universal forecasting tools.

Reference: Cao, H., et al. (2023). InParformer: Evolutionary Decomposition Transformers with Interactive Parallel Attention for Long-Term Time Series Forecasting. Proceedings of the AAAI Conference on Artificial Intelligence (AAAI-23).

Summary updated

BibTeX
@inproceedings{cao2023inparformer,
  author = {Haizhou Cao and Zhenhao Huang and Tiechui Yao and Jue Wang and Hui He and Yangang Wang},
  title = {{InParformer: Evolutionary Decomposition Transformers with Interactive Parallel Attention for Long-Term Time Series Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25845},
}
Figure