DGCformer: Deep Graph Clustering Transformer for Multivariate Time Series Forecasting

Qinshuo Liu, Yanwen Fang, Pengtao Jiang, Guodong LiarXiv 2024

Abstract

Multivariate time series forecasting tasks are usually conducted in a channel-dependent (CD) way since it can incorporate more variable-relevant information. However, it may also involve a lot of irrelevant variables, and this even leads to worse performance than the channel-independent (CI) strategy. This paper combines the strengths of both strategies and proposes the Deep Graph Clustering Transformer (DGCformer) for multivariate time series forecasting. Specifically, it first groups these relevant variables by a graph convolutional network integrated with an autoencoder, and a former-latter masked self-attention mechanism is then considered with the CD strategy being applied to each group of variables while the CI one for different groups. Extensive experimental results on eight datasets demonstrate the superiority of our method against state-of-the-art models.

Introduction: Bridging Channel Dependency and Independence

In Multivariate Time Series Forecasting (MTSF), the choice of modeling strategy often falls between two extremes. The Channel-Dependent (CD) strategy assumes all variables interact, aiming to capture rich cross-channel correlations. However, as shown in empirical studies, this often introduces noise from irrelevant variables, leading to overfitting. Conversely, the Channel-Independent (CI) strategy treats each variable as a separate entity. While robust and often superior in performance, CI ignores potentially valuable inter-variable relationships.

Comparison of CD, CI, and DGCformer strategies.

DGCformer seeks the "Goldilocks" zone by identifying and grouping related variables. It applies CD modeling within these clusters to capture essential interactions while maintaining CI modeling between clusters to filter out noise.

Methodology: The DGCformer Architecture

The DGCformer framework operates in two distinct stages: Deep Graph Clustering and Transformer-based Forecasting.

Stage 1: Deep Graph Clustering

To effectively group variables, DGCformer utilizes two integrated modules:

  • Reconstruction-Feature Learning (RFL): An autoencoder based on Gated Recurrent Units (GRUs) that compresses raw time series into low-dimensional latent representations, capturing the fundamental temporal features of each channel.
  • Graph-Cluster Learning (GCL): A Graph Convolutional Network (GCN) that refines initial variable correlations. It learns a cluster assignment matrix, determining the probability of each variable belonging to a specific group.

Stage 2: Masked Transformer Forecasting

Once clusters are established, the forecasting stage leverages a modified Transformer architecture:

  • Patching and Embedding: Time series are divided into sub-segments (patches) to preserve local semantic information and reduce computational complexity, following the success of recent patch-based models.
  • Former-Latter Masked Self-Attention: This core innovation uses a binary mask derived from the clustering stage. In the attention mechanism, a variable only attends to others within its own cluster (CD strategy), while variables in different clusters are masked (CI strategy).
  • Linear Projection: A final linear layer maps the learned representations to the predicted future values.
The two-stage architecture of DGCformer, highlighting the clustering and masked attention mechanisms.

Experimental Evaluation

The model was evaluated against state-of-the-art (SOTA) baselines, including PatchTST and Crossformer, across eight diverse real-world datasets: ETT (four subsets), Weather, ECL, Exchange, and Illness (ILI). These datasets vary significantly in scale (7 to 321 variables) and temporal granularity.

Key Results

  • Performance Leadership: DGCformer achieved the best performance in 57 out of 64 experimental settings across different datasets and prediction lengths.
  • Significant Gains on Small Datasets: On the "Illness" dataset, known for high variability and small sample size, DGCformer significantly outperformed traditional models, reducing MSE from 4.657 (Informer) to 1.366 in specific lookahead scenarios.
  • Robustness: The model proved effective even on datasets like "Exchange," where inter-channel correlations are weak, by correctly identifying the lack of strong clusters and defaulting to a more independent modeling approach.

Conclusion

DGCformer successfully addresses the limitations of pure CD and CI strategies in multivariate time series forecasting. By employing deep graph clustering to guide a masked self-attention mechanism, the model captures relevant inter-variable dependencies while ignoring irrelevant noise. While the current two-stage process introduces some computational overhead, its superior accuracy across varied benchmarks establishes it as a powerful new approach for complex forecasting tasks. Future work will focus on end-to-end integration and scaling to extremely high-dimensional data.

Summary updated

BibTeX
@misc{liu2024dgcformer,
  author = {Qinshuo Liu and Yanwen Fang and Pengtao Jiang and Guodong Li},
  title = {{DGCformer: Deep Graph Clustering Transformer for Multivariate Time Series Forecasting}},
  year = {2024},
  eprint = {2405.08440},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.08440},
}
Figure