Decoupled Dynamic Spatial-Temporal Graph Neural Network for Traffic Forecasting

Zezhi Shao, Zhao Zhang, Wei Wei, Fei Wang, Yongjun Xu, Xin Cao, Christian S. Jensen · DOI

Abstract

Traffic forecasting is a fundamental component of Intelligent Transportation Systems (ITS), yet it remains challenging due to the complex spatial-temporal correlations inherent in traffic data. Traditional Spatial-Temporal Graph Neural Networks (STGNNs) often treat traffic signals as a monolithic diffusion process, failing to account for the distinct nature of local versus networked traffic. This paper presents D2STGNN, a framework that explicitly decouples traffic signals into diffusion and inherent components using a residual decomposition mechanism. By employing specialized modules for each signal type and learning dynamic spatial dependencies, D2STGNN achieves state-of-the-art performance across multiple large-scale benchmarks.

Introduction

Accurate traffic forecasting is essential for urban planning, navigation, and congestion management. Modern approaches typically leverage STGNNs to model the dependencies between sensors in a road network. However, these models frequently operate under the assumption that all traffic patterns are the result of a single spatial diffusion process.

In reality, traffic data is a complex superposition of two distinct signals:

  1. Diffusion Signals: These represent the movement of vehicles between sensors, such as commuters traveling along a highway corridor. These signals are highly dependent on the spatial topology of the network.
  2. Inherent Signals: These represent local traffic activities that are independent of neighboring sensors, such as short trips to a local grocery store or residential movements. These signals are primarily driven by local temporal patterns rather than network-wide diffusion.

By failing to distinguish between these components, existing models "blur" the data, leading to suboptimal feature extraction. Furthermore, most models rely on static road graphs, which cannot account for the dynamic nature of spatial influence that shifts throughout the day.

Methodology: The D2STGNN Framework

The proposed Decoupled Spatial-Temporal Framework (DSTF), implemented as D2STGNN, addresses these limitations through a multi-stage architecture designed to isolate and model these distinct traffic components.

The Decouple Block and Residual Decomposition

The core innovation of D2STGNN is the Decouple Block. This module utilizes an Estimation Gate, conditioned on time and node embeddings, to perform an initial split of the input signal. To ensure a clean separation, the framework employs a Residual Decomposition mechanism inspired by signal processing techniques like N-BEATS.

In this process, a module "backcasts" the portion of the signal it has learned. This learned component is then subtracted from the original input before the remainder is passed to the subsequent module. This iterative "peeling off" of information ensures that the diffusion and inherent modules focus exclusively on the signals they are best equipped to handle.

Specialized Modeling Modules

Once decoupled, the signals are processed by specialized architectures:

  • Diffusion Model: This module utilizes spatial-temporal localized convolutions. It is specifically designed to capture how traffic flows between adjacent nodes over short, discrete time windows.
  • Inherent Model: This module addresses local temporal dependencies. It combines a Gated Recurrent Unit (GRU) for short-term local patterns with Multi-head Self-Attention to capture long-term periodicities (e.g., daily or weekly cycles).

Dynamic Graph Learning

To move beyond the limitations of static adjacency matrices, D2STGNN learns a time-varying graph. Using an attention-based mechanism, the model calculates the shifting influence between sensors based on historical traffic conditions and the specific time of day. This allows the model to recognize that a sensor several miles away may be highly predictive during peak rush hour but irrelevant during off-peak hours.

Experimental Evaluation

The model was rigorously evaluated on four major public traffic benchmarks: METR-LA and PEMS-BAY (traffic speed), and PEMS04 and PEMS08 (traffic flow). These datasets represent diverse geographic regions and traffic conditions.

Performance and Efficiency

D2STGNN consistently outperformed all baseline models, including GMAN, MTGNN, and DGCRN. On the METR-LA dataset, the model achieved a 2.6% improvement in Mean Absolute Error (MAE) for 1-hour ahead forecasting compared to the previous state-of-the-art.

Beyond accuracy, the model demonstrates significant computational efficiency. By utilizing localized convolutions for the diffusion component rather than global attention mechanisms, D2STGNN trains faster than heavy attention-based models like GMAN while maintaining superior predictive power.

Ablation Studies

Ablation experiments confirmed that the decoupling mechanism—specifically the estimation gate and residual links—is the primary driver of the model's success. Removing these components resulted in the most significant performance degradation, validating the hypothesis that signal separation is critical for accurate forecasting.

Conclusion and Future Work

D2STGNN establishes a new standard for traffic forecasting by acknowledging and addressing the superposition of diffusion and inherent signals. While the model represents a significant advancement, future research may focus on improving robustness against sudden anomalies (e.g., major accidents) and enhancing scalability for massive networks with thousands of nodes. Additionally, integrating external variables such as weather data or real-time event reports could further refine the modeling of inherent traffic signals.

Summary updated

BibTeX
@article{shao2022decoupled,
  author = {Zezhi Shao and Zhao Zhang and Wei Wei and Fei Wang and Yongjun Xu and Xin Cao and Christian S. Jensen},
  title = {{Decoupled Dynamic Spatial-Temporal Graph Neural Network for Traffic Forecasting}},
  journal = {Proc. VLDB Endow.},
  year = {2022},
  doi = {10.14778/3551793.3551827},
}
Figure