Skip to main content
QUICK REVIEW

[Paper Review] DistDGL: Distributed Graph Neural Network Training for Billion-Scale Graphs

Da Zheng, Chao Ma|arXiv (Cornell University)|Oct 11, 2020
Advanced Graph Neural NetworksComputer Science34 references23 citations
TL;DR

DistDGL is a distributed GNN training system built on DGL that enables efficient, scalable mini-batch training on billion-scale graphs by using locality-aware graph partitioning, co-location of data and computation, and multi-constraint load balancing. It achieves linear speedup across 16 machines, completing a training epoch in 13 seconds for a 100M-node, 3B-edge graph while maintaining model accuracy.

ABSTRACT

Graph neural networks (GNN) have shown great success in learning from graph-structured data. They are widely used in various applications, such as recommendation, fraud detection, and search. In these domains, the graphs are typically large, containing hundreds of millions of nodes and several billions of edges. To tackle this challenge, we develop DistDGL, a system for training GNNs in a mini-batch fashion on a cluster of machines. DistDGL is based on the Deep Graph Library (DGL), a popular GNN development framework. DistDGL distributes the graph and its associated data (initial features and embeddings) across the machines and uses this distribution to derive a computational decomposition by following an owner-compute rule. DistDGL follows a synchronous training approach and allows ego-networks forming the mini-batches to include non-local nodes. To minimize the overheads associated with distributed computations, DistDGL uses a high-quality and light-weight min-cut graph partitioning algorithm along with multiple balancing constraints. This allows it to reduce communication overheads and statically balance the computations. It further reduces the communication by replicating halo nodes and by using sparse embedding updates. The combination of these design choices allows DistDGL to train high-quality models while achieving high parallel efficiency and memory scalability. We demonstrate our optimizations on both inductive and transductive GNN models. Our results show that DistDGL achieves linear speedup without compromising model accuracy and requires only 13 seconds to complete a training epoch for a graph with 100 million nodes and 3 billion edges on a cluster with 16 machines. DistDGL is now publicly available as part of DGL:https://github.com/dmlc/dgl/tree/master/python/dgl/distributed.

Motivation & Objective

  • To address the challenge of training GNNs efficiently on billion-scale graphs that exceed single-machine memory and computation capacity.
  • To reduce communication overhead in distributed GNN training, which is dominated by fetching neighbor node features due to vertex dependencies.
  • To achieve high parallel efficiency and memory scalability by co-locating graph data, features, and computation across a cluster.
  • To balance computational load across machines by applying multi-constraint graph partitioning and balanced mini-batch generation.
  • To maintain model accuracy while scaling training to large graphs using synchronous, mini-batch training with non-local nodes in ego-networks.

Proposed method

  • Distributes graph structure, node features, and embeddings across a cluster of machines using a consistent owner-compute rule for computational decomposition.
  • Employs METIS-based min-cut graph partitioning with multiple balancing constraints to minimize inter-partition communication and ensure load balance.
  • Replicates halo nodes across partitions to reduce repeated remote data fetches during message passing.
  • Uses sparse embedding updates to reduce gradient communication overhead during synchronous SGD training.
  • Integrates sampling servers and in-memory KVStore servers on the same machines as trainers to co-locate data and computation.
  • Supports both transductive and inductive GNN models with minimal code changes via DGL-compatible APIs.

Experimental results

Research questions

  • RQ1How can distributed GNN training be made efficient at scale, especially when communication overhead from neighbor data fetching dominates?
  • RQ2Can min-cut graph partitioning with multi-constraint load balancing significantly improve training performance on billion-scale graphs?
  • RQ3To what extent can communication reduction and load balancing jointly enable linear speedup in distributed GNN training?
  • RQ4How does DistDGL maintain model accuracy while scaling to graphs with 100M nodes and 3B edges across 16 machines?
  • RQ5Can a system built on top of DGL enable seamless migration from single-machine to distributed training with minimal code changes?

Key findings

  • DistDGL achieves linear speedup across 16 machines, completing a training epoch in just 13 seconds for a 100M-node, 3B-edge graph without sacrificing model accuracy.
  • METIS partitioning with multi-constraint balancing improves performance by 4% over default METIS and 2.14× over random partitioning on the ogbn-product graph.
  • On the ogbn-papers100M graph, default METIS performed worse than random partitioning due to high imbalance, highlighting the necessity of multi-constraint load balancing.
  • The combination of communication reduction via min-cut partitioning and load balancing through multi-constraints is essential for high performance.
  • Replicating halo nodes and using sparse embedding updates significantly reduce communication traffic during training.
  • DistDGL maintains compatibility with DGL’s APIs, enabling minimal-effort code migration from single-machine to distributed training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.