Litcius/Paper detail

A Multidimensional Communication Scheduling Method for Hybrid Parallel DNN Training

Shengwei Li, Kai Lü, Zhiquan Lai, Weijie Liu, Keshi Ge, Dongsheng Li

2024IEEE Transactions on Parallel and Distributed Systems14 citationsDOI

Abstract

The transformer-based deep neural network (DNN) models have shown considerable success across diverse tasks, prompting widespread adoption of distributed training methods such as data parallelism and pipeline parallelism. With the increasing parameter number, hybrid parallel training becomes imperative to scale training. The primary bottleneck in scaling remains the communication overhead. The communication scheduling technique, emphasizing the overlap of communication with computation, has demonstrated its benefits in scaling. However, most existing works focus on data parallelism, overlooking the nuances of hybrid parallel training. In this paper, we propose <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">TriRace</i> , an efficient communication scheduling framework for accelerating communications in hybrid parallel training of asynchronous pipeline parallelism and data parallelism. To achieve effective computation-communication overlap, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">TriRace</i> introduces <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">3D communication scheduling</i> , which adeptly leverages data dependencies between communication and computations, efficiently scheduling AllReduce communication, sparse communication, and peer-to-peer communication in hybrid parallel training. To avoid possible communication contentions, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">TriRace</i> also incorporates a <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">topology-aware runtime</i> which optimizes the execution of communication operations by considering ongoing communication operations and real-time network status. We have implemented a prototype of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">TriRace</i> based on PyTorch and Pipedream-2BW, and conducted comprehensive evaluations with three representative baselines. Experimental results show that <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">TriRace</i> achieves up to 1.07–1.45× speedup compared to the state-of-the-art pipeline parallelism training baseline Pipedream-2BW, and 1.24–1.81× speedup compared to the Megatron.

Topics & Concepts

Computer scienceScheduling (production processes)Asynchronous communicationArtificial intelligenceParallel computingComputer networkEconomicsOperations managementAdvanced Neural Network ApplicationsFerroelectric and Negative Capacitance DevicesStochastic Gradient Optimization Techniques
A Multidimensional Communication Scheduling Method for Hybrid Parallel DNN Training | Litcius