DCRNN
The diffusion-convolutional GRU cell from DCRNN, which treats road traffic as diffusion on a directed sensor graph.
Graphs and geometry · 376 operations Checked
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
- Task
- Graphs and geometry
- Parameters
- 76.2K
- Operations
- 376
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- 2017
- Cited by
- 5,865 (as of 29 November 2026)
- Authors
- Yaguang Li, Rose Yu, Cyrus Shahabi, Yan Liu
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m483
- Graph hash
- 22cd7617f8f7e879b6c469375c2879c153e2037f81c501f58e00327c83b970f2
- Skeleton hash
- 7605a00d9c14cd1c1324cf1ee1a08a0d3ade421ad05e9b7b1217456504062570
- Architecture hash
- af1b9d7ede63ac3888a84cd9dd4a9081663a7570cb4448069feb0a2cd3cd7ef2
- Diagram SHA-256
- fe2e28e655849c11fbec5ba60a3dd6745b9d31ff49b401daa2c255307bfcae88
- 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
DCRNN is a traffic forecasting model that treats the flow of traffic across a road network as a diffusion process on a directed graph of sensors. Spatial dependency is modeled with bidirectional random walks on that graph. The temporal part is a gated recurrent unit whose matrix multiplications are replaced by diffusion convolution, giving the Diffusion Convolutional Gated Recurrent Unit, or DCGRU. The full paper model stacks these cells into an encoder and a decoder that together forecast several steps ahead.
What is built on this page is the recurrent cell itself, as implemented in PyTorch Geometric Temporal, which lists DCRNN among its recurrent graph convolutions. The single-step cell here is sized to METR-LA, for which the paper selected 207 sensors from Los Angeles County highways. One batched version is sized to PEMS-BAY, the paper's second dataset with 325 sensors in the Bay Area.
The paper reports consistent improvements of 12% to 15% over the strongest prior baselines on both datasets. DCRNN achieved the best results on all three metrics at every horizon, and its advantage grew as the forecasting horizon increased. An ablation that swapped the directed diffusion for an undirected ChebNet convolution did worse, which the authors read as evidence that the directed graph captures asymmetric correlations between sensors. The paper sets K, the maximum number of random-walk steps in the diffusion convolution, to 3, which is also the K used by the cells on this page.
Key idea. DCRNN models traffic as a diffusion process on a directed sensor graph and embeds that diffusion convolution inside a GRU encoder-decoder for forecasting.
- dcrnn
- dcgru
- diffusion convolution
- traffic forecasting
- spatiotemporal graph
- graph recurrent network
- metr-la
- pems-bay
- 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{li2018diffusionconvolutionalrecurrentneural,
title={Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting},
author={Yaguang Li and Rose Yu and Cyrus Shahabi and Yan Liu},
year={2018},
eprint={1707.01926},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1707.01926},
}