Search arXiv⌕ Search

arXiv subjects

Fahimeh Fazel

Publications and source records attributed to Fahimeh Fazel.

2 recordsLinked to original sources

Performance Analysis of Distributed Training with Ring AllReduce

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.

cs.DC↗

On the Burstiness of Distributed Machine Learning Traffic

Traffic from distributed training of machine learning (ML) models makes up a large and growing fraction of the traffic mix in enterprise data centers. While work on distributed ML abounds, the network traffic generated by distributed ML has received little attention. Using measurements on a testbed network, we investigate the traffic characteristics generated by the training of the ResNet-50 neural network with an emphasis on studying its short-term burstiness. For the latter we propose metrics that quantify traffic burstiness at different time scales. Our analysis reveals that distributed ML traffic exhibits a very high degree of burstiness on short time scales, exceeding a 60:1 peak-to-mean ratio on time intervals as long as 5~ms. We observe that training software orchestrates transmissions in such a way that burst transmissions from different sources within the same application do not result in congestion and packet losses. An extrapolation of the measurement data to multiple applications underscores the challenges of distributed ML traffic for congestion and flow control algorithms.

cs.LG↗