CapsGNN
A graph neural network that uses capsules and routing to embed and classify whole graphs.
Graphs and geometry · 173 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
- 21.3K
- Operations
- 173
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2019
- Authors
- Zhang Xinyi, Lihui Chen
- Source
- GitHub: XinyiZ001/CapsGNN
- License
- GPL-3.0
- 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
- m15238
- Graph hash
- 4fa799be17173b1f8e868749410fca24a7bbfe2fb7e3d53984519d194b4355c2
- Skeleton hash
- 0e206b2c3e0fe7e506e3c65b4d1c683f041651ac14194746c0c73f65a28c0883
- Architecture hash
- 06057e42c9493357c553ce9d50485588b9043214e52d2533d194517f6e03323f
- Diagram SHA-256
- cbb15927e3c42b985f754ffd3f96423598a700a01f657fdc34199356d0335552
- 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
CapsGNN, the Capsule Graph Neural Network, brings the capsule idea of the Capsule Neural Network (CapsNet) to graph neural networks. Its target is the embedding of whole graphs: the abstract argues that when node embeddings from a GNN are used to build a graph embedding, a scalar node representation may not preserve node and graph properties well.
Node features are extracted in the form of capsules, and a routing mechanism then captures the important information at the graph level. The model produces several embeddings for each graph, each capturing graph properties from a different aspect. An attention module handles graphs of various sizes and lets the model focus on the critical parts of a graph.
The authors evaluate on 10 graph-structured datasets and report that CapsGNN outperforms other techniques on several graph classification tasks. Their own implementation is in TensorFlow. A separate PyTorch implementation of the paper also exists.
Key idea. CapsGNN extracts node features as capsules and uses routing to build multiple embeddings for each graph, each capturing graph properties from a different aspect.
- CapsGNN
- Capsule Graph Neural Network
- capsule GNN
- graph capsules
- graph classification
- graph embedding
- capsule routing
- dynamic routing
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{capsgnn2019,
title = {Capsule Graph Neural Network},
author = {Zhang Xinyi and Lihui Chen},
year = {2019},
journal = {ICLR 2019}
}