Abstract
Graph neural networks (GNN) have shown great success in learning from graph-structured data in domains like recommendation and fraud detection. However, real-world graphs are typically massive and heterogeneous, containing billions of vertices and edges. We present DistDGLv2, a system that extends DistDGL for training GNNs on massive heterogeneous graphs using distributed hybrid CPU/GPU training. DistDGLv2 stores graph data in distributed CPU memory and performs mini-batch computation on GPUs. It features an asynchronous mini-batch generation pipeline and hierarchical graph partitioning to ensure high parallel efficiency and memory scalability. Our results show that DistDGLv2 achieves 2-3X speedup over DistDGL and 18X speedup over Euler, completing an epoch on graphs with hundreds of millions of vertices in just 5-10 seconds on a 64-GPU cluster.
Introduction
Training GNNs on billion-scale graphs presents a significant "memory wall." These graphs often exceed the capacity of GPU memory, and even distributed CPU memory systems face challenges with the sheer volume of data. The authors identify three primary hurdles: low computational density compared to CNNs, severe data movement bottlenecks between CPU and GPU, and load imbalances inherent in heterogeneous graphs. DistDGLv2 addresses these by optimizing data locality and overlapping computation with communication.
System Architecture and Methods
DistDGLv2 adopts a hybrid CPU/GPU architecture to balance memory capacity and computational power. The graph structure and node/edge features are maintained in a distributed Key-Value Store (KVStore) across CPU memory, while the neural network training occurs on GPUs.
A core innovation is the asynchronous mini-batch pipeline. This pipeline decouples sampling, feature fetching, and GPU computation. By running these stages in parallel, the system can pre-fetch data for the next mini-batch while the GPU is occupied with the current one, effectively hiding network and PCIe latency. Furthermore, the system employs two-level hierarchical partitioning. It first uses METIS to distribute the graph across machines to minimize inter-node traffic, then partitions it again for individual GPUs to maximize local data reuse.
Experimental Evaluation
The system was evaluated on several benchmarks, ranging from medium-scale (ogbn-products, Amazon) to billion-scale (ogbn-papers100M, mag-lsc). These datasets represent diverse real-world citation and recommendation networks.
Key Insights and Results
A critical finding of this work is the superiority of mini-batch training over full-graph training for massive scales. Not only is mini-batching more memory-efficient, but it also converges significantly faster and often reaches higher accuracy levels.
DistDGLv2 demonstrates exceptional scalability. On a 64-GPU cluster, it processes the ogbn-papers100M graph in 5 to 10 seconds per epoch. Compared to existing frameworks, it achieves a 2–3x speedup over the original DistDGL and an 18x speedup over Euler-GPU. Importantly, DistDGLv2 maintains high model accuracy by allowing "non-local" vertices in ego-networks through its distributed sampler, avoiding the accuracy loss seen in edge-dropping methods like ClusterGCN.
Conclusion and Future Work
DistDGLv2 successfully scales GNN training to billion-node graphs by leveraging hybrid hardware and an optimized asynchronous pipeline. While highly effective, the system faces challenges such as startup overhead for small training sets and high CPU RAM consumption due to aggressive pre-fetching. Future research will explore handling learnable node embeddings, which would require managing gradient staleness in the asynchronous pipeline.
Summary updated