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

Serverless Straggler Mitigation using Local Error-Correcting Codes

Vipul Gupta, Dominic Carrano, Yaoqing Yang, Vaishaal Shankar, Thomas A. Courtade, Kannan Ramchandran · OpenReview

TL;DR

This paper introduces a novel approach to combat "stragglers" – slow-performing nodes – in serverless computing environments, which can significantly degrade the performance of distributed tasks. By adapting error-correcting codes to a fully distributed serverless architecture, they achieve substantial speedups and improved reliability for common machine learning and high-performance computing operations.

What Problem Does This Paper Address?

Serverless computing platforms (like AWS Lambda) offer scalable and elastic cloud services, abstracting away infrastructure management. However, these platforms are susceptible to "stragglers": nodes that unexpectedly slow down or fail, dramatically increasing the overall computation time for distributed tasks. Traditional solutions like speculative execution, which involves re-assigning tasks to new workers, are inefficient in serverless environments due to high monitoring overhead and the difficulty of managing tasks across a vast number of workers. Existing coding-theoretic approaches for straggler mitigation often rely on a central "master" node for encoding and decoding, creating a bottleneck that contradicts the distributed nature of serverless computing. This paper addresses the challenge of mitigating stragglers in a truly distributed serverless setting, minimizing end-to-end latency by considering encoding, computation, and decoding times.

Methods

The core contribution is a novel "local product code" scheme designed for serverless environments. Instead of a central master, encoding and decoding are distributed across the serverless workers themselves. The approach involves:

  • Parallel Encoding: Data is encoded in parallel by workers, with parity blocks inserted. This is done once and amortized over iterations.
  • Local Decoding: The key innovation is "local recoverability." This means that to recover from a straggler, only a small subset of the encoded data blocks (specifically, blocks within the same row and column of a submatrix) needs to be read, rather than the entire dataset as in traditional polynomial codes. This significantly reduces communication overhead.
  • Matrix Multiplication Focus: The scheme is demonstrated for matrix-matrix and matrix-vector multiplication, fundamental operations in many ML/HPC tasks.
  • Speculative Execution for Encoding/Decoding: While the main computation is made straggler-resilient by codes, the encoding and decoding phases themselves are protected by speculative execution, which is highly effective here due to the small number of workers and short job times involved.

Datasets

Not discussed in the paper. The experiments use synthetically generated matrices for tasks like matrix multiplication and KRR, and standard classification datasets (ADULT and EPSILON) for KRR experiments.

Key Insights and Ideas

  • Distributed Encoding/Decoding is Crucial for Serverless: Centralized master nodes are a bottleneck in serverless. Distributing these tasks is essential for true scalability.
  • Locality is King in Serverless: Communication overhead is a major concern in serverless. Codes that require reading only a small subset of data (locally recoverable codes) are far more efficient than those requiring global information.
  • Stragglers are a Real Problem, Even with Few: Figure 1 clearly shows that even in a well-behaved system like AWS Lambda, a small but consistent percentage of nodes (~2%) consistently straggle, impacting overall performance.
  • Coding Theory Offers Significant Speedups: The proposed local product codes consistently outperform speculative execution and other coding-theoretic methods, demonstrating the power of adapting these techniques to the serverless paradigm.
  • Trade-offs in Redundancy: The choice of redundancy (controlled by parameters LA and LB) involves a trade-off between mitigating more stragglers and the computational cost of the extra parity blocks.

Key Results

  • Significant Speedups: The proposed local product code scheme outperforms speculative execution by at least 25% for large matrix dimensions.
  • KRR Performance: For Kernel Ridge Regression (KRR) on ADULT and EPSILON datasets, coded computation achieved 42.1% and 44.5% reduction in total job times, respectively, compared to speculative execution.
  • ALS Performance: For Alternating Least Squares (ALS), coded computing showed a 20% improvement in total running time over speculative execution, with much smaller variance in iteration times.
  • Tall-Skinny SVD: Coded computing achieved a 26.5% reduction in end-to-end latency for SVD of a large tall-skinny matrix.
  • Straggler Tolerance: The theoretical analysis shows that the local product codes are asymptotically optimal in terms of decoding time and can tolerate a significant number of stragglers with high probability. The probability of encountering an undecodable set (requiring more than 3 stragglers) is shown to be very low.

Limitations and Future Work

  • Focus on Specific Operations: The current work focuses on matrix-matrix and matrix-vector multiplication. Future work aims to extend these schemes to other matrix operations like QR decomposition, Gaussian elimination, and eigenvalue decomposition.
  • Software Library Development: The authors plan to develop a software library that seamlessly integrates these coding-based straggler mitigation techniques into existing serverless frameworks like Pywren, making them accessible to users without requiring them to modify their application code.
  • Theoretical Bounds: While theoretical bounds are provided for decoding costs and straggler resilience, further practical exploration of these bounds in real-world scenarios would be valuable.
  • Universal Applicability: The authors believe their schemes are universal and can be applied to many algorithms without altering their outcomes, which is a significant advantage for adoption.

Summary updated

BibTeX
@misc{gupta2020serverless,
  author = {Vipul Gupta and Dominic Carrano and Yaoqing Yang and Vaishaal Shankar and Thomas A. Courtade and Kannan Ramchandran},
  title = {{Serverless Straggler Mitigation using Local Error-Correcting Codes}},
  year = {2020},
  eprint = {2001.07490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.07490},
}
Figure