All models

STG-Mamba

A selective state space model for forecasting on spatial-temporal graphs, with a Kalman filtering graph network.

Time series · 768 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 (24 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
7.5M
Operations
768
Framework
PyTorch
Recurrent
No
Published
2024
Cited by
108 (as of 30 November 2026)
Authors
Lincan Li, Hanchen Wang, Wenjie Zhang, Adelle Coster
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
m20183
Graph hash
cd460cb0d90fc24cb50cd3a5d46b99b8c7c398411e06b8afa054e91076ea22f3
Skeleton hash
df09d4b60949fe9f8a314b005870943b6d1b91fb6c982b8081905d5064d8680e
Architecture hash
ef8042e642c7be41ba7f5b3b62eb0d03c93339a6a029840a9e77bda5dade1cfa
Diagram SHA-256
d00da702414c1ab7c6738b74106aa1bbabba3203104e6de1898ddf67d677c75b
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

STG-Mamba, short for Spatial-Temporal Graph Mamba, applies selective state space models to learning from spatial-temporal graph (STG) data. Its premise is to treat the graph as a system and to model how the state of that system evolves over time. The paper tests it on forecasting with three real-world datasets: California road network speed records, Hangzhou metro entry and exit records, and weather station records across mainland China.

The network follows a residual encoder design in which one basic module, the Graph Selective State Space Block (GS3B), is repeated N times. Each block contains a Kalman Filter Graph Neural Network (KFGN), made of a DynamicFilter-GNN followed by Kalman Filter Upgrading, and a Spatial-Temporal Selective State Space Module (ST-S3M). KFGN integrates and upgrades the graph embeddings from different temporal granularities with a learnable approach based on Kalman filtering. ST-S3M performs input-dependent, adaptive selection of spatial-temporal graph features.

In the paper's experiments the number of GS3B layers is 4, and data from the past 12 steps are used to forecast the future 12 time steps. On computation, the paper reports 34.03G FLOPs for STG-Mamba against 102.79G for STAEformer at the 180 node setting of the KnowAir dataset.

Key idea. STG-Mamba applies selective state space models to spatial-temporal graph learning, in what the paper calls the first exploration of that approach.

  • STG-Mamba
  • Spatial-Temporal Graph Mamba
  • spatial-temporal graph forecasting
  • selective state space model
  • traffic forecasting
  • Kalman filtering graph neural network
  • KFGN
  • ST-S3M
  • spatio-temporal forecasting

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

Cite the paper

@misc{li2024stgmambaspatialtemporalgraphlearning,
      title={STG-Mamba: Spatial-Temporal Graph Learning via Selective State Space Model}, 
      author={Lincan Li and Hanchen Wang and Wenjie Zhang and Adelle Coster},
      year={2024},
      eprint={2403.12418},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2403.12418}, 
}