Publication | Open Access
Speeding Up Distributed Machine Learning Using Codes
862
Citations
102
References
2017
Year
Codes offer robustness against noise, yet their application to distributed machine learning in large‑scale systems—where stragglers, failures, and communication bottlenecks arise—has been largely unexplored. The study aims to demonstrate that coded solutions can yield significant performance gains over uncoded approaches in distributed machine learning. The authors analyze coded matrix multiplication, showing that coding mitigates stragglers and speeds up computation by a factor of log n, and coded data shuffling, which exploits excess storage to cut communication costs. Experiments confirm that coded matrix multiplication can be accelerated by a factor of log n and coded shuffling can reduce communication by a factor of (α+1/n)γ(n), validating the theoretical speed‑up and bandwidth‑saving gains.
Codes are widely used in many engineering applications to offer robustness against noise. In large-scale systems there are several types of noise that can affect the performance of distributed machine learning algorithms -- straggler nodes, system failures, or communication bottlenecks -- but there has been little interaction cutting across codes, machine learning, and distributed systems. In this work, we provide theoretical insights on how coded solutions can achieve significant gains compared to uncoded ones. We focus on two of the most basic building blocks of distributed learning algorithms: matrix multiplication and data shuffling. For matrix multiplication, we use codes to alleviate the effect of stragglers, and show that if the number of homogeneous workers is $n$, and the runtime of each subtask has an exponential tail, coded computation can speed up distributed matrix multiplication by a factor of $\log n$. For data shuffling, we use codes to reduce communication bottlenecks, exploiting the excess in storage. We show that when a constant fraction $\alpha$ of the data matrix can be cached at each worker, and $n$ is the number of workers, \emph{coded shuffling} reduces the communication cost by a factor of $(\alpha + \frac{1}{n})\gamma(n)$ compared to uncoded shuffling, where $\gamma(n)$ is the ratio of the cost of unicasting $n$ messages to $n$ users to multicasting a common message (of the same size) to $n$ users. For instance, $\gamma(n) \simeq n$ if multicasting a message to $n$ users is as cheap as unicasting a message to one user. We also provide experiment results, corroborating our theoretical gains of the coded algorithms.
| Year | Citations | |
|---|---|---|
Page 1
Page 1