All models

GRAN

An autoregressive graph generator that adds a block of nodes and edges per step using a GNN with attention.

Graphs and geometry · 263 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 (164 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
1.5M
Operations
263
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2019
Cited by
182 (as of 28 October 2026)
Authors
Renjie Liao, Yujia Li, Yang Song 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
m16954
Graph hash
5367e0898280b47dea60014ac34507c7b76a44589b5389dc4c6c2304a51dd62e
Skeleton hash
9a1c40fc3b01d0b0e8707d930254dd49a3e5c34f07614546646a1e103142a4e9
Architecture hash
c1eeec1cb4ad4e5f77c58104a1f17b8abda0de02fbfde68188875b598b9f1cb7
Diagram SHA-256
8a098a230fee2e7f65c130e77cfe0f54f3653eb3333602e652f65bfa4f01b6a6
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

GRAN (Graph Recurrent Attention Network) is a generative model of graphs that builds a graph step by step, adding one block of nodes and their edges at a time. Generation takes O(N) autoregressive decision steps for a graph of N nodes. The block size and the sampling stride let a user trade sample quality for efficiency.

At each step a graph neural network with attention relates the part of the graph already generated to the part about to be generated. The authors say this reduces dependence on node ordering and avoids the long-term bottleneck of sequential RNNs. The edges of a block are drawn from a mixture of Bernoulli distributions, which captures correlations among the edges generated together. Node orderings are handled by marginalizing over a family of canonical orderings, such as DFS, BFS or k-core.

Experiments in the paper use one synthetic dataset of random grid graphs and two real-world datasets of proteins and 3D point clouds. For those experiments the authors stack 7 GNN layers and use 20 Bernoulli mixture components, with block size and stride both set to 1. On grid graphs they report that the best-performing model with stride 1 is about 6 times as fast as GraphRNN. The point-cloud graphs have a maximum size of over 5k nodes.

Key idea. GRAN generates graphs one block of nodes and edges at a time, conditioning each step on the existing graph through an attention-based GNN and a mixture-of-Bernoulli output.

  • GRAN
  • Graph Recurrent Attention Networks
  • graph generation
  • graph generative model
  • autoregressive graph model
  • mixture of Bernoulli
  • large graph generation
  • grid graphs
  • protein graphs

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

Cite the paper

@misc{liao2020efficientgraphgenerationgraph,
      title={Efficient Graph Generation with Graph Recurrent Attention Networks}, 
      author={Renjie Liao and Yujia Li and Yang Song and Shenlong Wang and Charlie Nash and William L. Hamilton and David Duvenaud and Raquel Urtasun and Richard S. Zemel},
      year={2020},
      eprint={1910.00760},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1910.00760}, 
}