STGAtt: A Spatial-Temporal Unified Graph Attention Network for Traffic Flow Forecasting

Zhuding Liang, Jianxun Cui, Qingshuang Zeng, Feng Liu, Nenad Filipovic +1 more
8/21/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Accurate and timely traffic flow forecasting is crucial for intelligent transportation systems. This paper presents a novel deep learning model, the Spatial-Temporal Unified Graph Attention Network (STGAtt). By leveraging a unified graph representation and an attention mechanism, STGAtt effectively captures complex spatial-temporal dependencies. Unlike methods relying on separate spatial and temporal dependency modeling modules, STGAtt directly models correlations within a Spatial-Temporal Unified Graph, dynamically weighing connections across both dimensions. To further enhance its capabilities, STGAtt partitions traffic flow observation signal into neighborhood subsets and employs a novel exchanging mechanism, enabling effective capture of both short-range and long-range correlations. Extensive experiments on the PEMS-BAY and SHMetro datasets demonstrate STGAtt's superior performance compared to state-of-the-art baselines across various prediction horizons. Visualization of attention weights confirms STGAtt's ability to adapt to dynamic traffic patterns and capture long-range dependencies, highlighting its potential for real-world traffic flow forecasting applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liang2025stgatt,
  title  = {STGAtt: A Spatial-Temporal Unified Graph Attention Network for Traffic Flow Forecasting},
  author = {Zhuding Liang and Jianxun Cui and Qingshuang Zeng and Feng Liu and Nenad Filipovic and Tijana Geroski},
  year   = {2025},
  eprint = {2508.16685},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.16685v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.16685.svg)](https://codeofpaper.com/paper/2508.16685)

Discussion