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

Leveraging partial stragglers within gradient coding

Aditya Ramamoorthy, Ruoyu meng, Vrinda S Girimaji

Introduction

Distributed machine learning often suffers from "stragglers"—slow or failing worker nodes that bottleneck training. In large-scale distributed setups, a massive dataset is split into chunks and assigned to multiple worker nodes. These workers compute gradients on their assigned data and send them to a Parameter Server (PS) to update the model. However, in real-world cloud clusters, workers operate at unpredictable speeds, and some may fail entirely.

To prevent the entire system from waiting on the slowest node, researchers use Gradient Coding (GC). GC assigns overlapping (redundant) data chunks to workers and uses coding theory to reconstruct the full gradient even if some workers drop out.

Unfortunately, traditional GC protocols have two major flaws:

  1. They ignore partial work: A worker is usually classified as either "finished" (computed all assigned chunks) or "failed." If a slow worker finishes 3 out of 4 chunks, that valuable compute is entirely wasted.
  2. Numerical instability: Recent "communication-efficient" GC methods try to compress the data workers send back to the PS using polynomial (Lagrange) interpolation. However, this approach becomes catastrophically unstable due to floating-point errors when scaling past just 20 workers.
Illustration of partial work completed by different workers in a distributed cluster.

Proposed Methodology

The authors propose a dynamic, interactive GC protocol that rescues partial work and guarantees numerical stability.

1. Interactive State Sharing & Least-Squares Encoding

Instead of using pre-fixed polynomial coefficients, the PS monitors how many chunks each worker has processed. Once enough chunks are processed across the cluster, the PS broadcasts a "state vector" (who has processed what) and a random Gaussian matrix. Workers use this shared state to independently solve a local, well-conditioned least-squares problem. This tells them exactly how to linearly combine their completed chunk gradients. Because it relies on random Gaussian matrices rather than high-degree polynomials, the math remains numerically stable regardless of cluster size.

2. Optimal Chunk Ordering

Because the protocol utilizes partial work, the order in which a worker processes its assigned chunks suddenly matters immensely. If all workers process chunk A first and chunk B last, the PS will be starved of chunk B.

Comparison of different chunk processing orders across workers.

The authors frame this as a combinatorial min-max problem and use bipartite perfect matching algorithms to find the optimal processing order. This ensures the cluster completes at least one copy of every chunk as fast as possible, minimizing the worst-case wait time.

Key Results and Insights

  • Exact Gradient Reconstruction: The proposed protocol is approximately 2$\times$ faster than the original baseline GC protocols because it successfully pieces together the full gradient without waiting for workers to finish their entire queues.
  • Approximate Gradient Reconstruction: When the PS decides to update the model before every single chunk is fully processed, the proposed method yields a Mean Squared Error (MSE) that is several orders of magnitude lower than the baseline for any given time $T$.
  • Binary worker classification is a waste: Treating slow workers as "failed" leaves compute on the table. By dynamically adapting the decoding math to the exact state of the cluster, the PS can reconstruct the full gradient much earlier.
  • Numerical stability is crucial: Prior communication-efficient GC methods look elegant in theory but fail in practice because high-degree polynomial interpolation destroys floating-point precision. Shifting to an under-determined least-squares approach completely bypasses this roadblock.

Limitations and Future Work

The authors acknowledge a few limitations. First, their optimal chunk ordering algorithm only applies to a specific class of assignment matrices (where the number of chunks equals the number of workers, and the replication/load factors are uniform). For arbitrary assignments, finding the optimal order remains an open challenge. Second, while the simulations strongly indicate reduced communication and computation times, the authors note they have not yet deployed the protocol on physical cloud platforms (like AWS or GCP) to measure exact wall-clock communication time savings in the wild. Future work will likely focus on these real-world deployments and generalizing the ordering algorithm.

Summary updated

BibTeX
@inproceedings{ramamoorthy2024leveraging,
  author = {Aditya Ramamoorthy and Ruoyu meng and Vrinda S Girimaji},
  title = {{Leveraging partial stragglers within gradient coding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=QC4e0vOanp},
}
Figure