Multivariate Time Series Forecasting with Latent Graph Inference

Victor Garcia Satorras, Syama Sundar Rangapuram, Tim Januschowski

TL;DR

This paper introduces a modular framework for multivariate time series forecasting that learns to "connect the dots" between different variables using Graph Neural Networks (GNNs). By introducing a bipartite graph variant with auxiliary nodes, the authors achieve state-of-the-art accuracy while reducing computational complexity from quadratic to linear, enabling forecasting for much larger datasets than previously possible.

What Problem Does This Paper Address?

In many real-world scenarios—like traffic monitoring, energy grid management, or financial markets—we deal with multivariate time series (MTS), where multiple variables evolve together. These variables are rarely independent; traffic at one intersection affects the next, and a surge in demand for one product might correlate with another.

The challenge lies in how to model these dependencies. Traditional univariate models ignore them entirely. Existing multivariate models often require a pre-defined "map" (adjacency matrix) of how variables relate, which we rarely have. More recent "latent graph inference" methods try to learn this map automatically, but they typically scale quadratically ($O(N^2)$) with the number of variables $N$. This makes them prohibitively slow and memory-intensive for large-scale applications with thousands of time series.

Methods

The authors propose a modular architecture that can be wrapped around existing univariate models. The process follows three steps:

  1. Univariate Encoding: Each time series is independently encoded into a latent vector.
  2. Aggregation (The Core Innovation): A GNN-based module propagates information between these latent vectors.
  3. Univariate Decoding: The updated vectors are decoded back into future time series predictions.

The paper introduces two flavors for the Aggregation module:

  • FC-GNN (Fully Connected): Every variable can talk to every other variable. This yields the highest accuracy but suffers from $O(N^2)$ complexity.
  • BP-GNN (Bipartite): This is the efficiency breakthrough. Instead of all-to-all communication, variables communicate through a small set of $K$ "auxiliary nodes." Think of these as central hubs or "meeting rooms" where variables share information. This reduces complexity to $O(NK)$, which is linear with respect to the number of time series.
Figure 1. Illustration of the presented method under fully connected and bipartite graph assumptions.

Crucially, the relationships (edges) are not static; they are dynamically inferred for every input sample using an attention-like mechanism, allowing the model to adapt to changing correlations over time.

Datasets

The model was evaluated on several standard benchmarks:

  • Traffic: METR-LA (207 sensors) and PEMS-BAY (325 sensors).
  • General Benchmarks: Solar-Energy (137 variables), Traffic (862 variables), Electricity (321 variables), and Exchange-Rate (8 variables).
  • Synthetic Datasets: "Cycle Graph" and "Correlated Sinusoids" were used to verify if the model could correctly recover known ground-truth relationship structures.

Key Insights and Ideas

  • Modularity is King: By separating the "relational" part of the model from the "temporal" part, the authors created a plug-and-play component that can enhance existing univariate forecasters.
  • The Power of Hubs: The BP-GNN variant shows that you don't need every variable to talk to every other variable to capture meaningful dependencies. A few auxiliary nodes can act as effective global aggregators.
  • Non-linearity Matters: Unlike many GNN forecasters that use simple linear projections for message passing, this work uses Multi-Layer Perceptrons (MLPs). This allows the model to capture more complex, non-linear interactions between time series.
  • Dynamic vs. Static: Inferring a new graph for every time step (dynamic) is more flexible than learning one fixed graph for the whole dataset (static), especially in volatile systems like traffic or finance.

Key Results

  • Accuracy: FC-GNN consistently outperformed or matched state-of-the-art methods like MTGNN and GTS across most datasets.
  • Scalability: The BP-GNN variant provides a massive speedup. On the largest dataset (Traffic with 862 nodes), BP-GNN was ~34x faster than the authors' own FC-GNN and ~97x faster than the competing MTGNN.
  • Minimal Trade-off: The drop in accuracy when moving from the $O(N^2)$ fully connected model to the $O(NK)$ bipartite model was remarkably small, often less than 1-2% in error metrics.
Figure 4. Left: Forward time in seconds for FC-GNN and BP-GNN on different datasets. Right: Scalability of the number of edges w.r.t. the number of nodes N.

Limitations and Future Work

While the BP-GNN is efficient, its performance is sensitive to the choice of $K$ (the number of auxiliary nodes). As shown in the paper's ablation studies, there is a "sweet spot" for $K$ that balances speed and accuracy.

Figure 3. Left: MAE in METR-LA when sweeping K from 0 to 32 auxiliary nodes (10 runs average). Right: MAE in Cycle Graph N=10, when sweeping K from 1 to 10 (4 runs average).

The current work focuses on point forecasting. A natural next step would be extending this latent graph inference to probabilistic forecasting, where the model predicts a range of possible outcomes rather than just a single value. Additionally, exploring how these auxiliary nodes could be used for hierarchical forecasting (e.g., grouping traffic sensors by city district) remains an open area for research.

Summary updated

BibTeX
@inproceedings{satorras2022multivariate,
  author = {Victor Garcia Satorras and Syama Sundar Rangapuram and Tim Januschowski},
  title = {{Multivariate Time Series Forecasting with Latent Graph Inference}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=JpNH4CW_zl},
}
Figure