All models

Ring-GNN

A graph neural network that extends the second-order Invariant Graph Network to tell regular graphs apart.

Graphs and geometry · 134 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 (18 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
212.3K
Operations
134
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2019
Cited by
131 (as of 27 October 2026)
Authors
Zhengdao Chen, Soledad Villar, Lei Chen, Joan Bruna
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
m19864
Graph hash
9d68ceb1c1ef9a7183e0592821821aee5b2b49f48d5261c1e046b718fd46ec77
Skeleton hash
b40b35406850b61ab4e3ba9ffb3d10d56ece2ca451375903980147cc9919591f
Architecture hash
8407ab66b183871d8d99559ec2584175fafec9a591f8bd0d9b699915a978d410
Diagram SHA-256
664522318035792e2b4ace4b2f6a44a80c33b1ae3f678276f1fe699e07588324
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

Ring-GNN is a graph neural network architecture introduced in a paper about what GNNs can and cannot tell apart. That paper connects two views of a GNN's expressive power, approximating permutation-invariant functions on graphs and testing graph isomorphism, and proves that they are equivalent.

Using the language of sigma-algebra, the authors build a framework for comparing different types of GNNs with each other and with other graph isomorphism tests. Within it they prove that the second-order Invariant Graph Network fails to distinguish non-isomorphic regular graphs with the same degree. Ring-GNN extends that network, and the paper reports that it distinguishes these graphs and performs well on real-world datasets.

The released model code is based on a PyTorch extension of the Invariant Graph Networks layers, whose original version is in TensorFlow. The repository states that the paper was accepted by NeurIPS 2019.

Key idea. The paper proves that graph isomorphism testing and approximation of permutation-invariant functions are equivalent measures of GNN expressive power, and introduces Ring-GNN.

  • ring-gnn
  • ring gnn
  • graph isomorphism testing
  • expressive power of gnns
  • invariant graph network
  • graph classification
  • permutation-invariant functions
  • function approximation

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

Cite the paper

@misc{chen2023equivalencegraphisomorphismtesting,
      title={On the equivalence between graph isomorphism testing and function approximation with GNNs}, 
      author={Zhengdao Chen and Soledad Villar and Lei Chen and Joan Bruna},
      year={2023},
      eprint={1905.12560},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1905.12560}, 
}