Spatio-Temporal Meta-Graph Learning for Traffic Forecasting

Renhe Jiang, Zhaonan Wang, Jiawei Yong, Puneet Jeph, Quanjun Chen, Yasumasa Kobayashi, Xuan Song, Shintaro Fukushima, Toyotaro Suzumura

Introduction

Accurate traffic forecasting is a cornerstone of intelligent transportation systems, enabling efficient route planning, congestion management, and reduced carbon emissions. However, urban traffic data is notoriously difficult to model due to its complex spatio-temporal dependencies. Traditional approaches often rely on static graph structures that fail to capture the dynamic nature of road networks. This paper introduces the Meta-Graph Convolutional Recurrent Network (MegaCRN), a novel framework that moves beyond fixed spatial assumptions by learning to generate situation-aware graphs on the fly.

The Challenge: Heterogeneity and Non-Stationarity

Traffic forecasting models must navigate two primary hurdles:

  1. Spatio-Temporal Heterogeneity: Different road segments exhibit distinct behavioral patterns. A highway interchange, for instance, has a traffic signature fundamentally different from a residential street. Most existing Graph Convolutional Networks (GCNs) use a single, static graph (often based on physical distance) to model these relationships, which oversimplifies the diverse functional roles of nodes in a network.
  2. Non-Stationarity: Traffic is highly dynamic. Patterns shift not only by the hour but also due to unpredictable events like accidents, roadwork, or weather. Static or even simple "adaptive" graphs struggle to adjust when the underlying logic of the network changes abruptly.
The evolution of graph structure learning in traffic modeling, from heuristic-based static graphs to the proposed Meta-Graph approach.

As shown in the evolution of graph learning, the Meta-Graph approach represents a significant shift. While heuristic methods rely on pre-defined metrics and adaptive methods learn a single global structure, the Meta-Graph approach queries a memory of prototypical behaviors to construct a graph tailored to the current state.

Methodology: MegaCRN

The core innovation of MegaCRN is the Meta-Graph Learner, which replaces fixed adjacency matrices with a dynamic generation process. This process is built upon several key components:

Meta-Node Bank

The Meta-Node Bank is a memory module containing a set of learnable "prototypes"—latent vectors that represent typical traffic behaviors (e.g., morning rush, weekend lull, or accident-induced bottleneck). Instead of learning a specific representation for every single sensor, the model learns a shared vocabulary of traffic states.

Meta-Graph Learner and Hyper-Network

At each time step, the model uses the current hidden state to query the Meta-Node Bank. A Hyper-Network then transforms these retrieved prototypes into node-specific embeddings. These embeddings are used to compute a dynamic adjacency matrix, ensuring that the graph structure used for convolutions is always relevant to the current traffic conditions.

The full MegaCRN architecture, illustrating the integration of the Meta-Graph Learner with the GCRU encoder-decoder framework.

GCRU Encoder-Decoder

The architecture utilizes Graph Convolutional Recurrent Units (GCRU) within an encoder-decoder structure. The encoder processes historical time series data to capture temporal trends, while the decoder utilizes the generated Meta-Graph to project future traffic states. To ensure the Meta-Node Bank remains diverse and representative, the authors implement dual constraints: a contrastive loss to distinguish between different prototypes and a consistency loss to stabilize learning.

Experimental Evaluation

The model was rigorously tested on three datasets: METR-LA (Los Angeles), PEMS-BAY (Bay Area), and a newly introduced large-scale dataset, EXPY-TKY. EXPY-TKY covers 1,843 road links in Tokyo and includes detailed traffic incident logs, providing a unique benchmark for testing model robustness during non-stationary events.

Performance and Efficiency

MegaCRN consistently outperformed state-of-the-art baselines, including AGCRN and MTGNN, across all horizons. Notably, it achieved these results with remarkable parameter efficiency. On the EXPY-TKY dataset, MegaCRN maintained the lowest Mean Absolute Error (MAE) while utilizing significantly fewer parameters than complex Transformer-based models.

Incident Awareness

Qualitative analysis demonstrated that MegaCRN is uniquely capable of handling anomalies. In case studies involving real-world accidents in Tokyo, the Meta-Graph Learner successfully adapted the network structure in real-time. While baseline models often lagged or failed to recognize the severity of a sudden speed drop, MegaCRN’s query-based mechanism allowed it to pivot to an "incident-aware" graph structure, resulting in much more accurate recovery predictions.

Conclusion

MegaCRN represents a significant advancement in spatio-temporal modeling. By decoupling graph structure from fixed geography and instead linking it to a memory of learned behaviors, the model achieves superior accuracy and adaptability. Its efficiency and robustness to non-stationary events make it a highly practical solution for real-world urban traffic management. Future work may explore applying this meta-learning framework to other domains, such as energy grid monitoring or financial market analysis.

Summary updated

BibTeX
@inproceedings{jiang2023spatio,
  author = {Renhe Jiang and Zhaonan Wang and Jiawei Yong and Puneet Jeph and Quanjun Chen and Yasumasa Kobayashi and Xuan Song and Shintaro Fukushima and Toyotaro Suzumura},
  title = {{Spatio-Temporal Meta-Graph Learning for Traffic Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.25976},
}
Figure