SpatioTemporalEmbedding
The spatio-temporal embedding of GMAN: one vector per road-network vertex and time step for traffic prediction.
Graphs and geometry · 219 operations Checked
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
- Task
- Graphs and geometry
- Parameters
- 31.9K
- Operations
- 219
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2020
- Cited by
- 1,808 (as of 20 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 file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m2877
- Graph hash
- 02ce5d94daffa609dcabb9d5d2844d44515b6df0aa67174328b0767c4ecc7217
- Skeleton hash
- 17a6916c0364a314bfee37f09ef75b573e833fb8d01343a977998a552ef4f465
- Architecture hash
- 66b083bd763132bcce567885d74888652c25a56f80d186ddcf5ec69f94809d45
- Diagram SHA-256
- e2cae6be4bdac1f5bd536b014a2606714342aaa809ced9f980e54316e33a50f3
- 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
This model is the spatio-temporal embedding (STE) of GMAN, the part that brings graph structure and time information into the network's attention mechanisms. GMAN is a graph multi-attention network that predicts traffic conditions for time steps ahead at different locations on a road network graph.
The spatial half starts from vertex representations learned with the node2vec approach. Those vectors are fed into a two-layer fully-connected network so that they are co-trained with the whole model. The temporal half encodes the day-of-week and time-of-day of each time step with one-hot coding. A second two-layer fully-connected network transforms that time feature into a vector. The two halves are then fused into the spatio-temporal embedding, which gives time-variant vertex representations.
The paper's reason for the temporal half is that the spatial embedding only provides static representations, which cannot represent the dynamic correlations among traffic sensors. In the full network the embedding is used in the spatial, temporal and transform attention mechanisms.
Key idea. GMAN's spatio-temporal embedding fuses a spatial embedding of road-network vertices with a temporal embedding of each time step, giving the attention mechanisms graph structure and time information.
- gman
- graph multi-attention network
- spatio-temporal embedding
- ste
- SpatioTemporalEmbedding
- traffic prediction
- traffic forecasting
- spatial embedding
- temporal embedding
- 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},
}