Multivariate Time Series Forecasting with Latent Graph Inference

Victor Garcia Satorras, Syama Sundar Rangapuram, Tim Januschowski

TL;DR

This paper introduces a modular framework that upgrades univariate time series forecasters to multivariate models by dynamically inferring cross-series relationships in latent space. By passing messages through a bipartite graph with a small set of auxiliary nodes, it slashes the computational complexity of graph-based forecasting from quadratic $\mathcal{O}(N^2)$ to linear $\mathcal{O}(NK)$, matching or beating state-of-the-art accuracy at a fraction of the runtime.

What Problem Does This Paper Address?

Predicting multiple interdependent time series—such as traffic across city intersections or power consumption across regional grids—benefits greatly from modeling cross-series interactions. Graph Neural Networks (GNNs) are a natural fit for this, but standard GNN methods rely on pre-existing spatial or physical graphs (like road network distance matrices) that aren't available for most datasets.

Recent methods attempt to infer a latent graph directly from data, but they face severe computational bottlenecks:

  1. Quadratic Scaling: Computing pairwise relationships among $N$ variables scales at $\mathcal{O}(N^2)$ (or worse), choking on modern panels with hundreds or thousands of series.
  2. Temporal Inefficiency: Prior methods typically perform expensive message passing at every single time step along the input history.

The authors set out to design a flexible, scalable latent-graph mechanism that infers dynamic relationships without blowing up the compute budget.

Methods

The authors propose a modular three-stage framework:

  1. Univariate Encoder ($f_{\text{enc}}$): Encodes the historical sequence of each time series independently using an MLP or 1D-CNN. Importantly, a unique series identifier (ID embedding) is concatenated to each latent vector $z_i$, which helps the network distinguish series identity.
  2. Latent Aggregation Module ($\text{AGG}$): Exchanges information across series only once in the latent embedding space at the final time step $t$, rather than at every historical timestamp.
  3. Univariate Decoder ($f_{\text{dec}}$): An MLP that maps each aggregated representation $\hat{z}_i$ to future forecasts independently.

The paper introduces two graph formulations for the aggregation module:

  • FC-GNN (Fully Connected): Assumes a complete graph and dynamically predicts soft attention weights $\alpha_{ij} \in (0, 1)$ between all node pairs. While it scales as $\mathcal{O}(N^2)$, operating only on latent representations makes it significantly faster than prior $\mathcal{O}(N^2)$ approaches.
  • BP-GNN (Bipartite Graph): Inspired by low-rank matrix decomposition, the authors introduce $K$ auxiliary latent nodes ($K \ll N$). Information flows asynchronously in two directed steps: first from the $N$ series nodes to the $K$ auxiliary nodes ($Y \to U$), then back ($U \to Y$). This eliminates direct series-to-series edges and reduces edge complexity to $\mathcal{O}(NK)$, achieving linear scalability in $N$.

Datasets

The authors evaluate their models on both multi-step and single-step benchmarks:

  • Multi-step traffic forecasting: METR-LA (207 nodes) and PEMS-BAY (325 nodes), predicting 15, 30, and 60 minutes ahead.
  • Single-step forecasting: Solar-Energy (137 nodes), Traffic (862 nodes), Electricity (321 nodes), and Exchange-Rate (8 nodes), predicting horizons of 3, 6, 12, and 24 steps.
  • Synthetic Datasets (Introduced):
  • Cycle Graph Gaussians ($N=10$): series values depend strictly on a lagged predecessor in a directed cycle graph.
  • Noisy Sinusoids ($N=10$): two distinct clusters sharing underlying sinusoidal drivers, creating block-diagonal dependencies.

Key Insights and Ideas

  • Late latent aggregation is enough: You do not need to exchange messages across series at every temporal tick. Encoding temporal features locally first and performing relational reasoning once on the latent vectors drastically reduces overhead without sacrificing predictive performance.
  • Low-rank bottleneck works: Setting $K \ll N$ (e.g., just $K = 4$ auxiliary nodes) captures shared macro-patterns across hundreds of series. Even when forcing messages through this bottleneck produces a denser, suboptimal inferred adjacency matrix, forecasting error barely degrades.
  • Series IDs matter: Adding unique node identifiers before latent message passing dramatically widens the gap over univariate baselines, enabling the GNN to learn specific directional affinities rather than generic similarities.
  • Dynamic over static: Inferring edge weights per input sample adapts better to changing market or traffic regimes compared to learning a single, static adjacency matrix for the entire panel.

Key Results

  • Forecasting Accuracy: On METR-LA and PEMS-BAY, FC-GNN matches or outperforms both graph-inference models (MTGNN, GTS) and models that use ground-truth sensor graphs (DCRNN, STGCN). For example, on METR-LA (60 min), FC-GNN achieves an MAE of 3.35 vs. 3.49 for MTGNN and 3.56 for GTS.
  • BP-GNN Efficiency: With $K=4$, BP-GNN achieves nearly identical accuracy to FC-GNN while executing dramatically faster:
  • On Electricity ($N=321$), forward pass runtime is 6.38× faster than FC-GNN and 9.18× faster than MTGNN.
  • On Traffic ($N=862$), BP-GNN is 34.58× faster than FC-GNN and 97.59× faster than MTGNN (forward time: 0.0121s vs. 1.1808s for MTGNN).
  • Ablations: Removing graph aggregation altogether (NE-GNN) consistently degrades performance across all multi-series datasets, confirming that latent communication drives the performance gains.

Limitations and Future Work

  • Small-panel overhead: When $N$ is very small (such as Exchange-Rate with $N=8$), bipartite graphs provide no asymptotic benefit over fully connected graphs ($2NK \approx N^2$ when $K=4$).
  • Sparse graph recovery: Under strict bottlenecks ($K \ll N$), BP-GNN cannot recover truly sparse ground-truth topologies (e.g., simple directed cycles), as auxiliary node sharing forces denser effective connectivity.
  • Deterministic focus: The paper focuses on point predictions (minimizing MAE/MSE). Extending dynamic latent graph aggregation to full probabilistic forecasting remains an open direction.

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