Abstract
We study scheduling of computation tasks across $n$ workers in a large scale distributed learning problem. Computation speeds of the workers are assumed to be heterogeneous and unknown to the master, and redundant computations are assigned to the workers in order to tolerate straggling workers. We consider sequential computation and instantaneous communication from each worker to the master, and each computation round, which can model a single iteration of the stochastic gradient descent (SGD) algorithm, is completed once the master receives $k \leq n$ distinct computations, referred to as the computation target. Our goal is to characterize the average completion time as a function of the computation load, which denotes the portion of the dataset available at each worker, and the computation target. We propose two computation scheduling schemes that specify the computation tasks assigned to each worker, as well as their order of execution. We also establish a lower bound on the minimum average completion time. Numerical results show a significant reduction in the average computation time over the existing coded and uncoded computing schemes.
Introduction
In large-scale distributed learning, a central "master" node coordinates numerous "worker" nodes to perform iterative algorithms like Stochastic Gradient Descent (SGD). A primary bottleneck in these systems is the straggler problem, where the overall progress is dictated by the slowest worker. Traditional approaches often employ "coded computation" to introduce redundancy, allowing the master to proceed once a subset of workers finishes. However, these methods typically suffer from high encoding/decoding overhead and fail to utilize partial results from slower workers, treating them as binary (finished or not).
Proposed Uncoded Sequential Computation
This paper proposes a framework for uncoded sequential computation that exploits the non-persistent nature of stragglers. Instead of waiting for a worker to complete a full batch, workers report the result of each individual task to the master immediately upon completion. The master terminates the round as soon as it receives a "computation target" of $k$ distinct results.
The efficiency of this approach depends on the Task Ordering (TO) Matrix, which defines the assignment and sequence of tasks for each worker. Two primary scheduling schemes are introduced:
- Cyclic Scheduling (CS): Tasks are shifted across workers in a cyclic pattern.
- Staircase Scheduling (SS): Workers alternate the direction of their computation (e.g., Worker 1 processes tasks 1 to $r$, while Worker 2 processes $r$ down to 1). This maximizes the diversity of tasks arriving at the master, ensuring that even with slow nodes, a broad set of unique tasks is collected quickly.
Performance Evaluation
The proposed schemes were evaluated using synthetic data for linear regression and real-world hardware on an Amazon EC2 cluster (t2.micro instances) using the MPI4py library. Delays were modeled using a truncated Gaussian distribution, verified against real-world traces.
Key Results
- Significant Latency Reduction: In EC2 experiments, Staircase Scheduling (SS) achieved a 28.5% reduction in average completion time compared to Random Assignment (RA) schemes.
- Outperforming Coded Schemes: Both CS and SS significantly outperformed state-of-the-art coded schemes like Polynomially Coded (PC) and PCMM. Coded schemes were often nearly twice as slow because they cannot leverage partial results and incur decoding overhead.
- Near-Optimal Efficiency: Numerical results indicate that the gap between Staircase Scheduling and the theoretical lower bound is minimal.
- Communication Bottlenecks: The experiments confirmed that communication delay is frequently a more significant bottleneck than computation time in distributed cloud environments.
Conclusion and Future Work
Uncoded scheduling strategies offer a powerful alternative to complex coding techniques by harvesting work from every node and maximizing task diversity. While the current model assumes uniform task complexity, future work could extend these strategies to heterogeneous tasks (e.g., different neural network layers) and integrate them with communication-reduction techniques like quantization or sparsification to further minimize latency in distributed learning.
Summary updated