Abstract: Coded computation techniques provide robustness against straggling workers in distributed computing. However, most of the existing schemes require exact provisioning of the straggling behaviour and ignore the computations carried out by straggling workers. Moreover, these schemes are typically designed to recover the desired computation results accurately, while in many machine learning and iterative optimization algorithms, faster approximate solutions are known to result in an improvement in the overall convergence time. In this paper, we first introduce a novel coded matrix-vector multiplication scheme, called coded computation with partial recovery (CCPR), which benefits from the advantages of both coded and uncoded computation schemes, and reduces both the computation time and the decoding complexity by allowing a trade-off between the accuracy and the speed of computation. We then extend this approach to distributed implementation of more general computation tasks by proposing a coded communication scheme with partial recovery, where the results of subtasks computed by the workers are coded before being communicated. Numerical simulations on a large linear regression task confirm the benefits of the proposed distributed computation scheme with partial recovery in terms of the trade-off between the computation accuracy and latency.
The Straggler Problem in Distributed Computing
In large-scale distributed computing, a "Parameter Server" (PS) typically divides a massive task—such as matrix-vector multiplication for Gradient Descent—among multiple worker nodes. The primary bottleneck in this architecture is the straggler problem: the entire system's progress is often dictated by the slowest worker. If the PS must wait for every worker to complete its assigned task before moving to the next iteration, the overall latency increases significantly.
Existing solutions generally fall into two categories: uncoded schemes and Maximum Distance Separable (MDS) codes. Uncoded schemes are fast but offer no redundancy; if a worker fails, its data is lost for that iteration. MDS codes provide perfect redundancy but are "all-or-nothing," requiring the PS to wait for a specific threshold of workers to finish 100% of their tasks before any result can be recovered. This paper identifies a middle ground: many machine learning algorithms are robust to noise, meaning we do not require 100% accuracy at every step to reach a correct final solution.
Coded Computation with Partial Recovery (CCPR)
The authors propose Coded Computation with Partial Recovery (CCPR), a framework that harvests partial work from both fast and slow workers. The key innovation is the use of Randomly Circularly Shifted (RCS) codes. In this scheme, the input matrix is divided into submatrices, and each worker is assigned a unique, circularly shifted set of these subtasks.
Key Methodological Components
- Multi-Message Communication (MMC): Instead of workers sending one large result at the end of their computation, they transmit smaller "sub-results" as they are completed. This allows the PS to begin decoding early.
- Degree Distribution: Borrowing from rateless or LT codes, the authors assign a "degree" to each message. Simple, uncoded messages (degree 1) are prioritized for quick initial progress, while complex, redundant combinations (higher degrees) are sent later to fill in missing data.
- Uniformity Constraints: To maximize efficiency, the RCS scheme enforces worker-wise and order-wise uniformity, ensuring that submatrices are distributed evenly across the network and that workers do not duplicate redundant work unnecessarily.
- Low-Complexity Decoding: The PS employs a "peeling decoder," similar to solving a Sudoku puzzle, to recover original subtasks from the received linear combinations with minimal computational overhead.
Experimental Setup and Datasets
The researchers evaluated CCPR using synthetic datasets designed for large-scale linear regression. The setup included 2000 data points with model dimensions of $d=400$ and $d=800$ features. Data was generated using a normal mixture distribution to simulate realistic clustering. To model the network, they simulated 40 homogeneous workers with computation speeds following a "shifted exponential distribution," a standard model for capturing cloud-based straggling behavior.
Key Insights: The Accuracy-Latency Trade-off
The central insight of this work is the "Tolerance" parameter ($q$). By setting a tolerance level—for example, $q=0.15$—the PS only waits until 85% of the result is recovered before proceeding. While this introduces a small amount of error per iteration, it drastically reduces the wall-clock time per iteration. Numerical simulations demonstrated that even with 30% missing data per iteration, the training error eventually reaches the same floor as a full-recovery version, but in significantly less time.
Results and Performance
- Latency Reduction: RCS codes achieved a 40% to 50% reduction in per-iteration completion time when using moderate tolerance levels ($q=0.15$ to $0.30$).
- Efficiency Gains: RCS outperformed both traditional MDS codes and uncoded schemes. To achieve full recovery, the uncoded scheme required 28% more messages than the RCS scheme.
- Convergence Stability: The proposed scheme successfully balanced the communication load and computation latency, maintaining model convergence while accelerating the training process.
Limitations and Future Directions
While CCPR shows great promise, the current model assumes worker straggling statistics are static and known, which may not hold true in dynamic environments like AWS spot instances. Future work could explore Adaptive Tolerance, where the parameter $q$ changes over time—starting high for rapid initial progress and decreasing as the model nears convergence to ensure final precision. Additionally, incorporating "stale" results from previous iterations or applying these concepts to non-linear layers in deep neural networks remains an area for further research.
Summary updated