Long sequence time-series forecasting method based on multi-scale segmentation

Shenglin He, Chen Long, Jing Zheng, Shuang Wang, Zhenkun Wen, Huisi Wu, Dong Ni, Xiaorong He, Xueqing WuJOURNAL 2024

Abstract

Addressing challenges posed by large volumes of historical data, high computational complexity, and stringent prediction accuracy requirements in long sequence time-series forecasting (LSTF), we propose a Transformer model incorporating the concept of multi-scale segmentation. The model enhances the Transformer architecture by employing multi-scale segmentation to slice the time series into multiple time periods for training and prediction, thereby reducing the complexity of long time series and improving prediction accuracy. Experimental results on real-world datasets—including electricity transformer temperature (ETT), electricity consumption load (ECL), and weather—demonstrate that the proposed model outperforms traditional benchmarks such as the standard Transformer, Informer, GRU, TCN, and LSTM in terms of mean absolute error (MAE) and mean squared error (MSE). Notably, the model achieves an MSE of 0.367 and an MAE of 0.407 on the Weather dataset with a prediction length of 192, consistently surpassing other models while maintaining faster computational speeds.

Introduction

Long sequence time-series forecasting is critical for applications ranging from power grid management to climate prediction. However, standard Transformer architectures face two major hurdles in this domain. First is computational complexity: point-wise self-attention results in $O(L^2)$ complexity, which becomes prohibitively expensive as sequence length ($L$) increases. Second is the loss of local context: treating each timestamp as an isolated point ignores the continuous "shapes" and trends inherent in temporal data. While sparse attention mechanisms have attempted to mitigate complexity, they often do so at the cost of accuracy.

Proposed Methodology

The proposed architecture introduces a specialized pipeline designed to capture local temporal patterns efficiently while reducing the overall computational burden.

Channel Enhancement Module

Before the forecasting stage, the model employs a Channel Enhancement Module inspired by Squeeze-and-Excitation networks. This module uses 1D convolutions and global average pooling to identify the most relevant input variables (channels) and suppress noise from less informative ones.

The Channel Enhancement Module utilizes 1D convolutions and global average pooling to weight input channels.

Multi-Scale Segmentation and Local Attention

The core innovation is the replacement of point-wise attention with a segment-based approach. The model uses an "Unfold" operation to slice the input data into segments of varying lengths ($L_{seg}$), allowing the network to observe the data at multiple resolutions (e.g., hourly vs. daily patterns). Self-attention is then performed on these segments rather than individual points. This drastically reduces the number of tokens processed, effectively lowering complexity while preserving the chronological order within each segment.

Overall architecture showing the multi-scale segmentation and segment-based Transformer blocks.

Experimental Evaluation

The model was evaluated against five major baselines: the standard Transformer, Informer, TCN, LSTM, and GRU across three multivariate benchmarks: ETTm1, ECL, and Weather.

Key Results

  • Accuracy: On the Weather dataset (prediction length 192), the proposed model achieved an MSE of 0.367, significantly outperforming Informer (MSE 0.598).
  • Efficiency: The model proved remarkably lean in head-to-head tests against the standard Transformer:
  • Iteration Time: 0.019s vs. 0.036s.
  • GPU Memory: 1,412 Mbit vs. 1,986 Mbit.
  • Parameters: The model utilizes approximately 2.08M parameters, compared to Informer’s 11.33M.

Conclusion

By shifting the granularity of attention from individual points to multi-scale segments, the proposed model captures the "shape" and trends of time-series data more robustly than traditional methods. This approach not only improves predictive accuracy but also solves the quadratic bottleneck of standard Transformers, making it a highly efficient solution for long-term forecasting tasks. Future work will explore integrating explicit time decomposition (trend vs. seasonality) and automated hyperparameter tuning for segment lengths.

Summary updated

BibTeX
@article{he2024long,
  author = {Shenglin HE and Chen Long and Jing Zheng and Shuang Wang and Zhenkun Wen and Huisi Wu and Dong Ni and Xiaorong HE and Xueqing WU},
  title = {{Long sequence time-series forecasting method based on multi-scale segmentation}},
  journal = {JOURNAL},
  year = {2024},
  doi = {10.3724/sp.j.1249.2024.02232},
}
Figure