All models

AGCRN

AGCRN, a graph GRU cell that learns per-node parameters and the traffic graph itself from data.

Graphs and geometry · 39 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 (46 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
AGCRN
Parameters
247.3K
Operations
39
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2020
Cited by
1,013 (as of 19 October 2026)
Authors
Lei Bai, Lina Yao, Can Li and others
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
m24
Graph hash
cecb63be10677216cb593b8adfe12ecb648a3c38e6fe544fe950ccc8b21b779e
Skeleton hash
4041f0b076d7a80d09d4234c73d3f639cc1340a995005471bf23edc87eb36a2e
Architecture hash
71efc48f208c60f58befe450d0fd4fd4b6935fd74bafe420ecd5a5b976c14905
Diagram SHA-256
2d9916cd47374bc146326c6420ae183dbbad8ccff25cc019b4410c3876c6e2d8
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

About this model's family

AGCRN, the Adaptive Graph Convolutional Recurrent Network, is a recurrent cell for forecasting correlated time series, such as traffic sensors, that learns the graph between them instead of being handed one. The paper argues that learning node-specific patterns is essential for traffic forecasting while the pre-defined graph is avoidable. Two modules make this possible: Node Adaptive Parameter Learning (NAPL), which captures node-specific patterns, and Data Adaptive Graph Generation (DAGG), which infers the inter-dependencies among different traffic series automatically.

NAPL factorizes the weights of a graph convolution into a node embedding matrix and a shared weight pool, so each node draws its own parameters from candidate patterns discovered from all traffic series. DAGG infers the spatial dependencies between each pair of nodes by multiplying a learnable node embedding matrix with its transpose, then normalizing with ReLU and softmax. The AGCRN cell is a GRU whose MLP layers are replaced by NAPL-GCN. An ablation found that removing the identity matrix from the generated graph significantly harms prediction.

The cell on this page is the PyTorch Geometric Temporal implementation, listed among its recurrent graph convolutions. On the PeMSD4 and PeMSD8 traffic datasets the paper reports more than 5% relative improvement over the best existing results in MAE and MAPE. The cost is size: with an embedding dimension of 10, AGCRN has five times more parameters than DCRNN.

Key idea. AGCRN learns node-specific graph convolution parameters and the graph itself from data, so traffic forecasting needs no pre-defined adjacency matrix.

  • agcrn
  • adaptive graph convolutional recurrent network
  • traffic forecasting
  • adaptive graph
  • node adaptive parameter learning
  • data adaptive graph generation
  • spatio-temporal graph
  • pytorch geometric temporal
  • learned adjacency

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

Cite the paper

@misc{bai2020adaptivegraphconvolutionalrecurrent,
      title={Adaptive Graph Convolutional Recurrent Network for Traffic Forecasting}, 
      author={Lei Bai and Lina Yao and Can Li and Xianzhi Wang and Can Wang},
      year={2020},
      eprint={2007.02842},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2007.02842}, 
}