ST-STAEformer
STAEformer forecasts traffic with plain transformer layers and a learned spatio-temporal adaptive embedding.
Time series · 256 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
- Time series
- Parameters
- 1.3M
- Operations
- 256
- Framework
- PyTorch
- Recurrent
- No
- Published
- CIKM 2023 (short paper)
- Cited by
- 13 (as of 23 October 2026)
- Authors
- Hangchen Liu, Zheng Dong, Renhe Jiang and others
- License
- Apache-2.0
- 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
- m2718
- Graph hash
- ea7c5675de6edef8ec550a1a55d2620d74536ff75307066e0d364bf6e5be5e97
- Skeleton hash
- 33bc3b95252926a7904591b774291cb9e596bbb6d23360e85867398f10ddbe45
- Architecture hash
- 92bdde7cb9b090e7f8e91be82bbd0d60e5c04b4d307b82e485914e34d7975683
- Diagram SHA-256
- 764a03ee46ceb4541e75ee53a3a834a7004e0f5a800a2bd20788313999da1609
- 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
STAEformer is a traffic forecasting model that pairs vanilla transformers with a component the paper calls spatio-temporal adaptive embedding. The paper starts from the observation that advances in network architecture have brought diminishing performance gains, which shifts attention toward how the data itself is represented.
The model consists of an embedding layer, vanilla transformers applied along the temporal axis and along the spatial axis, and a regression layer. The embedding layer fuses a feature embedding, a periodicity embedding and the spatio-temporal adaptive embedding. The adaptive embedding takes the place of a pre-defined or dynamic adjacency matrix for modeling spatial relations.
The paper evaluates on six traffic data sets and reports better performance on most metrics on all six. In a case study on PEMS04 and PEMS08, the model degrades more severely when the raw input is shuffled along the temporal axis than a version using a spatial embedding instead. The paper's settings use 3 layers for both the spatial and temporal transformers and 4 heads.
Key idea. STAEformer adds a learned spatio-temporal adaptive embedding to vanilla transformers, so the model forecasts traffic without any graph modeling.
- STAEformer
- Spatio-Temporal Adaptive Embedding transformer
- spatio-temporal adaptive embedding
- traffic forecasting
- traffic prediction
- vanilla transformer
- METR-LA
- PEMS-BAY
- PEMS04
- PEMS08
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{liu2023staeformerspatiotemporaladaptiveembedding,
title={STAEformer: Spatio-Temporal Adaptive Embedding Makes Vanilla Transformer SOTA for Traffic Forecasting},
author={Hangchen Liu and Zheng Dong and Renhe Jiang and Jiewen Deng and Jinliang Deng and Quanjun Chen and Xuan Song},
year={2023},
eprint={2308.10425},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2308.10425},
}