ClusterGCNConv
Trains deep GCNs on huge graphs by batching over graph clusters; the layer here adds diagonal enhancement.
Graphs and geometry · 34 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
- 206.8K
- Operations
- 34
- Framework
- PyTorch
- Recurrent
- No
- Published
- KDD 2019
- Cited by
- 130 (as of 18 October 2026)
- Authors
- Wei-Lin Chiang, Xuanqing Liu, Si Si and others
- Source
- torch_geometric 2.6.1
- 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
- m362
- Graph hash
- df67b5390568010bc04c95c14e926ecdca452e8ee9510f2aea36e0ffb7a5dc8c
- Skeleton hash
- aa802e333aab029c047d2749bda5d212b81c47ee5a1bc941427dcd0f89b1287f
- Architecture hash
- 81c53af2222148abb4d38e13edeb2002d0bb3b1bdc53acefc645ce3a2957380b
- Diagram SHA-256
- 7fbd44ab212dd6f26f510ce38c11318e9275e2653fc122a1a64aeb66ac870075
- 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
Cluster-GCN is a way of training graph convolutional networks on large graphs: at each step it samples a block of nodes belonging to a dense subgraph found by a graph clustering algorithm and keeps the neighborhood search inside that subgraph. The motivation is that existing SGD-based GCN training either pays a computational cost that grows exponentially with the number of layers or has to keep the whole graph and every node embedding in memory. The authors frame the efficiency of a mini-batch in terms of embedding utilization, which is proportional to the number of links between nodes inside the batch.
The batches are therefore designed with graph clustering algorithms such as METIS, which pack many links into each partition. Because only the current batch's node embeddings have to be stored, memory is O(bFL) for a batch of size b. A stochastic multiple-clustering scheme samples several clusters per batch and adds their between-cluster links back, which reduces the variance across batches. The implementation only computes matrix multiplications, with no neighborhood sampling.
What is traced here is a single ClusterGCNConv layer rather than the clustering loop, and the layer carries the paper's diagonal enhancement for training deeper GCNs. The idea is to amplify the diagonal of the adjacency matrix used in each layer, putting more weight on a node's own representation from the previous layer. Concretely, each layer multiplies the node features and weights by à + λ diag(Ã), where à is the adjacency normalized after adding an identity. When 7 or 8 GCN layers are used, the variants without this trick fail to converge within 200 epochs on PPI, while the diagonal-enhanced version keeps training.
To test scale the authors built Amazon2M, a graph with 2 million nodes and 61 million edges, more than 5 times larger than Reddit. Training a 3-layer GCN there, Cluster-GCN took 1523 seconds against 1961 seconds for VR-GCN and used 2.2GB of memory against 11.2GB. A 5-layer Cluster-GCN reaches a test F1 score of 99.36 on PPI, where the previous best result the paper cites was 98.71. That PPI model used 2048 hidden units, which is the width of the layer traced here.
Key idea. Cluster-GCN builds each SGD batch from a dense subgraph found by graph clustering and restricts the neighborhood search to that subgraph. Its complexity is linear in the number of layers, where VR-GCN's is exponential, so deep GCNs can be trained on graphs with millions of nodes.
- Cluster-GCN
- ClusterGCN
- ClusterGCNConv
- cluster GCN
- graph convolutional network
- GCN
- graph clustering
- METIS
- node classification
- large graph training
- diagonal enhancement
- PyTorch Geometric
- Amazon2M
- PPI
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chiang2019clustergcnefficientalgorithmtraining,
title={Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networks},
author={Wei-Lin Chiang and Xuanqing Liu and Si Si and Yang Li and Samy Bengio and Cho-Jui Hsieh},
year={2019},
eprint={1905.07953},
archivePrefix={arXiv},
primaryClass={cs.LG},
doi={https://doi.org/10.1145/3292500.3330925},
url={https://arxiv.org/abs/1905.07953},
}