NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sequential Gradient Coding For Straggler Mitigation

Nikhil Krishnan Muralee Krishnan, MohammadReza Ebrahimi, Ashish J Khisti

Abstract

In distributed computing, slower nodes—commonly known as "stragglers"—frequently become a system bottleneck. While Gradient Coding (GC) is an efficient technique that uses error-correcting principles to distribute computation and mitigate these stragglers, it traditionally operates on a "one-shot" basis per round. This paper introduces Sequential Gradient Coding (SGC), a novel framework that mitigates stragglers by coding across both workers and time. By exploiting the temporal patterns of worker slowdowns, the proposed Multiplexed SGC (M-SGC) scheme achieves up to a 16% runtime improvement over standard Gradient Coding while significantly reducing the computational load per worker.

The Straggler Problem in Distributed Learning

In large-scale distributed machine learning, a "master" node distributes gradient computation tasks to many "worker" nodes. The system's overall speed is often limited by stragglers—nodes that are temporarily slow due to network congestion, resource sharing, or hardware hiccups.

The state-of-the-art solution, Gradient Coding (GC), uses redundancy to ensure the master can compute the final gradient even if some workers fail to respond. However, traditional GC treats every round of computation independently. This leads to high computational overhead because every round must be over-provisioned to handle the worst-case number of stragglers. The authors identify a critical missed opportunity: straggler behavior is often temporally correlated (slowdowns happen in bursts), and systems are usually computing a sequence of gradients, not just one.

Methodology: Spatio-Temporal Coding

The authors propose moving from purely spatial coding (across workers) to spatio-temporal coding (across workers and rounds). They introduce two main schemes:

  1. Selective-Reattempt SGC (SR-SGC): A simple but effective extension of GC. If a task isn't finished in one round, the master selectively assigns it to a different worker in the next round. This allows the system to tolerate more complex straggler patterns without increasing the baseline work each node performs.
  2. Multiplexed SGC (M-SGC): The paper's flagship contribution. It splits tasks into two categories:
  3. Uncoded tasks: Protected by simple re-attempts across rounds.
  4. Coded tasks: Protected by traditional Gradient Coding.

By "multiplexing" these tasks—assigning them diagonally across workers and time—M-SGC drastically reduces the required redundancy. Mathematically, the computational load per worker decreases by a factor of $s$ (the number of tolerated stragglers) compared to standard GC.

Experimental Setup and Real-World Stragglers

Unlike many theoretical papers that simulate stragglers using artificial delays, this work evaluates its schemes using naturally occurring stragglers on an AWS Lambda cluster with 256 worker nodes.

Straggler behavior on AWS Lambda showing temporal correlation (bursts) and completion time distribution.

The researchers utilized two primary setups to simulate a practical "multi-model" training environment where several gradients are computed in sequence:

  • MNIST: Training four concurrent Convolutional Neural Networks (CNNs).
  • CIFAR-100: Training four concurrent ResNet-18 models.

Key Insights and Results

  • Exploiting Temporal Diversity: Real-world stragglers aren't purely random; "bad" rounds with many stragglers are usually followed by "good" rounds. SGC exploits this by allowing a small delay ($T$) in finishing a job, letting "good" future rounds help clean up the mess from "bad" past rounds.
  • Significant Load Reduction: The most profound insight is that you do not need to code everything. By protecting a large portion of the work through simple temporal re-attempts and only coding a small subset, the system reaches near-theoretical limits of efficiency.
  • Speedup and Efficiency: M-SGC yielded a 16% improvement in total runtime over the baseline GC scheme for the MNIST/CNN tasks, while maintaining a significantly lower computational load (0.008 vs. 0.062 for GC).
  • Complex Model Performance: On the more complex CIFAR-100/ResNet-18 task, M-SGC was 11.6% faster than GC and 21.5% faster than uncoded training, despite the high communication overhead associated with large model weights.
  • Theoretical Optimality: The authors provide theoretical proofs demonstrating that M-SGC is near-optimal, meaning it operates very close to the information-theoretic limit of how little work a system must do to remain resilient to a specific burst of stragglers.

Limitations and Future Work

The current schemes assume that gradients in a sequence are either independent or have limited dependencies. While this perfectly fits scenarios like training multiple models concurrently or specific pipelining setups, it might require adaptation for strictly sequential, single-model Stochastic Gradient Descent (SGD) where every gradient depends on its immediate predecessor.

Additionally, the performance gains rely on a delay parameter $T > 0$. In systems where zero-latency is a strict, hard requirement, the temporal benefits of SGC cannot be fully realized. Future work will explore how these sequential codes could be integrated with communication-efficient methods, such as gradient quantization, to further reduce the bottleneck of moving data between the master and workers.

Summary updated

BibTeX
@inproceedings{krishnan2023sequential,
  author = {Nikhil Krishnan Muralee Krishnan and MohammadReza Ebrahimi and Ashish J Khisti},
  title = {{Sequential Gradient Coding For Straggler Mitigation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=-lGvSmht7a},
}
Figure