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

Spatial-Temporal Adaptive Graph Convolution with Attention Network for Traffic Forecasting

Weikang Chen, Yawen Li, Zhe Xue, Ang Li, Guobin WuarXiv 2022 · DOI

TL;DR

This paper introduces STAAN, a novel deep learning model for traffic forecasting that addresses limitations in existing graph-based methods. STAAN uses an adaptive graph structure and a novel "PW-attention" mechanism to better capture complex spatial-temporal dependencies in road networks, leading to improved prediction accuracy.

What Problem Does This Paper Address?

Accurate traffic forecasting is crucial for intelligent transportation systems. Traditional approaches often rely on fixed graph structures (like road network distance) to model spatial relationships between traffic sensors (nodes). However, these static relationships fail to capture dynamic traffic patterns that change with time of day, weather, or events. Furthermore, standard graph convolutional networks struggle to aggregate information from distant nodes, limiting their ability to understand long-range traffic impacts. This paper aims to overcome these limitations by developing a more flexible and comprehensive spatial-temporal modeling approach.

Methods

The core of STAAN lies in its two main innovations within its spatial-temporal blocks:

  • Adaptive Dependency Matrix: Instead of using a pre-defined adjacency matrix based on static road distances, STAAN learns an adaptive matrix during training. This allows the model to dynamically infer inter-dependencies between traffic sensors, reflecting real-world traffic flow changes. This is achieved by using a trainable embedding of nodes and their dot product.
  • PW-Attention Mechanism: To address the limitation of aggregating only local information, STAAN incorporates a "PW-attention" mechanism. This mechanism, inspired by graph attention networks, is designed to capture global dependencies by learning similarities between all nodes in the graph, not just immediate neighbors. This helps in understanding how events on one part of the road network can influence distant areas.

For temporal modeling, STAAN uses stacked dilated causal convolutions. This CNN-based approach is chosen for its efficiency in capturing long-range temporal dependencies without the vanishing/exploding gradient issues common in RNNs.

Datasets

The paper evaluates STAAN on two widely used real-world traffic speed datasets:

  • METR-LA: Traffic speed data from 207 loop detectors on the Los Angeles highway, collected over 4 months in 2012.
  • PEMS-BAY: Traffic speed data from 325 sensors in the Bay Area, collected over 6 months in 2017.

These datasets are split into training, validation, and testing sets, with experiments conducted using 15, 30, and 60-minute prediction horizons.

Key Insights and Ideas

  • Dynamic Road Networks: The realization that road network relationships are not static but change dynamically is a key driver for the adaptive matrix. This moves beyond simple Euclidean distance to a more nuanced understanding of traffic flow.
  • Global Context Matters: The PW-attention mechanism highlights the importance of considering global traffic patterns, not just local congestion, for accurate long-term forecasting. An accident or bottleneck can have ripple effects far beyond its immediate vicinity.
  • CNNs for Temporal Efficiency: The choice of dilated causal convolutions for temporal modeling demonstrates a practical approach to capturing long sequences efficiently, outperforming traditional RNNs in this context.
  • Synergy of GCN and Attention: Combining the local feature extraction power of GCN with the global relationship modeling of attention (PW-attention) creates a more robust spatial representation.

Key Results

STAAN consistently outperforms several state-of-the-art baseline models, including ARIMA, FC-LSTM, DCRNN, STGCN, GWN, APTN, ST-GRAT, and SLCNN, across both METR-LA and PEMS-BAY datasets for MAE, MAPE, and RMSE metrics. The paper notes that STAAN achieves a small improvement over SLCNN and GWN, attributing this to its enhanced ability to detect spatial properties via PW-attention for global information.

Limitations and Future Work

The authors acknowledge that their model achieves a small improvement over some recent baselines, suggesting that further exploration into more complex heterogeneous datasets and novel graph convolutional neural network architectures could yield even better results. Future work could focus on scaling STAAN to larger and more diverse datasets, potentially incorporating additional contextual information (e.g., weather, events) to further enhance its predictive capabilities.

Summary updated

BibTeX
@misc{chen2022spatial,
  author = {Weikang Chen and Yawen Li and Zhe Xue and Ang Li and Guobin Wu},
  title = {{Spatial-Temporal Adaptive Graph Convolution with Attention Network for Traffic Forecasting}},
  year = {2022},
  eprint = {2206.03128},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.03128},
}
Figure