Abstract
Multivariate time series (MTS) forecasting is a critical task across various domains, from traffic management to energy grid optimization. While Graph Neural Networks (GNNs) offer a powerful way to model spatial dependencies between variables, they typically require a pre-defined graph structure. This paper introduces MTGNN, a framework that automatically learns the latent graph structure from data while simultaneously capturing complex spatial and temporal patterns. By integrating a graph learning layer, a mix-hop propagation graph convolution module, and a dilated inception temporal convolution module, MTGNN achieves state-of-the-art performance on multiple benchmark datasets, even outperforming models provided with ground-truth physical maps.
Introduction
In multivariate time series forecasting—predicting variables like traffic speeds across a city or electricity usage across a grid—we assume that variables are interlinked. For example, a traffic jam on one highway eventually slows down the connecting roads. Traditional statistical models like Vector Autoregression (VAR) struggle to scale, while standard deep learning models like LSTMs or CNNs often treat variables as a flat list, failing to explicitly model the "spatial" dependencies between them.
Graph Neural Networks (GNNs) are the natural solution for this, but they face a major "chicken and egg" problem: they require a well-defined graph to function. In many real-world scenarios, such as exchange rates or solar energy, we do not have a "map" of how variables relate. MTGNN addresses this by learning the graph structure from scratch while capturing complex patterns.
Methodology
The MTGNN framework consists of three core components integrated into an end-to-end trainable architecture:
1. Graph Learning Layer
This module learns a sparse, uni-directional adjacency matrix using node embeddings to calculate similarity between variables. Crucially, it employs an argtopk approach to ensure each node only connects to its most relevant neighbors, keeping the graph sparse and computationally efficient. Unlike most models that assume symmetric relationships, MTGNN learns uni-directional links, reflecting real-world dynamics where influence may only flow one way.
2. Graph Convolution Module (Mix-hop Propagation)
To handle spatial dependencies, the authors developed a "mix-hop" layer. Standard GNNs often suffer from "over-smoothing," where node features become indistinguishable after many layers. This module avoids that by specifically retaining a portion of the node’s original state (the "root" information) during propagation.
3. Temporal Convolution Module (Dilated Inception)
To capture time-based patterns, the model uses 1D convolutions. A "Dilated Inception" layer uses multiple filter sizes (e.g., 1x2, 1x3, 1x6, 1x7) to capture different periodicities, such as weekly or daily cycles. Dilated convolutions allow the model to see further back in time without requiring a massive number of parameters.
To ensure training stability, the authors utilize Curriculum Learning. The model first learns to predict just one step ahead and gradually increases the difficulty to multi-step forecasting as training progresses.
Key Insights and Results
MTGNN was evaluated on both single-step (Solar-Energy, Traffic, Electricity, Exchange-Rate) and multi-step (METR-LA, PEMS-BAY) forecasting tasks.
- Competitive Graph Learning: One of the most significant findings was that MTGNN performed on par with models that were provided with actual road networks (METR-LA and PEMS-BAY). This suggests that the latent dependencies the model discovers in the data are just as useful as physical distance maps.
- State-of-the-Art Performance: MTGNN outperformed baseline methods like LSTNet and TPA-LSTM on 3 out of 4 single-step benchmark datasets. On the Traffic dataset, it lowered the Root Relative Squared Error (RRSE) by approximately 4-7% across different prediction horizons.
- Ablation Success: Robustness tests showed that the Graph Convolution module was the most critical component; removing it led to the largest drop in accuracy, proving that modeling spatial dependencies is vital for MTS.
Conclusion and Future Work
MTGNN demonstrates that it is possible to leverage the power of GNNs even when the underlying graph structure is unknown. While the current model learns a static graph, future work could explore "online learning" versions to adapt to dynamic systems where relationships change over time (e.g., road closures). Additionally, while sub-graph sampling helps, scaling to tens of thousands of variables remains a computational challenge for the $O(N^2)$ graph learning step. Further research into the interpretability of learned graphs could also verify if these discovered relationships correspond to causal real-world links.
Summary updated