A Sparse Cross Attention-Based Graph Convolution Network With Auxiliary Information Awareness for Traffic Flow Prediction

Lingqiang Chen, Qinglin Zhao, Guanghui Li, Mengchu Zhou, Chenglong Dai, Yiming Feng, Xiaowei Liu, Jinjiang LiIEEE Trans. ITS 2023

Traffic flow prediction is a cornerstone of intelligent transportation systems, yet it remains a significant challenge due to the complex interplay between spatial-temporal dynamics and external environmental factors. This paper introduces AIMSAN, a deep learning framework designed to enhance both the accuracy and scalability of traffic forecasting by explicitly modeling auxiliary information and employing a sparse attention mechanism.

The Challenge: Complexity and Scalability

Predicting traffic flow is difficult because it is influenced by two primary factors:

  1. Spatial-Temporal Dynamics: Traffic at one location affects others over time, but these relationships are non-linear and shift throughout the day.
  2. External Variables: Weather conditions (e.g., rain, fog), holidays, and road maintenance can drastically alter baseline patterns.

While Graph Convolutional Networks (GCNs) have shown promise, many existing models either ignore auxiliary factors or rely on static graphs based on physical distance. Furthermore, advanced models that learn dynamic relationships often suffer from quadratic computational complexity ($O(N^2)$). As urban sensor networks grow, these models become computationally prohibitive.

Methodology: The AIMSAN Framework

AIMSAN utilizes an encoder-decoder architecture designed to fuse traffic data with environmental context efficiently. The model consists of three core components:

1. Auxiliary Information-aware Module (AIM)

This module uses a multi-branch structure to embed diverse data types—including time (day of week, holidays), position (latitude/longitude), and weather—into a unified tensor. This modular design allows for the flexible inclusion of various environmental attributes.

2. Sparse Cross Attention-based GCN (SAN)

This is the model's primary innovation. Unlike standard self-attention, SAN uses cross-attention to fuse traffic data with the auxiliary embeddings from the AIM. To address scalability, it implements a sparse strategy: it calculates weights only for the "top-$k$" most relevant neighbors for each node. This reduces complexity from $O(N^2)$ to $O(N \times k)$, aligning the mathematical model with the physical reality that a sensor is typically influenced by a limited number of nearby or relevant nodes.

The sparse attention mechanism calculates weights for the most relevant neighbors, reducing computational complexity.

3. Dilated Causal Convolution (DCC)

To capture long-term temporal dependencies without the vanishing gradient issues common in RNNs, AIMSAN employs dilated convolutions. This provides a large receptive field, allowing the network to analyze historical patterns far back in time with minimal layers.

The overall AIMSAN architecture featuring the Encoder-Decoder structure, AIM modules, and SAN layers.

Key Insights and Results

The model was evaluated on three real-world datasets: METR-LA (traffic speed), PEMS04 (traffic volume), and PEMS07 (a large-scale dataset with 883 sensors).

  • Superior Accuracy: AIMSAN consistently outperformed state-of-the-art baselines, including Graph WaveNet and DMSTGCN, across all standard metrics (MAE, RMSE, MAPE).
  • Efficiency Gains: By enforcing sparsity, AIMSAN achieved massive efficiency improvements over its closest competitors:
  • 35.74% reduction in GPU memory usage.
  • 42.25% reduction in training time.
  • 45.51% reduction in validation time.
  • Scalability: While several baseline models failed on the large PEMS07 dataset due to memory limits, AIMSAN remained stable and accurate, proving its viability for large-scale urban road networks.

Conclusion

AIMSAN demonstrates that sparsity is not just a computational shortcut but a feature that aligns with the physical nature of traffic. By treating auxiliary data as a structural guide to reshape the graph dynamically, the model achieves high accuracy while remaining efficient enough for real-world deployment in growing smart cities.

Summary updated

BibTeX
@article{chen2023sparse,
  author = {Lingqiang Chen and Qinglin Zhao and Guanghui Li and Mengchu Zhou and Chenglong Dai and Yiming Feng and Xiaowei Liu and Jinjiang Li},
  title = {{A Sparse Cross Attention-Based Graph Convolution Network With Auxiliary Information Awareness for Traffic Flow Prediction}},
  journal = {IEEE Trans. Intell. Transp. Syst.},
  year = {2023},
}
Figure