All models

TemporalConv

The gated causal temporal convolution layer from STGCN, applied per node along the time axis.

Graphs and geometry · 9 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 (12 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
384
Operations
9
Framework
PyTorch
Recurrent
No
Published
IJCAI 2018
Cited by
5,602 (as of 19 October 2026)
Authors
Bing Yu, Haoteng Yin, Zhanxing Zhu
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
m3079
Graph hash
77e2d58f4ce84a9f885d459251177834b995bda5a9e4e430aa74fae2b121f564
Skeleton hash
a15a7e49ff04f7bfd05d4d09a80dc350417053b59f6c868f56fd41b7ce3c86c0
Architecture hash
756ced04de8a6c424bf7fd4d1327552e15c57f9882f91b9de670cfed8df6b295
Diagram SHA-256
735054fefa1d898dd4f8fe4bb574d3a1bef09b90edb25719150a4593bc494f82
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

TemporalConv is the gated temporal convolution layer of STGCN, the Spatio-Temporal Graph Convolutional Network proposed for traffic forecasting. It is one building block rather than the full forecaster: PyTorch Geometric Temporal lists it among its auxiliary layers, separate from the block that adds the graph convolution. STGCN's design decision was to avoid recurrent units along time entirely and build the model with complete convolutional structures, which enable much faster training speed with fewer parameters.

The layer is a 1-D causal convolution with a width-Kt kernel followed by gated linear units (GLU) as a non-linearity. The kernel produces two halves, P and Q, and a sigmoid gate on Q controls which parts of P pass through. Because there is no padding, each pass shortens the sequence by Kt minus 1 steps, which is why 12 input steps with a kernel of 3 come out as 10. Inside STGCN two of these layers sandwich one spatial graph convolution in each ST-Conv block, with 64, 16 and 64 channels. The temporal design was inspired by the convolutional sequence-to-sequence work of Gehring et al.

The paper credits this convolution-only time axis for a 14 times training speedup over the recurrent GCGRU on PeMSD7(M): 272 seconds against 3,824. It also reports that STGCN has around two thirds of the parameters of GCGRU and over 95% fewer than FC-LSTM.

Key idea. STGCN replaces recurrent units with gated causal convolutions along time, stacked around graph convolutions, to forecast traffic faster with fewer parameters.

  • temporalconv
  • stgcn
  • gated temporal convolution
  • spatio-temporal graph convolutional network
  • traffic forecasting
  • glu
  • causal convolution
  • pytorch geometric temporal
  • st-conv block

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

Cite the paper

@misc{yu2018spatiotemporalgraphconvolutionalnetworks,
      title={Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting}, 
      author={Bing Yu and Haoteng Yin and Zhanxing Zhu},
      year={2018},
      eprint={1709.04875},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.24963/ijcai.2018/505},
      url={https://arxiv.org/abs/1709.04875}, 
}