Scaling Up Graph Neural Networks Via Graph Coarsening

Zengfeng Huang, Shengzhong Zhang, Chong Xi, Tang Liu, Min Zhou · DOI

Introduction

Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data. However, they face a significant scalability challenge known as the "neighbor explosion" problem. As GNNs aggregate information from local neighborhoods, the receptive field grows exponentially with the number of layers. In large-scale graphs, a single mini-batch of nodes can necessitate loading nearly the entire graph into memory, making standard training procedures computationally prohibitive. While sampling-based methods exist, they often introduce implementation complexity and overhead. This paper proposes a model-agnostic, efficient alternative: Graph Coarsening.

The Graph Coarsening Framework

The authors introduce a three-step pipeline designed to reduce the computational burden of GNN training while preserving model performance:

  1. Coarsening: The original graph $G$ is partitioned into clusters (using methods like "Variation Neighborhoods"). Each cluster is represented as a "super-node" in a reduced graph $G'$. The features of these super-nodes are calculated by averaging the features of the constituent nodes.
  2. Training: A standard GNN architecture (e.g., GCN, APPNP) is trained exclusively on the coarsened graph $G'$. Due to the significantly reduced number of nodes and edges, training requires substantially less GPU memory and time.
  3. Transfer: The weights learned on $G'$ are directly applied to the original graph $G$ for inference and final predictions.

Theoretical Insights

A key contribution of this work is the theoretical bridge between graph coarsening and GNN optimization. The authors demonstrate that training on a coarse graph is mathematically equivalent to solving the original GNN optimization problem under a specific subspace constraint. This constraint effectively acts as a low-pass filter, smoothing out high-frequency noise in the graph structure. Consequently, coarsening provides a built-in regularization effect that can prevent overfitting to structural noise, often leading to a "regularization free lunch."

Experimental Evaluation

The methodology was evaluated on five benchmark datasets: Cora, Citeseer, Pubmed, Coauthor Physics, and DBLP. These datasets represent a range of scales and domains, from small citation networks to larger academic collaboration graphs.

Memory Efficiency and Scalability

One of the most striking results is the sublinear reduction in memory usage. As the coarsening ratio $c$ (the ratio of nodes in $G'$ to nodes in $G$) decreases, memory consumption drops almost linearly.

Memory usage of APPNP across various datasets and coarsening ratios.

As shown in the figure above, memory savings are consistent across all tested datasets. For example, on the Coauthor Physics dataset, a coarsening ratio of 0.3 reduces memory consumption by approximately 70-80% compared to training on the original graph. This allows for training on hardware that would otherwise be insufficient for the full-scale graph.

Performance and Regularization

Contrary to what might be expected from data compression, training on coarsened graphs often improved accuracy. On the DBLP dataset, reducing the node count by 90% ($c=0.1$) actually increased GCN accuracy from 72.6% to 76.0%. Across 10 experimental settings, the coarsened GCN outperformed the full-graph baseline in 7 cases. This supports the hypothesis that coarsening acts as a beneficial structural regularizer by focusing the model on the graph's fundamental structure.

Conclusion and Future Work

Graph coarsening offers a simple yet powerful method for scaling GNNs. By training on a compressed representation of the graph, researchers can achieve significant memory and time savings without sacrificing—and often improving—predictive performance. Future research directions include refining label aggregation for "mixed" super-nodes (containing nodes of different classes) and optimizing the pre-computation overhead of the coarsening step for web-scale graphs with billions of edges.

Summary updated

BibTeX
@inproceedings{huang2021scaling,
  author = {Zengfeng Huang and Shengzhong Zhang and Chong Xi and Tang Liu and Min Zhou},
  title = {{Scaling Up Graph Neural Networks Via Graph Coarsening}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467256},
}
Figure