Abstract
Traffic forecasting is a critical component of intelligent transportation systems. While Graph Neural Networks (GNNs) have become the standard for this task, they typically rely on static, pre-defined graphs based on physical distance. These graphs often fail to capture the complex, evolving relationships between locations. We present Spatio-Temporal Latent Graph Structure Learning (ST-LGSL), a framework that learns latent graph structures directly from data. By integrating spatial and temporal dynamics through a dual-stream architecture and a curriculum learning strategy, ST-LGSL significantly improves prediction accuracy over traditional models on real-world benchmarks.
Introduction
Traditional traffic forecasting models often use road network distance to define graph structures. However, this approach has three major flaws: it is often incomplete (missing correlations between distant but functionally similar areas), static (ignoring temporal shifts), and neglects the rich correlation information hidden in the time-series data itself. ST-LGSL addresses these gaps by learning a latent graph that reflects behavioral similarities between nodes, allowing the model to "mine" connections that are invisible on a physical map.
Methodology
The ST-LGSL architecture is designed to capture both spatial proximity and behavioral similarity through three core components:
- Latent Graph Structure Learning module (LGSLm): This module employs a Multilayer Perceptron (MLP) and K-Nearest Neighbor (kNN) algorithm to identify node neighbors based on historical traffic behavior. It initializes using the ground-truth physical adjacency matrix, providing a "warm start" that combines known geography with learned similarity.
- Spatio-Temporal Prediction Layers: The model uses a dual-stream architecture. Diffusion Graph Convolutions process spatial features across the learned graphs, while Gated Temporal Convolutions (inspired by WaveNet) capture long-range temporal dependencies without the high computational cost of RNNs.
- Curriculum Learning Strategy: To ensure training stability, the model follows a "start easy" approach, initially learning to predict just one step ahead (5 minutes) and gradually increasing the difficulty until it can forecast a full hour (12 steps) into the future.
Experiments and Results
The model was evaluated on two widely recognized real-world traffic benchmarks: METR-LA (207 sensors in Los Angeles) and PEMS08 (170 sensors in San Bernardino). ST-LGSL consistently outperformed state-of-the-art baselines like DCRNN, Graph WaveNet, and MTGNN across all metrics (MAE, RMSE, MAPE).
On the PEMS08 dataset, ST-LGSL improved the Mean Absolute Error (MAE) by 6.72% to 30.01% compared to the classic DCRNN model. The model showed particular strength in long-term forecasting (60 minutes out), where the benefits of the learned latent structures become more apparent as simple spatial proximity becomes less predictive.
Discussion and Insights
A key insight of this work is that time-series data itself contains the blueprint for the graph structure. By analyzing how two sensors' speeds fluctuate together over time, the model can infer connections that a distance-based graph ignores. Visualization of the training process reveals that the learned graph becomes denser and more refined over time, capturing more nuanced node-wise correlations than the initial distance-based graph.
Conclusion and Future Work
ST-LGSL demonstrates that learning latent graph structures directly from data is a powerful approach for traffic forecasting. While the current model is robust, future work could explore integrating self-attention mechanisms to further improve long-distance temporal dependencies. Additionally, developing "dynamic" graph learning where the topology shifts in real-time based on immediate traffic incidents or weather conditions remains a promising direction for research.
Summary updated