Performance Analysis of Distributed Training with Ring AllReduce
Abstract
Distributed machine learning reduces training time by spreading computations across many workers. Recent measurement studies of distributed training have reported that synchronization and communication overheads leave GPUs substantially underutilized. In this paper, we study the randomness arising from variations in computation, communication, and synchronization as a root cause of worker idle times in distributed training. Our analysis considers Ring AllReduce, a widely used bandwidth-optimal collective communication algorithm. We represent Ring AllReduce as a Stochastic Petri Net (SPN) with exponentially distributed delays. The SPN induces a continuous-time (absorbing) Markov chain with a state space that grows exponentially in the number of workers. Observing that the fraction of idle workers quickly settles to a stable value, we compute the long-run probability that a worker is idle without enumerating the state space. For homogeneous workers, we show that the idle probability of workers converges to 50%. We extend our analysis to settings with less randomness, where delays have both deterministic and random components, and to systems with stragglers. To characterize the fluctuations of completion times beyond their mean, we couple our SPN model to a special case of the totally asymmetric simple exclusion process (TASEP). Exact asymptotic results for TASEP yield the distribution of completion times, showing that performance metrics of Ring AllReduce scale differently than suggested by the central limit theorem.
Create a lesson
Metadata
- Comments
- 27 pages
Related papers
SMART-Sharding: Scaling Per-tensor Sharding Search in LLM Training with Symbolic Dynamic Programming
Shared title terminologycs.DCKimia Noorbakhsh, Samuel Kushnir, Kavya Sreedhar et al.
Robust Binary-Compressed Communication in Distributed Learning and the Optimality of SignSGD
Shared title terminologycs.DCHallison Paz, Arthur Danjou, El Mahdi El Mhamdi
Preserving Optimizer Updates When Experts Move in MoE Training
Shared title terminologycs.DCYanming Lai, Yi Qin, Yongxin Hu et al.
ASHE: Asynchronous Stage-owned Heterogeneous Elastic-averaging for Pipeline-Parallel Training
Shared title terminologycs.DCHamin Jung, Sookwang Lee, Shinyoung Ahn et al.
Half a Bit per Parameter: How Much Optimizer State Does Training Need to Survive a Failed GPU?
Shared title terminologycs.DCZiyang Lin, Zixuan Sun
From State to Link-Register Model: A Transformer for Self-Stabilizing Distributed Algorithms
Shared title terminologycs.DCJohanne Cohen, George Manoussakis, Laurence Pilard