All models

TGT-GMAN

Encoder-decoder of spatio-temporal attention blocks that forecasts traffic on a road network graph.

Time series · 1,127 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 (38 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

Family
GMAN
Parameters
513.8K
Operations
1,127
Framework
PyTorch
Recurrent
No
Published
AAAI 2020
Cited by
1,807 (as of 19 October 2026)
Authors
Chuanpan Zheng, Xiaoliang Fan, Cheng Wang, Jianzhong Qi
License
MIT
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
m3010
Graph hash
7217bcafd5178afd713c033da51ad5a9db822d00fa24ad32e87037d623301191
Skeleton hash
f68e41ba7382f8ff9ac6e2a54276b06b611332fe7ee785ae3c9fdb8965083ba2
Architecture hash
ebdea3680ac6e01176c5a28b92b25ad33a8851dfad4cf940ee2fecfc79755e29
Diagram SHA-256
09f25fa820bbf4aeffbfae161295a77c86d93cfe84e8d5943007f67bf9fcadb6
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

The PyTorch Geometric Temporal GMAN with three ST-Attention blocks in both encoder and decoder, forecasting 12 steps from a 12-step history over 207 sensors.

About this model's family

GMAN, the Graph Multi-Attention Network, is a traffic forecasting model that predicts traffic conditions several time steps ahead at every location on a road network graph. The paper frames long-term traffic prediction as hard because traffic systems are complex and many impacting factors keep changing.

GMAN uses an encoder-decoder design in which both halves are stacks of spatio-temporal attention blocks. Each block pairs a spatial attention over the sensors in the road network with a temporal attention over time steps, and a gated fusion adaptively fuses the two. Graph structure and clock time enter through a spatio-temporal embedding that feeds the spatial, temporal and transform attention. The spatial half of that embedding comes from node2vec vectors learned on the road graph. Between encoder and decoder, a transform attention layer converts the encoded history directly into representations of the future time steps, which the paper says eases error propagation across prediction steps.

For large sensor counts the paper also proposes a group spatial attention, with intra-group and inter-group attention, to avoid scoring every pair of vertices. On two real-world tasks, traffic volume and traffic speed prediction, the paper reports up to a 4% improvement in MAE over earlier methods for 1 hour ahead prediction. Those tasks use the Xiamen dataset with 95 traffic sensors and the PeMS dataset with 325 traffic sensors in the Bay Area.

Key idea. GMAN stacks spatial and temporal attention with gated fusion in an encoder-decoder, and adds a transform attention layer linking historical to future time steps.

  • gman
  • graph multi-attention network
  • traffic prediction
  • traffic forecasting
  • spatio-temporal attention
  • transform attention
  • gated fusion
  • tgt-gman
  • pytorch geometric temporal
  • road network

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

Cite the paper

@misc{zheng2019gmangraphmultiattentionnetwork,
      title={GMAN: A Graph Multi-Attention Network for Traffic Prediction}, 
      author={Chuanpan Zheng and Xiaoliang Fan and Cheng Wang and Jianzhong Qi},
      year={2019},
      eprint={1911.08415},
      archivePrefix={arXiv},
      primaryClass={eess.SP},
      url={https://arxiv.org/abs/1911.08415}, 
}