DistDGL: Distributed Graph Neural Network Training for Billion-Scale Graphs

Da Zheng, Chao Ma, Minjie Wang, Jinjing Zhou, Qidong Su, Xiang Song, Quan Gan, Zheng Zhang, George Karypis

Introduction

Training Graph Neural Networks (GNNs) on massive, billion-scale graphs—such as social networks or product recommendation systems—presents significant challenges for standard hardware. Unlike images or text where data points are independent, graph nodes are inherently interconnected. To compute a representation for a single node, a system must fetch features from its neighbors, their neighbors, and so on. This "sticky" nature of graph data leads to three primary hurdles in distributed training:

  1. Communication Bottleneck: Network bandwidth is often consumed by constant requests for neighbor features rather than just gradient synchronization.
  2. Memory Explosion: Billion-node graphs with high-dimensional features can require terabytes of RAM, far exceeding a single machine's capacity.
  3. Load Imbalance: Power-law distributions in real-world graphs make it difficult to distribute work evenly across a cluster, as a few nodes may have millions of connections while most have very few.

System Architecture and Methods

DistDGL, built upon the Deep Graph Library (DGL), addresses these issues through a distributed architecture designed for high-performance GNN training.

High-level architecture of DistDGL showing the interaction between KVStore, Sampling, and Training components.

The system introduces several key architectural innovations to handle massive scale:

  • Owner-Compute Rule: Instead of moving massive amounts of data to the computation, DistDGL partitions the graph so each machine "owns" a set of nodes. Computation is then dispatched to the machine that already holds the required data.
  • High-Quality Partitioning: Using the METIS algorithm, DistDGL minimizes "edge cuts" (connections between machines). It further employs multi-constraint partitioning to ensure an equal distribution of training, validation, and test nodes across the cluster, preventing load imbalance during different phases of the pipeline.
  • Distributed KVStore: A specialized Key-Value store manages features and embeddings. It utilizes shared memory for near-instant local access and an optimized RPC framework for remote data retrieval.
  • Ghost/Halo Nodes: To minimize sampling latency, immediate neighbors owned by other machines are replicated locally as "halo nodes," though their heavy feature data is not replicated to conserve memory.
  • Hybrid Parallelism: The system uses synchronous SGD for dense model parameters to maintain accuracy, while employing asynchronous "Hogwild"-style updates for sparse node embeddings to maximize throughput.

Distributed Implementation and Locality

The efficiency of DistDGL stems from its ability to minimize network overhead by prioritizing data locality.

Distributed deployment of DistDGL across multiple machines using shared memory for local access and RPC for remote requests.

In this distributed setup, each machine hosts both server and process components. The trainer process interacts with the local KVStore server via shared memory, which is significantly faster than network communication. When data resides on a different machine, the system uses an optimized RPC request to fetch it. This "locality-first" approach is critical for achieving linear speedup in GNN training.

Evaluation and Key Results

The authors evaluated DistDGL using the Open Graph Benchmark (OGB), focusing on ogbn-products (2.4M nodes, 61M edges) and ogbn-papers100M (111M nodes, 3.2B edges).

Key performance metrics include:

  • Linear Speedup: Training time decreases almost perfectly linearly as more machines are added to the cluster.
  • Superior Throughput: DistDGL achieved a 2.2x speedup over Alibaba’s Euler system, with data copying throughput being 5x faster due to the optimized KVStore.
  • Billion-Scale Efficiency: On a 16-machine cluster, DistDGL completed a training epoch on the 3.2-billion-edge ogbn-papers100M graph in just 13 seconds.
  • Accuracy Preservation: The system reaches the same peak accuracy as single-machine training despite the distributed nature and optimizations like halo nodes.

Conclusion and Future Work

DistDGL demonstrates that GNN scaling is primarily a data movement problem rather than a compute problem. By co-locating trainers with their specific graph partitions and optimizing the data store, the system achieves unprecedented performance on billion-scale graphs. While currently optimized for CPU clusters, future research will focus on adapting these strategies for GPU-based training and handling dynamic, real-time streaming graphs where connections change constantly.

Reference: Zheng, D., et al. "DistDGL: Distributed Graph Neural Network Training for Billion-Scale Graphs." arXiv:2010.05337v3.

Summary updated

BibTeX
@inproceedings{zheng2020distdgl,
  author = {Da Zheng and Chao Ma and Minjie Wang and Jinjing Zhou and Qidong Su and Xiang Song and Quan Gan and Zheng Zhang and George Karypis},
  title = {{DistDGL: Distributed Graph Neural Network Training for Billion-Scale Graphs}},
  booktitle = {IA3@SC},
  year = {2020},
  doi = {10.1109/ia351965.2020.00011},
}
Figure