Introduction
Training Graph Neural Networks (GNNs) on massive, real-world graphs necessitates distributing the workload across multiple machines. A critical precursor to this distribution is "partitioning"—the process of dividing the graph into segments for individual workers. While partitioning is well-understood for classical graph analytics like PageRank, GNNs introduce unique challenges due to their heavy neural network operations and the exchange of high-dimensional feature vectors. This paper presents the first extensive experimental study to determine whether sophisticated partitioning algorithms justify their computational cost over simpler random assignments in the context of GNN training.
Methods and Partitioning Paradigms
The researchers evaluated 12 partitioning algorithms across two state-of-the-art distributed GNN systems: DistGNN, which utilizes edge partitioning for full-batch training, and DistDGL, which employs vertex partitioning for mini-batch training.
In edge partitioning, edges are assigned to machines, and vertices are replicated (or "cut") across partitions. In vertex partitioning, vertices are assigned to machines, and edges are cut. The study spanned five diverse datasets—Hollywood-2011, Dimacs9-USA, Enwiki-2021, Eu-2015-tpd, and Orkut—along with the massive ogbn-papers100M graph for GPU benchmarks.
Key Insights: The Dominance of Features
A central finding is that GNNs are "feature-heavy." Unlike classical graph processing where the graph structure is the primary memory consumer, GNN memory usage is dominated by feature vectors. Consequently, high-quality partitioning (HQP) is most effective when it minimizes the "replication factor"—the number of times a vertex's features must be copied across the network.
Amortization of Partitioning Costs
While sophisticated partitioners like KaHIP or Metis require more initial computation time than random or streaming approaches, this cost is quickly amortized. Because GNNs are typically trained for hundreds of epochs, the per-epoch time savings accumulate rapidly. Most high-quality partitioners were found to pay for themselves in fewer than 20 training epochs.
Performance Results
The impact of HQP is substantial:
- Training Speedups: On DistGNN, the HEP100 partitioner achieved an average speedup of 4.36x, reaching up to 10.41x compared to random partitioning. DistDGL saw average speedups of 1.37x with KaHIP.
- Memory Efficiency: HQP reduced memory footprints by an average of 51.4%, with peak savings reaching 85.1%. This reduction is vital for training large-scale models on hardware with limited VRAM.
- Hyperparameter Sensitivity: The effectiveness of partitioning scales with feature size; as features grow, the cost of inter-node communication increases, making efficient partitioning more valuable. Conversely, increasing hidden dimensions (model width) shifts the bottleneck toward local computation, slightly diminishing the relative gains from partitioning.
Limitations and Future Work
Despite the clear benefits of HQP, the study identified several areas for improvement in current partitioning technology. One significant issue is vertex imbalance in edge partitioning. While many edge partitioners successfully balance the number of edges per machine, they often neglect the number of vertices.
As shown in the figure above, several algorithms result in significant vertex imbalance (values > 1.0), which leads to memory bottlenecks because vertex features are the primary memory consumers in GNNs. Future research should focus on "sampling-aware" partitioning for mini-batch training and developing algorithms that maintain vertex balance to further optimize distributed GNN performance.
Conclusion
Investing in high-quality graph partitioning is a "massive win" for distributed GNN training. By significantly reducing communication overhead and memory footprints, these strategies enable faster training and the handling of larger models, with the initial overhead being quickly recovered during the training process.
Summary updated