NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dynamic Graph Convolutional Network with Attention Fusion for Traffic Flow Prediction

Xunlian Luo, Chunjiang Zhu, Detian Zhang, Qing Li

TL;DR

This paper introduces AFDGCN, a novel dynamic graph convolutional network with attention fusion for traffic flow prediction. It addresses the limitations of static graph structures and separate spatial-temporal modeling by proposing a dynamic graph learner and multi-head attention fusion, achieving state-of-the-art performance on real-world traffic datasets.

What Problem Does This Paper Address?

Accurate and real-time traffic flow prediction is crucial for urban computing applications like navigation and smart city traffic management. Traffic flow is influenced by complex spatial and temporal dependencies, which are often multi-scale. Existing deep learning approaches, while powerful, often rely on pre-defined static graphs and treat spatial and temporal components separately, hindering their ability to capture nuanced, dynamic relationships. This can lead to difficulties in modeling multi-scale spatial-temporal dependencies and capturing long-range temporal patterns effectively.

Methods

The proposed AFDGCN model comprises four key modules:

  • Feature Augmentation Layer: This module enhances the interaction of temporal and channel-wise features. It uses a "squeeze-excitation" inspired structure to recalibrate feature importance, followed by a temporal convolution layer to focus on significant time points.
  • Dynamic Graph Convolutional Recurrent Network (DGCGRU): This is the core of the spatial-temporal modeling. Instead of relying on fixed graphs, it employs a dynamic graph learner that generates an adaptive similarity matrix based on node embeddings. This allows the model to learn implicit spatial relationships that evolve with the data. The GCN is integrated into a GRU architecture to jointly model synchronous spatial-temporal correlations.
  • Multi-head Temporal Attention Module: To compensate for the GRU's limitations in capturing long-range temporal dependencies, this module uses multi-head self-attention to extract global context from the sequence. It incorporates positional encoding to account for the order of time steps.
  • Graph Attention Module: This module further refines spatial modeling by dynamically assigning weights to neighbors based on feature similarity. This allows the model to adapt to evolving spatial patterns, such as those caused by events like traffic accidents.

The model then uses a prediction layer (convolutional layer) to output the traffic flow predictions.

Datasets

The authors evaluated their model on four real-world traffic flow datasets collected by the California Department of Transportation sensors:

  • PeMSD3
  • PeMSD4
  • PeMSD7
  • PeMSD8

These datasets record traffic statuses (flow, speed, occupancy) at 5-minute intervals. The data was standardized and split into training, validation, and testing sets.

Key Insights and Ideas

  • Dynamic Graphs are Crucial: The paper strongly advocates for dynamic, adaptive graph structures over static ones. The ability to learn implicit spatial relationships that change over time is shown to be critical for accurate traffic prediction.
  • Attention Fusion for Comprehensive Modeling: Combining temporal attention (for long-range dependencies) and graph attention (for dynamic spatial relationships) within a unified framework allows the model to capture a richer set of spatial-temporal patterns.
  • Feature Augmentation Matters: Enhancing the input features before feeding them into the core model improves the model's ability to understand the data's intrinsic characteristics.
  • Efficiency with Performance: The proposed AFDGCN achieves state-of-the-art accuracy while maintaining competitive training and inference times, suggesting a good balance between performance and computational cost.

Key Results

AFDGCN consistently outperformed 18 baseline methods across all four datasets on MAE, RMSE, and MAPE metrics. For instance, compared to the best baseline (DSTAGNN), AFDGCN showed improvements of 3.85% on MAE and 3.41% on MAPE for the PeMSD3 dataset. The paper also highlights that AFDGCN is significantly faster than models like DSTAGNN and STG-NCDE, with training and inference times being 4-5x and 4-6x faster, respectively. Visualizations in Figure 3 demonstrate AFDGCN's superior ability to fit ground truth, especially during challenging traffic scenarios like peak hours.

Limitations and Future Work

  • Limitations: While the paper demonstrates strong performance, the authors acknowledge that GRU's inherent limitations in rigidly memorizing all fixed-length sequences might still be a factor, though mitigated by attention mechanisms. The computational cost, while competitive, is still a consideration for real-time deployment.
  • Future Work: The authors suggest extending AFDGCN to other spatial-temporal prediction tasks and exploring methods to model dynamic spatial dependencies with time-varying properties more explicitly. Further research into optimizing computational efficiency for even faster inference is also a potential avenue.

Summary updated

BibTeX
@inproceedings{luo2023dynamic,
  author = {Xunlian Luo and Chunjiang Zhu and Detian Zhang and Qing Li},
  title = {{Dynamic Graph Convolutional Network with Attention Fusion for Traffic Flow Prediction}},
  booktitle = {ECAI},
  year = {2023},
  doi = {10.3233/faia230446},
}
Figure