All models

ASTGNN

An attention based spatial-temporal graph neural network for traffic forecasting.

Time series · 589 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (25 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
471.5K
Operations
589
Framework
PyTorch
Recurrent
No
Published
2021, IEEE Transactions on Knowledge and Data Engineering
Cited by
770 (as of 24 October 2026)
Authors
Shengnan Guo, Youfang Lin, Huaiyu Wan and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14590
Graph hash
67640809f3e1494d8c633cb1d8b5e98abee71ec4e06e2ee9eaf50485445fce31
Skeleton hash
cc41c5011e843004852d30b2f93fddfef53b939fab26bddf1ae3f5580a0bf38f
Architecture hash
d002344c765f745eeb1ed19cfb57591c8b6ad032f36a02603785ba49d63d316b
Diagram SHA-256
4be3433b9cf7a27443dce860fb8cde9708935a4acefeaf9ff09bcee3eb17ff8a
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

ASTGNN, short for Attention based Spatial-Temporal Graph Neural Network, is a model for traffic forecasting. Along the time axis it uses a self-attention mechanism designed to make use of local context, which the authors describe as specialized for transforming numerical sequences. The paper says this lets the model capture the temporal dynamics of traffic data with a global receptive field, which helps long-term forecasts.

Along the spatial axis, a dynamic graph convolution module uses self-attention to capture spatial correlations as they change. Embedding modules model periodicity explicitly and capture spatial heterogeneity. The paper reports experiments on five real-world traffic flow datasets in which ASTGNN outperformed the baselines it was compared with.

Key idea. The paper proposes ASTGNN, an attention based spatial-temporal graph neural network for traffic forecasting.

  • astgnn
  • attention based spatial-temporal graph neural network
  • traffic forecasting
  • traffic prediction
  • traffic flow
  • spatial-temporal graph
  • spatio-temporal forecasting
  • long-term forecast

AI-written summary, based on the paper's abstract and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Guo_2022, title={Learning Dynamics and Heterogeneity of Spatial-Temporal Graph Data for Traffic Forecasting}, volume={34}, ISSN={2326-3865}, url={http://dx.doi.org/10.1109/TKDE.2021.3056502}, DOI={10.1109/tkde.2021.3056502}, number={11}, journal={IEEE Transactions on Knowledge and Data Engineering}, publisher={Institute of Electrical and Electronics Engineers (IEEE)}, author={Guo, Shengnan and Lin, Youfang and Wan, Huaiyu and Li, Xiucheng and Cong, Gao}, year={2022}, month=Nov, pages={5415–5428} }