Abstract
Communication is a key bottleneck for distributed graph neural network (GNN) training. This paper proposes GNNPipe, a new approach that scales distributed full-graph deep GNN training. Being the first to use layer-level model parallelism for GNN training, GNNPipe partitions GNN layers among GPUs, where each device performs computation for a disjoint subset of consecutive GNN layers on the whole graph. Compared to graph parallelism where each GPU handles a graph partition, GNNPipe reduces the communication volume by a factor of the number of GNN layers. GNNPipe overcomes the unique challenges for pipelined layer-level model parallelism on the whole graph by partitioning it into dependent chunks, allowing the use of historical vertex embeddings, and applying specific training techniques to ensure convergence. We also propose a hybrid approach by combining GNNPipe with graph parallelism to handle large graphs, achieve better computer resource utilization, and ensure model convergence. Extensive experiments show that our method reduces the per-epoch training time by up to 2.45x and reduces communication volume and overhead by up to 22.89x and 27.21x, respectively, while achieving comparable model accuracy.
The Communication Bottleneck in Deep GNNs
As Graph Neural Networks (GNNs) evolve to capture long-range dependencies, models are becoming increasingly deep, often exceeding 64 layers. However, training these deep models on massive graphs in distributed environments faces a severe communication bottleneck.
Traditional Graph Parallelism partitions the graph across multiple GPUs. In this setup, every layer requires GPUs to exchange "boundary" vertex data. As the number of GPUs and layers increases, this all-to-all communication pattern scales poorly. Empirical data shows that communication overhead can account for over 80% of total training time in deep GNNs, as illustrated in the skyrocketing costs for standard graph parallel methods.
GNNPipe: Layer-Level Model Parallelism
GNNPipe introduces a paradigm shift by employing Layer-Level Model Parallelism. Instead of partitioning the graph, GNNPipe partitions the GNN layers themselves across GPUs. For instance, in a multi-GPU setup, GPU 1 might handle the first set of layers for the entire graph, passing the resulting embeddings to GPU 2 for the subsequent layers.
This architectural change fundamentally alters the communication pattern. While graph parallelism requires an all-to-all exchange at every single layer, GNNPipe only requires point-to-point communication at the boundaries between GPU-assigned layer blocks. This reduces the total communication volume by a factor roughly equal to the total number of layers ($L$).
Overcoming Pipelining Challenges
Implementing model parallelism for GNNs introduces unique challenges due to the inter-dependency of graph vertices. GNNPipe addresses these through several key innovations:
- Pipelined Execution: The graph is divided into "chunks." While one GPU processes a chunk for its assigned layers, the preceding GPU can begin processing the next chunk for earlier layers, maximizing hardware utilization.
- Stale Historical Embeddings: To handle dependencies where a vertex's current layer embedding requires neighbor data not yet computed in the current pipeline stage, GNNPipe utilizes "stale" embeddings from the previous epoch as approximations.
- Convergence Stabilizers: To mitigate the impact of staleness on accuracy, GNNPipe employs techniques such as chunk shuffling, embedding fixing (keeping stale values consistent over several epochs), and gradient zeroing (avoiding stale gradients in the backward pass).
Performance and Results
Evaluations across diverse datasets like Reddit, Flickr, and Squirrel demonstrate that GNNPipe significantly outperforms traditional methods. It achieves a per-epoch speedup of up to 2.45x (averaging 1.58x) and slashes communication overhead by up to 27.21x. Crucially, despite the use of stale embeddings, GNNPipe maintains a level of model accuracy and convergence speed comparable to standard full-graph training. Furthermore, it avoids the computational redundancy found in sampling-based methods (like DGL), outperforming them by up to 61x for deep architectures.
Conclusion
GNNPipe represents a significant step forward for distributed GNN training. By trading a small amount of statistical efficiency (via staleness) for massive gains in execution efficiency, it enables the efficient training of the deep GNN models necessary for modern, complex graph data analysis.
Summary updated