All models

ST-STGODE

A traffic flow forecaster that places a tensor-based graph ODE solver between temporal dilated convolutions.

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

Parameters
714.5K
Operations
949
Framework
PyTorch
Recurrent
No
Published
KDD 2021
Cited by
685 (as of 23 October 2026)
Authors
Zheng Fang, Qingqing Long, Guojie Song, Kunqing Xie
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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m2721
Graph hash
df8a488b4bcb0ec033fa2fe68e77a581ce38ff35d50e2ee3420b3a96518d3c6a
Skeleton hash
5eac6e707184b5fceee34ade930e57364386b02d2171fa3a5f9ace8ee6a69210
Architecture hash
20e8ccfe12ca39f834bf63c0d07081f5da988f5a524c9df7a10bdf489505b14d
Diagram SHA-256
7b23e6031dcc76e0ab89e0f7e219f3f44c4c613d6363d797c9f58319208b80b4
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

STGODE is a traffic flow forecasting model that captures spatial-temporal dynamics with a tensor-based ordinary differential equation (ODE) inside a graph neural network (GNN). The problem it targets is depth: ordinary GNNs suffer from over-smoothing, where all node representations converge to the same value as layers are added. That keeps such networks shallow and leaves long-range dependencies between nodes largely ignored.

The paper starts from a residual update on a spatial-temporal tensor and shows that this discrete update is a discretization of an ODE. Because the tensor is the input, spatial and temporal information are handled simultaneously. The model uses two adjacency matrices, a spatial one based on connectivity and a semantic one based on the similarity of traffic flow. The semantic matrix comes from the Dynamic Time Warping (DTW) algorithm, which measures the similarity of two time series. Each STGODE block places the ODE solver between two temporal dilated convolution (TCN) blocks. The whole network is two STGODE layers, a max-pooling layer and an output layer.

The paper evaluates on six traffic datasets collected by the Caltrans Performance Measurement System (PeMS). It reports the best performance among its baselines on all metrics for all datasets. Training uses the Huber loss, chosen because it is less sensitive to outliers than squared error.

Key idea. STGODE recasts residual graph convolution on a spatial-temporal tensor as an ordinary differential equation, allowing deeper networks that capture longer-range spatial-temporal correlations in traffic flow.

  • stgode
  • st-stgode
  • spatial-temporal graph ode
  • graph ode
  • traffic flow forecasting
  • traffic forecasting
  • neural ode
  • spatial-temporal forecasting
  • continuous gnn

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

Cite the paper

@misc{fang2021spatialtemporalgraphodenetworks,
      title={Spatial-Temporal Graph ODE Networks for Traffic Flow Forecasting}, 
      author={Zheng Fang and Qingqing Long and Guojie Song and Kunqing Xie},
      year={2021},
      eprint={2106.12931},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1145/3447548.3467430},
      url={https://arxiv.org/abs/2106.12931}, 
}