Optimizing Task Placement and Online Scheduling for Distributed GNN Training Acceleration

Ziyue Luo, Yixin Bao, Chuan WuINFOCOM 2022 · DOI

Abstract

Training Graph Neural Networks (GNN) on large graphs is resource-intensive and time-consuming, mainly due to the large graph data that cannot be fit into the memory of a single machine, but have to be fetched from distributed graph storage and processed on the go. Unlike distributed deep neural network (DNN) training, the bottleneck in distributed GNN training lies largely in large graph data transmission for constructing mini-batches of training samples. Existing solutions often advocate data-computation colocation, and do not work well with limited resources where the colocation is infeasible. The potentials of strategical task placement and optimal scheduling of data transmission and task execution have not been well explored. This paper designs an efficient algorithm framework for task placement and execution scheduling of distributed GNN training, to better resource utilization, improve execution pipelining, and expediting training completion. Our framework consists of two modules: (i) an online scheduling algorithm that schedules the execution of training tasks, and the data transmission plan; and (ii) an exploratory task placement scheme that decides the placement of each training task. We conduct thorough theoretical analysis, testbed experiments and simulation studies, and observe up to 67% training speed-up with our algorithm as compared to representative baselines.

1. Introduction

Training Graph Neural Networks (GNNs) on massive graphs with billions of edges presents a significant challenge for modern distributed systems. Unlike standard Deep Learning (DNN) training, where the bottleneck is typically GPU computation or gradient communication, GNN training is often dominated by the "Data Movement Wall." Research indicates that up to 80% of training time in distributed GNN environments can be spent simply fetching subgraphs from distributed storage to construct mini-batches.

Workflow of distributed GNN training involving graph storage, samplers, workers, and parameter servers.

Existing solutions frequently rely on colocating data and computation. However, in heterogeneous clusters with varying resource availability (CPU, RAM, GPU), such colocation is often infeasible. This paper identifies a critical gap in strategic task placement and the scheduling of resulting data flows to maximize hardware utilization across the cluster.

2. The DGTP Framework

To address these challenges, we propose DGTP (Distributed GNN Training Planning), a framework consisting of two primary modules: Exploratory Task Placement (ETP) and Online Execution Scheduling (OES).

Illustration of (a) task placement across machines and (b) the execution and flow schedule over time.

2.1 Exploratory Task Placement (ETP)

Finding an optimal task placement is an NP-hard problem. ETP utilizes a Markov Chain Monte Carlo (MCMC) search strategy to navigate this complexity. It begins with a feasible placement generated via dynamic programming that respects hardware constraints. The algorithm then explores the solution space by moving tasks (samplers, workers, parameter servers) between machines, guided by a cost function designed to minimize expected training time based on the specific cluster topology and bandwidth.

2.2 Online Execution Scheduling (OES)

Due to the stochastic nature of graph sampling, the volume of data transferred varies per iteration, precluding effective offline scheduling. OES is an adaptive online algorithm that balances flow rates to prevent any single machine from becoming a bottleneck. It maximizes "pipelining" by overlapping data fetching with model training. We theoretically prove that OES maintains a competitive ratio of $\Delta$, where $\Delta$ is the maximum degree of incoming or outgoing flows at any machine.

3. Evaluation and Results

We evaluated DGTP using major benchmarks including ogbn-products (2.4M nodes), Reddit (0.2M nodes), and ogbn-papers100M (0.1B nodes).

Key results include:

  • Performance Gains: In testbed experiments, DGTP outperformed DistDGL by 31.75% on ogbn-products and 22.95% on Reddit.
  • Heterogeneous Environments: In simulations with varying network speeds, DGTP achieved up to a 67% speedup compared to standard heuristics like Minimum Remaining Time First (MRTF).
  • Efficiency: The framework demonstrated higher and more consistent network bandwidth utilization, effectively "filling the pipe" with useful data transfers and reducing idle time for compute workers.

4. Conclusion

DGTP shifts the focus of GNN optimization from the model architecture to the logistics of data movement. By exploiting cluster heterogeneity and implementing robust pipelining, it significantly accelerates training. Future work will explore dynamic task migration to handle mid-training cluster changes and extending optimizations to AllReduce-based synchronization models.

Summary updated

BibTeX
@inproceedings{luo2022optimizing,
  author = {Ziyue Luo and Yixin Bao and Chuan Wu},
  title = {{Optimizing Task Placement and Online Scheduling for Distributed GNN Training Acceleration}},
  booktitle = {INFOCOM},
  year = {2022},
  doi = {10.1109/infocom48880.2022.9796910},
}
Figure