Slow and Stale Gradients Can Win the Race

Sanghamitra Dutta, Jianyu Wang, Gauri Joshi

Abstract

Distributed Stochastic Gradient Descent (SGD) when run in a synchronous manner, suffers from delays in <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">runtime</i> as it waits for the slowest workers (stragglers). Asynchronous methods can alleviate stragglers, but cause gradient staleness that can adversely affect the convergence <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">error</i> . In this work, we present a novel theoretical characterization of the speedup offered by asynchronous methods by analyzing the trade-off between the <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">error</i> in the trained model and the actual training <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">runtime</i> (wallclock time). The main novelty in our work is that our runtime analysis considers random straggling delays, which helps us design and compare distributed SGD algorithms that strike a balance between straggling and staleness. We also provide a new error convergence analysis of asynchronous SGD variants without bounded or exponential delay assumptions. Finally, based on our theoretical characterization of the error-runtime trade-off, we propose a method of gradually varying synchronicity in distributed SGD and demonstrate its performance on the CIFAR10 dataset.
BibTeX
@article{dutta2020slow,
  author = {Sanghamitra Dutta and Jianyu Wang and Gauri Joshi},
  title = {{Slow and Stale Gradients Can Win the Race}},
  journal = {IEEE J. Sel. Areas Inf. Theory},
  year = {2020},
  doi = {10.1109/jsait.2021.3103770},
}
Figure