Dual Graph for Traffic Forecasting

Long Wei, Zhengxu Yu, Zhongming Jin, Liang Xie, Jianqiang Huang, Deng Cai, Xiaofei He, Xian-Sheng Hua

Introduction

Traffic forecasting is a critical component of modern intelligent transportation systems, aiming to predict future traffic volume or speed based on historical observations. However, traffic dynamics are governed by complex spatial-temporal dependencies. While Graph Neural Networks (GNNs) have become the standard for modeling road networks, most existing approaches suffer from a significant "blind spot": they focus primarily on either intersections (nodes) or the road segments (edges) connecting them.

In reality, traffic at an intersection is inextricably linked to the flow on adjacent roads. Ignoring this interdependence leads to incomplete modeling of traffic propagation and significant error accumulation, particularly in long-term forecasts. This paper introduces DualGraph, a novel deep learning framework that treats traffic forecasting as a collaborative effort between nodes and edges.

Methodology: The DualGraph Architecture

The core innovation of DualGraph is its ability to model the recursive interaction between node and edge features. The architecture follows an Encoder-Decoder structure designed to capture these dependencies across multiple spatial scales.

The overall architecture of DualGraph, featuring an Encoder-Decoder structure built with stacked DualMap blocks.

The DualMap Block

The fundamental building block of the network is the DualMap. Unlike standard Graph Convolutional Networks (GCNs) that rely on fixed affinity matrices, DualMap employs a non-spectral "message passing" mechanism. It explicitly calculates how node features (e.g., intersection wait times) influence connected edges and how edge features (e.g., road congestion) influence connected nodes.

Detailed view of the DualMap block, illustrating the message passing between node features and edge features.

Key technical features include:

  • Recursive Interaction: Information flows from nodes to edges (N2E) and edges to nodes (E2N) within each layer.
  • Residual Learning: Features are updated using shortcut connections ($X \leftarrow X + \Delta X$), allowing for deeper network stacking without signal degradation.
  • Non-Spectral Aggregation: By aggregating information directly from immediate neighbors, the model remains flexible to dynamic traffic conditions without the computational burden of updating global affinity matrices.

Experimental Evaluation

The researchers evaluated DualGraph on three distinct datasets to test its robustness across synthetic and real-world scenarios:

  1. Synth-SUMO: A synthetic dataset generated via SUMO (Simulation of Urban MObility), providing ground truth for both node and edge data.
  2. METR-LA: A standard benchmark featuring speed data from 207 sensors on the Los Angeles highway network.
  3. PeMSD7: A public dataset containing speed data from 228 stations in California.

Key Results

DualGraph consistently outperformed established baselines, including DCRNN and STGCN, across Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Mean Absolute Percentage Error (MAPE).

The model's superiority is most evident in long-term accuracy. On the Synth-SUMO dataset for a 60-minute prediction, DualGraph achieved an MAE of 9.59, a dramatic improvement over DCRNN's 19.84. On the METR-LA benchmark, DualGraph set a new state-of-the-art (SOTA) with an MAE of 3.15 for 60-minute forecasts, surpassing the previous best of 3.41.

Discussion and Insights

A primary insight from this work is that predicting nodes and edges simultaneously acts as a form of natural regularization, improving the accuracy of both. Furthermore, the multi-instance prediction approach in the decoder helps alleviate the "drift" common in traditional Recurrent Neural Networks (RNNs), where errors at one time step propagate to the next.

Even on datasets like METR-LA, which only provide node data, DualGraph's structure allowed it to learn superior internal representations of information flow. This suggests that the latent modeling of edges is beneficial even when explicit edge data is unavailable.

Conclusion and Future Work

DualGraph represents a significant advancement in spatial-temporal modeling by bridging the gap between node-centric and edge-centric graph representations. While the current model assumes feature symmetry between nodes and edges, future work could explore heterogeneous data configurations and the application of this dual approach to other domains, such as power grid management or social network analysis. Despite the increased computational overhead of stacking DualMap layers, the gains in long-term stability make it a compelling choice for complex forecasting tasks.

Summary updated

BibTeX
@article{wei2025dual,
  author = {Long Wei and Zhengxu Yu and Zhongming Jin and Liang Xie and Jianqiang Huang and Deng Cai and Xiaofei He and Xian-Sheng Hua},
  title = {{Dual Graph for Traffic Forecasting}},
  journal = {IEEE Access},
  year = {2025},
  doi = {10.1109/access.2019.2958380},
}
Figure