All models

TGCN

T-GCN, a GRU cell whose inputs pass through a graph convolution over the road network first.

Graphs and geometry · 136 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 (28 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
T-GCN
Parameters
6.7K
Operations
136
Framework
PyTorch
Recurrent
No
Published
IEEE Transactions on Intelligent Transportation Systems 2019
Cited by
3,336 (as of 19 October 2026)
Authors
Ling Zhao, Yujiao Song, Chao Zhang 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
m2991
Graph hash
914ec6c85b63daf3292f31f97aca0383bb649e040711759ec9741095bebca38d
Skeleton hash
6f76e59059c1fd69079e6ee2671dd977ba0dfccd227227e512238dd41e16b199
Architecture hash
b46b820439b3bcbe311ec86629b1864f349fc25a5e20db6502cd328afc228dce
Diagram SHA-256
e17649be68296586abd14b68926ad9f14e403e86a987fb044ef0058b339a0f3f
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

T-GCN, the Temporal Graph Convolutional Network, is a recurrent cell for traffic forecasting on a road network that combines a graph convolutional network (GCN) with a gated recurrent unit (GRU). The GCN is used to learn complex topological structures to capture spatial dependence and the gated recurrent unit is used to learn dynamic changes of traffic data to capture temporal dependence. Inside the cell, the graph convolution output replaces the raw input in every GRU gate: the update gate, reset gate and candidate state are each computed from the graph-convolved features concatenated with the previous hidden state.

Roads are the nodes of an unweighted graph whose adjacency matrix contains only elements of 0 and 1, and the traffic speed on each road is the node feature. The authors chose the GRU over the LSTM because it has a relatively simple structure, fewer parameters, and faster training ability. Both forms on this page come from PyTorch Geometric Temporal, which lists T-GCN among its recurrent graph convolutions; TGCN2 is the same cell applied to a batch of graphs.

On the SZ-taxi and Los-loop datasets the paper reports that T-GCN reduces prediction error by approximately 1.5% to 57.8% compared with all baseline methods. The authors also note a weakness: the model predicts poorly at traffic peaks, which they attribute to the smoothing filter of the GCN. For the SZ-taxi dataset the paper found 100 hidden units best, with error rising again for larger sizes.

Key idea. T-GCN feeds graph-convolved road features into a GRU so one cell captures the road network's spatial dependence and traffic's temporal dependence together.

  • t-gcn
  • tgcn
  • tgcn2
  • temporal graph convolutional network
  • traffic forecasting
  • traffic prediction
  • gcn gru
  • road network
  • pytorch geometric temporal

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

Cite the paper

@misc{zhao2018tgcntemporalgraphconvolutionalnetwork,
      title={T-GCN: A Temporal Graph ConvolutionalNetwork for Traffic Prediction}, 
      author={Ling Zhao and Yujiao Song and Chao Zhang and Yu Liu and Pu Wang and Tao Lin and Min Deng and Haifeng Li},
      year={2018},
      eprint={1811.05320},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1109/TITS.2019.2935152},
      url={https://arxiv.org/abs/1811.05320}, 
}