MSGNet: Learning Multi-Scale Inter-series Correlations for Multivariate Time Series Forecasting

Wanlin Cai, Yuxuan Liang, Xianggen Liu, Jianshuai Feng, Yuankai Wu

Abstract

Multivariate time series (MTS) forecasting is a cornerstone of modern data science, essential for predicting complex systems like global weather patterns, electricity demand, and financial markets. A primary challenge in MTS is modeling the intricate web of inter-series correlations—how different variables influence one another. Existing models often assume these relationships are static, failing to account for dependencies that shift across different time scales. We present MSGNet (Multi-Scale Graph Network), a framework designed to capture these dynamic, multi-scale correlations. By integrating frequency domain analysis with adaptive graph convolutions, MSGNet identifies dominant periodicities and learns unique relational graphs for each scale. Our evaluation shows that MSGNet not only achieves state-of-the-art performance across standard benchmarks but also exhibits remarkable resilience to out-of-distribution data disruptions.

Introduction: The Challenge of Non-Static Correlations

In multivariate time series forecasting, researchers must address two distinct types of patterns: intra-series temporal dependencies (how a single variable evolves) and inter-series correlations (how variables interact). While significant progress has been made in modeling temporal patterns, inter-series modeling remains a bottleneck.

The fundamental limitation of current approaches is the reliance on a single, fixed graph structure to represent variable relationships. In reality, these correlations are often scale-dependent. For instance, two airports might exhibit a strong positive correlation in flight delays over a 24-hour cycle (long-term scale) due to daily traffic patterns, yet show zero or even negative correlation over a 1-hour window (short-term scale) due to localized weather or operational issues. Failing to capture these nuanced, multi-scale dependencies leads to suboptimal forecasting, particularly in complex or volatile environments.

Methodology: The MSGNet Framework

MSGNet addresses the limitation of static graphs through a multi-stage process centered on "ScaleGraph" blocks.

1. Scale Identification via FFT

The model begins by analyzing the input data in the frequency domain using a Fast Fourier Transform (FFT). It identifies the top-$k$ most prominent periodicities (e.g., daily, weekly, or seasonal cycles). These periodicities define the "scales" at which the model will analyze the data.

2. Multi-Scale Adaptive Graph Convolution

For each identified scale, MSGNet learns a unique adaptive adjacency matrix. This allows the model to construct a specific graph for every periodicity, capturing how variable influences change depending on the time window. To capture both immediate and higher-order neighbor relationships, the model employs Mixhop graph convolutions.

MSGNet's multi-scale observation and graph learning process.

3. Intra-series Modeling and Aggregation

Within each scale, a Multi-head Attention (MHA) mechanism captures temporal dependencies within individual series. Finally, the model uses a "Mixture of Experts" strategy to fuse the representations. Representations from different scales are weighted based on their original FFT amplitudes and combined using a SoftMax function to produce the final forecast.

Key Insights and Results

The core innovation of MSGNet is the realization that the "who-influences-whom" graph is not a single entity but a collection of scale-dependent structures. By decomposing signals into stable periodic scales, the model gains significant robustness.

State-of-the-Art Performance

MSGNet was evaluated against eight real-world datasets, including standard benchmarks like Weather and Electricity, and a specialized Flight dataset from the COVID-19 era. MSGNet achieved the best average rank (1.813) among all models, outperforming prominent architectures such as TimesNet and DLinear.

Robustness to Out-of-Distribution (OOD) Data

The Flight dataset, sourced from the OpenSky network during the pandemic, provided a rigorous test for OOD performance. Sudden disruptions in historical flight patterns caused many traditional models to fail. MSGNet, however, reduced the Mean Squared Error (MSE) by 21.5% compared to the previous state-of-the-art, demonstrating its ability to adapt to sudden systemic shocks by focusing on stable periodic components.

Explainability

Visualization of the learned graphs confirms the model's intuition. For example, in aviation data, MSGNet identifies that distant airports influence each other primarily over long time scales (e.g., 24h), while nearby airports exhibit stronger mutual influence at shorter scales (e.g., 4h).

Conclusion

MSGNet represents a significant step forward in multivariate time series forecasting by acknowledging and modeling the multi-scale nature of inter-series correlations. By combining the strengths of frequency domain analysis, adaptive graph learning, and attention mechanisms, it provides a robust and explainable framework for complex forecasting tasks. Future work will explore refining scale selection and applying these techniques to highly irregular, non-periodic time series.

Summary updated

BibTeX
@inproceedings{cai2024msgnet,
  author = {Wanlin Cai and Yuxuan Liang and Xianggen Liu and Jianshuai Feng and Yuankai Wu},
  title = {{MSGNet: Learning Multi-Scale Inter-series Correlations for Multivariate Time Series Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i10.28991},
}
Figure