[Paper Review] Adaptive Graph Spatial-Temporal Transformer Network for Traffic Flow Forecasting
This paper proposes an Adaptive Graph Spatial-Temporal Transformer Network (ASTTN) that models cross-spatial-temporal correlations directly using local multi-head self-attention on a learnable adaptive graph, achieving state-of-the-art performance on traffic forecasting benchmarks, especially in long-term prediction tasks.
Traffic flow forecasting on graphs has real-world applications in many fields, such as transportation system and computer networks. Traffic forecasting can be highly challenging due to complex spatial-temporal correlations and non-linear traffic patterns. Existing works mostly model such spatial-temporal dependencies by considering spatial correlations and temporal correlations separately and fail to model the direct spatial-temporal correlations. Inspired by the recent success of transformers in the graph domain, in this paper, we propose to directly model the cross-spatial-temporal correlations on the spatial-temporal graph using local multi-head self-attentions. To reduce the time complexity, we set the attention receptive field to the spatially neighboring nodes, and we also introduce an adaptive graph to capture the hidden spatial-temporal dependencies. Based on these attention mechanisms, we propose a novel Adaptive Graph Spatial-Temporal Transformer Network (ASTTN), which stacks multiple spatial-temporal attention layers to apply self-attention on the input graph, followed by linear layers for predictions. Experimental results on public traffic network datasets, METR-LA PEMS-BAY, PeMSD4, and PeMSD7, demonstrate the superior performance of our model.
Motivation & Objective
- Address the limitation of existing models that decompose spatial and temporal dependencies separately, missing direct cross-spatial-temporal correlations.
- Overcome the reliance on static geographical adjacency matrices that may not reflect true traffic dependencies.
- Model dynamically changing spatial correlations across time steps, particularly during rush hours with bidirectional traffic patterns.
- Improve long-term traffic forecasting by capturing complex, time-varying interactions between nodes in a spatial-temporal graph.
- Develop a scalable attention mechanism that maintains performance while reducing computational complexity.
Proposed method
- Propose a novel spatial-temporal self-attention mechanism using local multi-head self-attention (local MSA) to model cross-spatial-temporal dependencies efficiently.
- Introduce an adaptive graph learning module that dynamically learns node correlations from data, replacing fixed geographical adjacency matrices.
- Design a gated fusion mechanism to combine spatial and temporal attention features effectively within each transformer block.
- Apply a mask-based sparsification to the adaptive adjacency matrix to focus on high-correlation node pairs and reduce computation.
- Stack multiple spatial-temporal attention layers with residual connections to capture hierarchical dependencies across time and space.
- Use node embeddings that encode both spatial and temporal positions to enhance the model's ability to attend to relevant historical and spatial contexts.
Experimental results
Research questions
- RQ1Can direct modeling of cross-spatial-temporal correlations via self-attention improve traffic forecasting accuracy compared to separate spatial and temporal modeling?
- RQ2How effective is an adaptive graph in capturing true, data-driven node dependencies compared to fixed geographical adjacency matrices?
- RQ3Does the combination of local multi-head self-attention and adaptive graph learning lead to better performance, especially in long-term forecasting?
- RQ4How do different attention mechanisms (full, factorized, local, adaptive) compare in terms of accuracy, training stability, and inference speed?
- RQ5To what extent does the model's performance depend on the adaptive adjacency matrix’s ability to reveal non-geographical but meaningful traffic correlations?
Key findings
- ASTTN achieves state-of-the-art performance on METR-LA, PEMS-BAY, PeMSD4, and PeMSD7, with a 1.32 MAE at 15-minute horizon and 1.72 MAE at 120-minute horizon on PEMS-BAY.
- The model outperforms DCRNN, STGCN, Graph WaveNet, and GMAN, particularly in long-term forecasting (e.g., 120-minute horizon), where gains are most pronounced.
- Ablation studies show that removing the adaptive local-MSA module (ASTTN-NA) leads to a 1.45 MAE at 15 minutes on PEMS-BAY, confirming its critical role in performance.
- The adaptive adjacency matrix reveals non-geographical correlations not present in the original graph, such as long-range traffic propagation effects, validating its ability to capture true dependencies.
- Factorized and full attention mechanisms underperform due to overfitting and high computational cost, while adaptive local MSA achieves the best trade-off between accuracy and efficiency.
- The model’s performance is most sensitive to the adaptive graph and gated fusion components, with ASTTN-NE (no embedding) and ASTTN-NF (no fusion) showing significant performance drops.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.