All models

I2-GNN

A subgraph graph neural network that labels a root node and its neighbors to count cycles.

Graphs and geometry · 80 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 (55 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
194.1K
Operations
80
Framework
PyTorch
Recurrent
No
Published
ICLR 2023
Cited by
3 (as of 24 October 2026)
Authors
Yinan Huang, Xingang Peng, Jianzhu Ma, Muhan Zhang
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
m17443
Graph hash
04d00d85e04f5fad847bd56aff5ff918fbdb2444b68c18a80859dad1e346ced3
Skeleton hash
95f19355b758e9515cf5a72eaaaaf2fc5f5c53f3e2ed7c4d63ee39149763f474
Architecture hash
0a9faf27dd88d969c0ffb65500e697d416f2ac4ac1de22c1c637522ad423ead5
Diagram SHA-256
663be0e4948ce07964b0145f1e437338f82e9acd2b042be3bc06044c333f362a
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

I2-GNN is a graph neural network that is proven able to count cycles of length 3 to 6, which covers substructures such as the benzene rings of organic chemistry, while keeping linear complexity. It starts from Subgraph MPNNs, a class of models that extract rooted subgraphs for each node, assign the root node a unique identifier and encode the root node's representation within its rooted subgraph. The paper proves that Subgraph MPNNs fail to count more-than-4-cycles at node level.

I2-GNN adds a second identifier: besides the unique identifier of the root node, another unique identifier is assigned to one of the root's neighbors, called the branching node. The branching node iterates over all neighbors of the root node. The paper notes that, compared to Subgraph MPNNs, this increases the complexity only by a factor of node degree.

The discriminative power of I2-GNNs is shown to be strictly stronger than Subgraph MPNNs and partially stronger than the 3-WL test. The authors describe it as, to the best of their knowledge, the first linear-time GNN model that can count 6-cycles with theoretical guarantees. On the ZINC molecular benchmark, the paper reports 25% and 18% performance gains over Nested GIN on ZINC-12k and ZINC-250k respectively.

Key idea. I2-GNNs extend Subgraph MPNNs by assigning different identifiers to the root node and its neighbors in each subgraph, which lets them provably count cycles of length up to six.

  • I2-GNN
  • I2GNN
  • I$^2$-GNN
  • subgraph GNN
  • cycle counting
  • substructure counting
  • graph neural network
  • expressive power
  • molecular property prediction

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

Cite the paper

@misc{huang2023boostingcyclecountingpower,
      title={Boosting the Cycle Counting Power of Graph Neural Networks with I$^2$-GNNs}, 
      author={Yinan Huang and Xingang Peng and Jianzhu Ma and Muhan Zhang},
      year={2023},
      eprint={2210.13978},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2210.13978}, 
}