All models

GMAN

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

Time series · 463 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

Family
GMAN
Parameters
209.9K
Operations
463
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
m1140
Graph hash
84882f379d85cf8387bf4507177f830e106d6e56a23ce19e36f8873098fd6674
Skeleton hash
e50aeb41a5d548fe676a7fbe040a1caa79bf6bc2a6d8c1f4524f50d4fc54fe06
Architecture hash
90d6edda384c04fd89aee618e13102cc377467977535878385121e304e6166fd
Diagram SHA-256
7649d6d69887333362264d77ed1cb3966f16f878ec42d812320e9db849413789
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

A compact version with a single ST-Attention block in both encoder and decoder, forecasting 10 steps over 50 nodes.

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}, 
}