Stochastic Gradient Coding for Straggler Mitigation in Distributed Learning

Rawad Bitar, Mary Wootters, Salim El Rouayheb

Abstract

Distributed machine learning systems are frequently bottlenecked by "stragglers"—worker nodes that are slow or unresponsive. This paper introduces Stochastic Gradient Coding (SGC), a framework that utilizes data redundancy to mitigate the impact of these delays. Unlike rigid "all-or-nothing" coding schemes, SGC provides a graceful transition between exact gradient descent and stochastic gradient descent (SGD). We provide a rigorous theoretical analysis of SGC's convergence and demonstrate its effectiveness in high-straggler scenarios compared to existing methods.

Introduction

In distributed learning, a master node partitions data among multiple workers to compute gradients in parallel. The primary challenge is the straggler problem: the master must wait for the slowest worker before proceeding to the next iteration. Existing solutions typically involve high-redundancy exact coding, which is computationally expensive and brittle, or simply ignoring stragglers, which introduces significant noise and a high error floor.

SGC seeks a middle ground: an approximate coding scheme that is flexible, requires low redundancy, and maintains mathematically guaranteed convergence rates.

Methodology

Stochastic Gradient Coding operates in two primary stages:

  1. Distribution Stage: Data points $x_i$ are replicated across workers using a pair-wise balanced design. For $\ell_2$ loss (regression), the number of copies $d_i$ for a specific data point is proportional to its squared norm ($\|x_i\|_2^2$). This ensures that influential data points are more likely to be represented in the aggregate gradient.
  2. Computation Stage: In each iteration, workers compute gradients on their assigned data. The master aggregates whatever results arrive within a set time limit, treating missing gradients as stochastic noise.

SGC introduces a specific weighting strategy based on data norms, which reduces the variance of the gradient estimate. The authors provide the first rigorous convergence analysis for this scheme under a random straggler model.

Key Insights and Results

The theoretical analysis reveals that SGC convergence follows two distinct phases: an initial exponential decay (behaving like standard Gradient Descent) followed by a polynomial decay (behaving like batched SGD). Crucially, redundancy $d$ acts as a variance reducer; the error floor decays proportionally to $1/(dt)$, meaning increased redundancy directly lowers the achievable error.

Convergence of SGC compared to other methods at a straggler probability of p=0.7.

Experimental evaluations using synthetic Gaussian datasets confirm these theoretical predictions. As shown in the convergence plots, SGC maintains a lower error floor than "Ignore-Stragglers-SGD" and outperforms other approximate schemes like ERASUREHEAD.

Performance of different methods as the probability of straggling increases.

A key strength of SGC is its performance at high straggler rates. When the probability of straggling $p$ exceeds 0.6, SGC significantly outperforms ERASUREHEAD. Furthermore, SGC is highly efficient, requiring only a small redundancy factor (e.g., $d \approx 2$) to handle a large number of stragglers effectively.

Conclusion and Future Work

SGC provides a robust and theoretically grounded approach to distributed learning in the presence of stragglers. While the current work assumes independent straggler behavior and focuses on $\ell_2$ loss, it establishes a strong foundation for future research. Subsequent steps include generalizing norm-based weighting to non-linear loss functions and validating SGC on large-scale real-world datasets in physical cloud environments.

Summary updated

BibTeX
@misc{bitar2019stochastic,
  author = {Rawad Bitar and Mary Wootters and Salim El Rouayheb},
  title = {{Stochastic Gradient Coding for Straggler Mitigation in Distributed Learning}},
  year = {2019},
  eprint = {1905.05383},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.05383},
}
Figure