Communication-Efficient Distributed Training via Ring-Based Coded Approximate All-Reduce
Abstract
Ring All-Reduce is a widely used protocol for aggregating gradients across workers in large-scale distributed training. For a system with workers, its normalized per-worker communication is . In this work we present a communication-efficient Ring All-Reduce (CERAR) protocol for ``approximate'' gradient aggregation. CERAR partitions each local gradient into components and relies on linear encoding and decoding operations. It performs communication rounds over an -worker ring, yielding normalized communication rate and normalized storage rate . We present an explicit Vandermonde matrix based construction whose approximation error can be made arbitrarily small, with communication and storage rates approaching one as increases. However, this comes at the cost of ill-conditioned encoding matrices. We therefore give an alternate construction whose error is , while the relevant condition numbers are , where . This motivates a condition-number-constrained optimization formulation for obtaining numerically stable practical designs. Our experiments show that, compared with the production-standard NCCL on NVIDIA A100 PCIe GPU clusters with low-bandwidth PCIe interconnect, CERAR reduces raw All-Reduce time by up to 47\%. For training a 1.4-billion-parameter Pythia model, it reduces training time by about 17\% for the same number of iterations while achieving essentially identical validation loss. On GPU clusters with high-bandwidth NVLink interconnects, CERAR performs worse in the All-Reduce phase and slightly worse in overall training time. However, the gap narrows for larger model sizes, suggesting that further gains may be possible with more optimized CERAR implementations.
Create a lesson
Metadata
- Categories
- cs.IT, math.IT
- Comments
- 21 pages, 1 figure
Related papers
Communication-Efficient Distributed Sketching for Sparse Linear Regression
Shared title terminologycs.ITShashank S, Mrityunjoy Chakraborty, Soummya Kar
Dynamic Coded Distributed Computing with Joint File Placement and Reduce Function Reassignment
Shared title terminologycs.ITChenglin Li, Minquan Cheng, Youlong Wu
Explicit Asymptotically Good Linear Tree Codes with Efficient Decoding
Shared title terminologycs.ITHaoran Wang
Energy-Efficient Mobile Embodied Agent Network (MEAN) over Wireless Communications
Shared title terminologycs.ITZhicheng Liu, Chen Zhu, Zhouxiang Zhao et al.
Multi-View Block Distance Distributions and Linear Programming Bounds for Locally Recoverable Codes with Availability
Shared title terminologycs.ITMing-Hsuan Kang, Maosheng Xiong, Yu Hsuan Hsieh et al.
Joint Source-Channel Coding of Gaussian Sources over Block Erasure Channels: Nonasymptotic Bounds and Channel-Uniform Normal Approximations
Shared title terminologycs.ITAdeel Mahmood