Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networks

Wei-Lin Chiang, Xuanqing Liu, Si Si, Yang Li, Samy Bengio, Cho-Jui Hsieh

TL;DR

Cluster-GCN is a novel training algorithm that makes deep Graph Convolutional Networks (GCNs) scalable by partitioning large graphs into clusters and training on subgraphs. By restricting neighborhood searches to these clusters, it eliminates the "exponential expansion" problem of traditional mini-batch methods, drastically reducing memory usage and enabling state-of-the-art performance on massive datasets.

What Problem Does This Paper Address?

Graph Convolutional Networks (GCNs) are powerful for learning on graph-structured data, but they are notoriously difficult to scale. There are two traditional ways to train them, both with major flaws:

  1. Full-batch Gradient Descent: This requires storing the embeddings of every single node across all layers in memory. For large graphs with millions of nodes, this quickly exceeds GPU memory capacity.
  2. Mini-batch SGD: While standard for images, it fails in graphs due to the neighborhood expansion problem. To compute the representation of one node at layer $L$, you need its neighbors at $L-1$, their neighbors at $L-2$, and so on. This "fan-out" grows exponentially with the number of layers, making training deep GCNs computationally prohibitive and slow.

The authors aim to bridge this gap: creating an algorithm that is as memory-efficient as mini-batch SGD but as computationally efficient as full-batch training.

Methods

The core idea is Cluster-GCN. Instead of sampling random nodes, the algorithm uses a graph clustering method (like METIS) to partition the graph into several dense subgraphs (clusters).

  • Vanilla Cluster-GCN: In each training step, the algorithm samples one cluster and performs a forward and backward pass only on the nodes and edges within that cluster. This ensures that most of a node's neighbors are already present in the batch, maximizing "embedding utilization" and avoiding the need to fetch nodes from outside the batch.
  • Stochastic Multiple Partitions: Training on a single cluster can lead to two issues: losing edges between clusters and biased gradients (since clusters often have skewed label distributions). To fix this, the authors propose sampling multiple clusters ($q$) to form a mini-batch and including the edges that exist between those sampled clusters.
  • Diagonal Enhancement: To address the difficulty of training deep GCNs (which often suffer from vanishing gradients or "over-smoothing"), the authors introduce a normalization technique that adds a weighted identity matrix to the adjacency matrix. This helps the model prioritize a node's own features and improves numerical stability.

Datasets

The authors evaluate Cluster-GCN on several well-known benchmarks:

  • PPI (Protein-Protein Interaction): A multi-label dataset.
  • Reddit: A large social network graph.
  • Amazon: A product co-purchase network.
  • Amazon2M (New): The authors introduced this new benchmark, which contains over 2 million nodes and 61 million edges. It is more than five times larger than Reddit, previously the largest public GCN dataset.

Key Insights and Ideas

  • Embedding Utilization is Key: The authors define "embedding utilization" as the number of times a computed node embedding is reused. By using clustering, they ensure that nodes in a batch are highly interconnected, which naturally maximizes reuse and minimizes redundant computations.
  • Clustering as a Batching Strategy: Unlike random sampling, clustering provides a "locality-aware" batching strategy. It essentially "pre-computes" which nodes are most relevant to each other, allowing the SGD process to focus on dense, informative subgraphs.
  • Depth Matters (With the Right Optimization): Previous research suggested that GCNs don't benefit from going deep. This paper proves otherwise, showing that with Cluster-GCN and diagonal enhancement, a 5-layer GCN can outperform shallower models, reaching new heights in accuracy.

Key Results

  • Memory Efficiency: On the Amazon2M dataset, Cluster-GCN used only 2.2GB of memory for a 3-layer model, compared to 11.2GB for VR-GCN (a previous state-of-the-art).
  • Scalability: Cluster-GCN was the only algorithm capable of training a 4-layer GCN on the Amazon2M dataset; all other existing methods failed due to Out-of-Memory (OOM) errors.
  • Speed: It is significantly faster than neighborhood-sampling methods. For a 3-layer GCN on Amazon2M, Cluster-GCN finished an epoch in 1523 seconds, while VR-GCN took 1961 seconds.
  • Accuracy: The authors achieved a state-of-the-art F1 score of 99.36 on the PPI dataset using a 5-layer Cluster-GCN, surpassing the previous best of 98.71.

Limitations and Future Work

  • Preprocessing Overhead: Cluster-GCN requires an initial clustering step (METIS). While the authors show this is relatively fast (e.g., 148 seconds for 2M nodes), it remains a prerequisite.
  • Information Loss: Even with the stochastic multi-cluster approach, some global graph information is inevitably lost during partitioning.
  • Framework Dependencies: The paper notes that performance varies significantly between deep learning frameworks (PyTorch vs. TensorFlow) due to how they handle sparse tensor operations, suggesting that further low-level optimization could yield even better results.

Summary updated

BibTeX
@inproceedings{chiang2019cluster,
  author = {Wei-Lin Chiang and Xuanqing Liu and Si Si and Yang Li and Samy Bengio and Cho-Jui Hsieh},
  title = {{Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2019},
  doi = {10.1145/3292500.3330925},
}

Loading related content...

Figure