Graph Neural Network Training Systems: A Performance Comparison of Full-Graph and Mini-Batch

Saurabh Bajaj, Hui Guan, Marco Serafini, Juelin Liu, Hojae Son

Introduction

Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data. However, as datasets scale to billions of edges, the computational burden of "message passing"—where nodes aggregate features from their neighbors—presents a significant bottleneck. This has led to a divergence in training methodologies: full-graph training and mini-batch training.

Full-graph training processes the entire adjacency matrix at once, theoretically preserving the structural integrity of the graph. Conversely, mini-batch training employs sampling techniques to process subgraphs, prioritizing throughput and memory efficiency. Despite the prevalence of both approaches, a rigorous head-to-head comparison has been lacking. This paper, authored by researchers at UMass Amherst, provides a comprehensive empirical evaluation of these two paradigms across various systems and datasets.

System Architectures and Paradigms

The study categorizes GNN training systems into two distinct architectural classes:

  1. Full-Graph Systems: These systems, including PipeGCN, BNS-GCN, and AdaQP, typically utilize model parallelism. They partition the graph across multiple GPUs and manage the communication of hidden vertex features. PipeGCN uses asynchronous communication, while AdaQP employs quantization to reduce the communication overhead.
  2. Mini-Batch Systems: Systems such as DGL, DistDGL, and Quiver rely on data parallelism combined with neighbor sampling. By sampling a fixed number of neighbors for each node, these systems bound the computation required per update and allow for more frequent model weight adjustments.

Evaluation Methodology

The researchers established a robust framework to compare these systems fairly. A critical distinction made in this study is the move away from "epoch time" as a primary metric. While full-graph systems often boast faster epoch times due to performing only one update per pass, this metric ignores the rate of convergence. Instead, the study focuses on Time-to-Accuracy (TTA)—the actual wall-clock time required to reach a specific performance threshold.

The evaluation spanned six large-scale datasets: Pubmed, ogbn-arxiv, ogbn-products, Reddit, Orkut, and the massive ogbn-papers100M (111 million nodes). To ensure fairness, hyperparameters were tuned independently for each system and dataset combination.

Performance Analysis and Key Insights

The Convergence Advantage

The empirical results demonstrate that mini-batch systems consistently reach target accuracy faster than full-graph systems. For instance, on the Reddit dataset, Quiver achieved a 6.9x speedup in TTA compared to AdaQP, the fastest full-graph system. The primary driver of this performance is the frequency of model updates; mini-batch systems perform multiple updates per epoch, leading to much faster convergence in terms of total training time.

Sampling as a Regularizer

A common criticism of mini-batch training is that sampling introduces "information loss." However, the study found that the stochastic nature of neighbor sampling often acts as a form of regularization. This allows mini-batch models to match or even exceed the test accuracy of full-graph models. In the ogbn-arxiv benchmark, mini-batch training reached 71.67% accuracy, nearly identical to the 71.76% achieved by full-graph training, but in a fraction of the time.

Scalability and Communication

Full-graph systems are inherently limited by the need to move hidden features across GPUs during every layer of the network. As the number of GPUs increases, this communication bottleneck intensifies. In contrast, mini-batch systems scale almost linearly. On a 4-GPU setup, mini-batch systems achieved up to a 3.9x speedup, whereas full-graph systems struggled with the overhead of cross-GPU feature synchronization.

Structural Robustness

Mini-batch training proved more resilient to "over-smoothing"—a phenomenon in GNNs where node features become indistinguishable as more layers are added. Full-graph models exhibited performance degradation much earlier than mini-batch models when increasing depth, suggesting that sampling helps maintain feature diversity.

Conclusion

The findings of this research suggest that for most large-scale GNN applications, mini-batch training is the superior choice. It offers faster time-to-accuracy, better multi-GPU scalability, and comparable generalization performance. While full-graph training offers lower variance between runs, the efficiency gains of optimized mini-batch systems like Quiver and DGL are too significant to ignore. Future research may look toward hybrid systems that combine the communication efficiency of sampling with the stability of full-graph updates.

Summary updated

BibTeX
@article{bajaj2024graph,
  author = {Saurabh Bajaj and Hui Guan and Marco Serafini and Juelin Liu and Hojae Son},
  title = {{Graph Neural Network Training Systems: A Performance Comparison of Full-Graph and Mini-Batch}},
  journal = {Proc. VLDB Endow.},
  year = {2024},
  doi = {10.14778/3717755.3717776},
}
Figure