mlsanityData to 7 Oct 2026

STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecasting

arXiv 2410.00385 ↗First posted 1 Oct 2024cs.LG cs.AI cs.DBcited by 9

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2017Graph Attention Networkscited by 8,854
  3. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
  4. 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
  5. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  6. 2019Simplifying Graph Convolutional Networkscited by 1,470
  7. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  8. 2018Spatial Temporal Graph Convolutional Networks for Skeleton-Based Action Recognitioncited by 1,199
  9. 2017Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecastingcited by 1,125
  10. 2019Graph WaveNet for Deep Spatial-Temporal Graph Modelingcited by 820
  11. 2021How Attentive are Graph Attention Networks?cited by 818
  12. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
27 more
  1. 2020A Generalization of Transformer Networks to Graphscited by 653
  2. 2020Adaptive Graph Convolutional Recurrent Network for Traffic Forecastingcited by 525
  3. 2019Graph Transformer Networkscited by 520
  4. 2021Anomaly Transformer: Time Series Anomaly Detection with Association Discrepancycited by 387
  5. 2021Spectral Temporal Graph Neural Network for Multivariate Time-series Forecastingcited by 298
  6. 2015Structural-RNN: Deep Learning on Spatio-Temporal Graphscited by 234
  7. 2021Spatial-Temporal Graph ODE Networks for Traffic Flow Forecastingcited by 209
  8. 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 207
  9. 2020Spatial-Temporal Transformer Networks for Traffic Flow Forecastingcited by 179
  10. 2021Discrete Graph Structure Learning for Forecasting Multiple Time Seriescited by 169
  11. 2021Dynamic Graph Convolutional Recurrent Network for Traffic Prediction: Benchmark and Solutioncited by 156
  12. 2022Spatial-Temporal Identity: A Simple yet Effective Baseline for Multivariate Time Series Forecastingcited by 149
  13. 2022NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphscited by 137
  14. 2023PDFormer: Propagation Delay-Aware Dynamic Long-Range Transformer for Traffic Flow Predictioncited by 135
  15. 2021Graph Neural Controlled Differential Equations for Traffic Forecastingcited by 133
  16. 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 131
  17. 2022Decoupled Dynamic Spatial-Temporal Graph Neural Network for Traffic Forecastingcited by 122
  18. 2023LargeST: A Benchmark Dataset for Large-Scale Traffic Forecastingcited by 116
  19. 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
  20. 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
  21. 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 85
  22. 2023Attending to Graph Transformerscited by 81
  23. 2021DL-Traff: Survey and Benchmark of Deep Learning Models for Urban Traffic Predictioncited by 73
  24. 2021Anomaly Detection in Dynamic Graphs via Transformercited by 57
  25. 2021When Do Contrastive Learning Signals Help Spatio-Temporal Graph Forecasting?cited by 36
  26. 2022Transformers from an Optimization Perspectivecited by 27
  27. 2023Do We Really Need Graph Neural Networks for Traffic Forecasting?cited by 20

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 5.

9 papers.