STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecasting
Not on the map. Why?
Abstract (arXiv)
Traffic forecasting is a cornerstone of smart city management, enabling efficient resource allocation and transportation planning. Deep learning, with its ability to capture complex nonlinear patterns in spatiotemporal (ST) data, has emerged as a powerful tool for traffic forecasting. While graph neural networks (GCNs) and transformer-based models have shown promise, their computational demands often hinder their application to real-world road networks, particularly those with large-scale spatiotemporal interactions. To address these challenges, we propose a novel spatiotemporal graph transformer (STGformer) architecture. STGformer effectively balances the strengths of GCNs and Transformers, enabling efficient modeling of both global and local traffic patterns while maintaining a manageable computational footprint. Unlike traditional approaches that require multiple attention layers, STG attention block captures high-order spatiotemporal interactions in a single layer, significantly reducing computational cost. In particular, STGformer achieves a 100x speedup and a 99.8% reduction in GPU memory usage compared to STAEformer during batch inference on a California road graph with 8,600 sensors. We evaluate STGformer on the LargeST benchmark and demonstrate its superiority over state-of-the-art Transformer-based methods such as PDFormer and STAEformer, which underline STGformer's potential to revolutionize traffic forecasting by overcoming the computational and memory limitations of existing approaches, making it a promising foundation for future spatiotemporal modeling tasks.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 39 of its 64 references that are in the map. First posted on arXiv 1 Oct 2024.
Builds on
39 of 64 references.
References · 39
- 2017Attention Is All You Needcited by 59,932
- 2017Graph Attention Networkscited by 8,854
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Simplifying Graph Convolutional Networkscited by 1,470
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2018Spatial Temporal Graph Convolutional Networks for Skeleton-Based Action Recognitioncited by 1,199
- 2017Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecastingcited by 1,125
- 2019Graph WaveNet for Deep Spatial-Temporal Graph Modelingcited by 820
- 2021How Attentive are Graph Attention Networks?cited by 818
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
27 more
- 2020A Generalization of Transformer Networks to Graphscited by 653
- 2020Adaptive Graph Convolutional Recurrent Network for Traffic Forecastingcited by 525
- 2019Graph Transformer Networkscited by 520
- 2021Anomaly Transformer: Time Series Anomaly Detection with Association Discrepancycited by 387
- 2021Spectral Temporal Graph Neural Network for Multivariate Time-series Forecastingcited by 298
- 2015Structural-RNN: Deep Learning on Spatio-Temporal Graphscited by 234
- 2021Spatial-Temporal Graph ODE Networks for Traffic Flow Forecastingcited by 209
- 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 207
- 2020Spatial-Temporal Transformer Networks for Traffic Flow Forecastingcited by 179
- 2021Discrete Graph Structure Learning for Forecasting Multiple Time Seriescited by 169
- 2021Dynamic Graph Convolutional Recurrent Network for Traffic Prediction: Benchmark and Solutioncited by 156
- 2022Spatial-Temporal Identity: A Simple yet Effective Baseline for Multivariate Time Series Forecastingcited by 149
- 2022NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphscited by 137
- 2023PDFormer: Propagation Delay-Aware Dynamic Long-Range Transformer for Traffic Flow Predictioncited by 135
- 2021Graph Neural Controlled Differential Equations for Traffic Forecastingcited by 133
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 131
- 2022Decoupled Dynamic Spatial-Temporal Graph Neural Network for Traffic Forecastingcited by 122
- 2023LargeST: A Benchmark Dataset for Large-Scale Traffic Forecastingcited by 116
- 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
- 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
- 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 85
- 2023Attending to Graph Transformerscited by 81
- 2021DL-Traff: Survey and Benchmark of Deep Learning Models for Urban Traffic Predictioncited by 73
- 2021Anomaly Detection in Dynamic Graphs via Transformercited by 57
- 2021When Do Contrastive Learning Signals Help Spatio-Temporal Graph Forecasting?cited by 36
- 2022Transformers from an Optimization Perspectivecited by 27
- 2023Do We Really Need Graph Neural Networks for Traffic Forecasting?cited by 20
Built on by
Citing papers per year: 2025: 4; 2026: 5.
9 papers.
- 2025A Gravity-informed Spatiotemporal Transformer for Human Activity Intensity Predictioncited by 2
- 2026K-STEMIT: Knowledge-Informed Spatio-Temporal Efficient Multi-Branch Graph Neural Network for Subsurface Stratigraphy Thickness Estimation from Radar Datacited by 2
- 2025Enhancing Spatiotemporal Networks with xLSTM: A Scalar LSTM Approach for Cellular Traffic Forecastingcited by 0
- 2025Scale-Disentangled spatiotemporal Modeling for Long-term Traffic Emission Forecastingcited by 0
- 2025Bridging the Divide: End-to-End Sequence-Graph Learningcited by 0
- 2026UniST-Pred: A Robust Unified Framework for Spatio-Temporal Traffic Forecasting in Transportation Networks Under Disruptionscited by 0
- 2026Efficient Traffic Prediction at Scale: A Systematic Study of STGCN Architectural Depthcited by 0
- 2026STAGformer: A Spatio-temporal Agent Graph Transformer for Micro Mobility Demand Forecastingcited by 0
- 2026EMAGN: Efficient Multi-Attention Graph Network via Learned Clustering for Scalable Traffic Forecastingcited by 0
- 2026EMAGN: Efficient Multi-Attention Graph Network via Learned Clustering for Scalable Traffic Forecasting14 Jul 2026
- 2026STAGformer: A Spatio-temporal Agent Graph Transformer for Micro Mobility Demand Forecasting7 Jul 2026
- 2026Efficient Traffic Prediction at Scale: A Systematic Study of STGCN Architectural Depth8 Jun 2026
- 2026K-STEMIT: Knowledge-Informed Spatio-Temporal Efficient Multi-Branch Graph Neural Network for Subsurface Stratigraphy Thickness Estimation from Radar Data10 Apr 2026
- 2026UniST-Pred: A Robust Unified Framework for Spatio-Temporal Traffic Forecasting in Transportation Networks Under Disruptions15 Feb 2026
- 2025Bridging the Divide: End-to-End Sequence-Graph Learning29 Oct 2025
- 2025Scale-Disentangled spatiotemporal Modeling for Long-term Traffic Emission Forecasting16 Aug 2025
- 2025Enhancing Spatiotemporal Networks with xLSTM: A Scalar LSTM Approach for Cellular Traffic Forecasting17 Jul 2025
- 2025A Gravity-informed Spatiotemporal Transformer for Human Activity Intensity Prediction16 Jun 2025