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

Coded Computing at Full Speed

Bin Tang, Jiannong Cao, Runze Cui, Baoliu Ye, Ye Li, Sanglu LuICDCS 2020

Introduction

Distributed computing is the backbone of modern large-scale machine learning and big data analytics. However, these systems are frequently hampered by "stragglers"—worker nodes that exhibit unpredictable delays due to hardware issues, network congestion, or resource contention. Traditional approaches to mitigate stragglers involve redundant task assignment, often through coded computing. By applying erasure codes, a master node only needs a subset of workers to finish to reconstruct the final result.

Despite its benefits, conventional coded computing is inefficient: it treats worker progress as a binary state. Results from slower nodes are discarded entirely, even if they are nearly complete. This paper proposes a randomized coding approach designed to utilize every bit of partial work, effectively achieving "full speed" computation and communication.

System Architecture and the Straggler Problem

The standard distributed computing model involves a master node and $n$ worker nodes. The master distributes encoded versions of the input data to workers, who then perform local computations and return results.

Distributed coded computing framework with master and worker nodes.

In existing schemes, the master waits for $k$ out of $n$ workers. If a worker is slightly slower than the $k$-th finisher, its entire contribution is wasted. The authors identify this as a significant source of latency and propose a method to harness these partial results.

Methodology: Randomized Coding for Partial Work

The core innovation is a randomized approach applied to polynomial-based coding. Instead of treating a worker's task as an indivisible unit, the task is partitioned into $m$ smaller sub-tasks.

  1. Partitioning: Each worker divides its local computation into $m$ pieces.
  2. Random Linear Combinations: Rather than sending raw pieces, workers transmit random linear combinations of these pieces.
  3. Decoding: Because the combinations are random, each received packet is highly likely to be linearly independent. The master node collects these packets from all workers—fast or slow—and uses Gaussian elimination to decode the final result once enough total packets are received.

Full Speed Modes

The authors define two modes of operation based on how workers handle communication:

  • Communication at Full Speed (COMM-FS): Used when workers send results only after completing their entire local computation ("after-mode").
  • Computation at Full Speed (COMP-FS): Used when workers can stream results piece-by-piece while computing ("while-mode").
Timing diagrams for computation and communication overlap in 'while-mode'.

As shown in Figure 2, the "while-mode" allows for pipelining. By mapping randomized linear combinations directly into the initial data encoding, workers naturally produce the exact pieces the master needs in real-time.

Experimental Evaluation

The system was evaluated on an Alibaba Cloud cluster with 21 machines, focusing on high-dimensional matrix-matrix multiplication. By varying matrix dimensions, the authors simulated different ratios of computation to communication time.

Key Results

  • Significant Speedups: The proposed COMM-FS and COMP-FS methods reduced median runtime by 30.4% to 33.5% in communication-heavy scenarios.
  • Compute-Heavy Efficiency: In computation-heavy workloads, the reduction in runtime reached up to 42.3%.
  • Granularity vs. Overhead: Breaking tasks into 5-8 pieces provided the best balance. While more pieces allow for finer-grained recovery, the marginal gains decrease, and decoding complexity increases.

Discussion and Conclusion

The "Full Speed" approach demonstrates that utilizing partial computation is a powerful lever for reducing latency in distributed systems. By moving away from binary "success/failure" models of worker progress, the randomized coding scheme ensures that no computational effort is wasted.

While the $O(k^3)$ complexity of Gaussian elimination at the master node presents a potential bottleneck for extremely large clusters, the overhead remains negligible for typical recovery thresholds. Future work aims to extend these "full speed" principles to a wider variety of distributed tasks beyond matrix multiplication.

Summary updated

BibTeX
@inproceedings{tang2020coded,
  author = {Bin Tang and Jiannong Cao and Runze Cui and Baoliu Ye and Ye Li and Sanglu Lu},
  title = {{Coded Computing at Full Speed}},
  booktitle = {ICDCS},
  year = {2020},
  doi = {10.1109/icdcs47774.2020.00105},
}
Figure