Abstract
Nowadays, large and complex deep learning (DL) models are increasingly trained in a distributed manner across multiple worker machines, in which extensive communications between workers pose serious scaling problems. In this article, we present a quantitative survey of communication optimization techniques for data parallel distributed DL. We first identify the major communication challenges and classify the existing solutions into three levels, namely the learning algorithm, the system architecture, and the network infrastructure. We present the state-of-the-art communication optimization techniques and conduct a comparative study of seven common lossless distributed DL methods on a 32-GPU cluster with 100Gbps InfiniBand (IB). We show that (1) the DL models with low model intensity (such as BERT and BERT-Large) are difficult to scale out even with the best available lossless algorithm over 100Gbps IB; (2) the system architecture and scheduling algorithms have a critical impact on the scaling property. We conclude the article with discussions on the open issues for further investigations.
Introduction
Distributed training is no longer a luxury; for modern Large Language Models (LLMs) and complex computer vision architectures, it is a necessity. However, as clusters grow, researchers often encounter a performance ceiling where adding more hardware fails to yield proportional speedups. The primary bottleneck is communication overhead. As the number of workers ($N$) increases, the time spent synchronizing gradients across the network can quickly exceed the time spent on local GPU computation.
In the study "A Quantitative Survey of Communication Optimizations in Distributed Deep Learning," Shaohuai Shi and colleagues provide a rigorous analysis of these bottlenecks and evaluate the efficacy of various optimization strategies.
A Three-Level Taxonomy of Optimizations
To address the communication bottleneck, the authors categorize existing solutions into a three-level taxonomy: the learning algorithm, the system architecture, and the network infrastructure.
- Learning Algorithm Level: Focuses on reducing the frequency or volume of communication. This includes Large-batch training (increasing computation per step) and Lossy compression (quantization and sparsification of gradients).
- System Architecture Level: Examines the structural organization of workers, comparing Parameter Server (PS) (centralized) versus All-to-All (A2A) (decentralized) architectures, alongside task scheduling strategies.
- Communication Infrastructure Level: Addresses the underlying hardware and protocols, such as RDMA over InfiniBand and network topologies like Fat-Tree or 2D-Torus.
The Impact of Model Intensity and Batch Size
A core contribution of this research is the introduction of Model Intensity ($I$), defined as the number of arithmetic operations per parameter per data sample. The authors argue that scalability is inherent to a model's "DNA":
- High Intensity Models: Models like ResNet-50 ($I=470$) scale almost linearly because they perform significant computation for every byte communicated.
- Low Intensity Models: Models like BERT-Large ($I=248$) are "chatty," requiring frequent communication relative to their computational workload, making them notoriously difficult to scale.
Furthermore, the Batch Size Paradox plays a critical role. While increasing the batch size reduces the Communication-to-Computation (C2C) ratio, it is physically constrained by GPU memory. Large models like BERT-Large force small local batch sizes, which spikes the C2C ratio and hinders efficiency.
System Architecture and Scheduling
The choice between centralized (PS) and decentralized (A2A) architectures significantly affects performance. While A2A (e.g., Horovod) is often more bandwidth-efficient, PS (e.g., BytePS) can be superior when paired with smart scheduling.
Key scheduling techniques include:
- Wait-Free Backpropagation (WFBP): Pipelining communication so it occurs concurrently with the computation of subsequent layers.
- Tensor Fusion: Merging small gradient updates into larger messages to overcome network latency, particularly beneficial for A2A architectures.
- Tensor Partitioning: Breaking large updates into smaller chunks so the network can begin transmission while the GPU is still computing remaining gradients, a strategy that favors PS architectures.
Quantitative Evaluation and Results
The authors evaluated seven lossless distributed methods on a 32-GPU cluster (8 nodes, each with 4x RTX2080Ti GPUs) interconnected with 100Gbps InfiniBand. Their findings highlight the stark contrast in scalability across different model types:
- ResNet-50: Achieved a 31.6x speedup on 32 GPUs, demonstrating near-perfect linear scaling.
- BERT-Large: Despite the high-speed 100Gbps interconnect, BERT-Large only achieved a 3.1x speedup. Communication time dominated the training process, leading to severe diminishing returns.
Conclusion and Future Directions
The survey concludes that for low-intensity models, lossless methods may have reached their limit. Future research must explore lossy compression—which can reduce gradient volume by over 90%—while carefully managing the impact on model accuracy. Additionally, the authors advocate for hardware-aware scheduling and automatic optimization tools that can analyze a model's Directed Acyclic Graph (DAG) to dynamically choose between fusion and partitioning based on the specific network topology.
Summary updated