GNN-AK
A wrapper that applies a base GNN to the subgraph around each node to make the network more expressive.
Graphs and geometry · 343 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
- 5.5M
- Operations
- 343
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2022
- Cited by
- 38 (as of 29 October 2026)
- Authors
- Lingxiao Zhao, Wei Jin, Leman Akoglu, Neil Shah
- 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
- m16915
- Graph hash
- dd0fb75d2f80e6ed9fa37e8a086b86178b8c660903f0ba5b98d936535bd66187
- Skeleton hash
- 44040bbf3676781935f4a2eefd39f6fc3dd2a3b12f5b37449f8641602234b2c8
- Architecture hash
- 2c1d1ec7d9c81685b040e8e56d509735e9634152a74566ee791b76dcb1baccd2
- Diagram SHA-256
- 7d87a5edd5077c3cc3b4b9a7bc91adb76b7f59a6feb526406582677b7de569fd
- 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
GNN-AK (GNN As Kernel) is a wrapper that makes an ordinary message passing neural network (MPNN) more expressive. In an MPNN each node aggregates messages from its immediate neighbors, a star-shaped pattern, and the paper notes that the expressiveness of such networks is upper-bounded by the 1st-order Weisfeiler-Leman isomorphism test (1-WL). GNN-AK instead computes each node's representation as the encoding of a surrounding induced subgraph, with a GNN as the subgraph encoder. The name reflects the resemblance to a convolutional neural network whose kernel has been replaced by a GNN.
In each layer, GNN-AK extracts one rooted subgraph per node and convolves all the subgraphs with a base GNN as kernel, which produces multiple subgraph-node embeddings from which each node's encodings are extracted. GNN-AK contains two of those three encodings and is described as the weaker version; GNN-AK+ is the empirically more expressive one. The paper shows that the framework is strictly more powerful than 1&2-WL and not less powerful than 3-WL.
To limit the memory cost of encoding a subgraph for every node, the authors add a sampling strategy, SubgraphDrop, named for dropping subgraphs during training. For its method the paper reports 0.08 MAE on ZINC, and 74.79% and 86.887% accuracy on CIFAR10 and PATTERN respectively.
Key idea. GNN-AK computes each node's representation by running a base GNN over the induced subgraph around it, instead of aggregating only from immediate neighbors.
- GNN-AK
- GNN As Kernel
- GNNAsKernel
- GNN-AK+
- subgraph GNN
- graph neural network
- message passing neural network
- Weisfeiler-Leman expressiveness
- graph regression
- local structure awareness
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhao2022starssubgraphsupliftinggnn,
title={From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awareness},
author={Lingxiao Zhao and Wei Jin and Leman Akoglu and Neil Shah},
year={2022},
eprint={2110.03753},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2110.03753},
}