Codes are widely used in many engineering applications to offer some form of reliability and fault tolerance. The high-level idea of coding is to exploit resource redundancy to deliver higher robustness against system 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. Moreover, redundancy is abundant: a plethora of nodes, a lot of spare storage, etc. However, there has been little interaction cutting across Codes, Machine Learning, and Distributed Systems. In this work, scratching the surface of "codes for distributed computation," 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 leverage the plethora of nodes and alleviate the effects of stragglers. We show that if the number of workers is n, and the runtime of each subtask has an exponential tail, the optimal coded matrix multiplication is Θ(log n) times faster than the uncoded matrix multiplication. In data shuffling, we use codes to exploit the excess in storage and reduce communication bottlenecks. We show that when α is the fraction of the data matrix that can be cached at each worker, and n is the number of workers, coded shuffling reduces the communication cost by a factor Θ(αγ(n)) compared to uncoded shuffling, where γ(n) is the ratio of the cost of unicasting n messages to n users to broadcasting a common message (of the same size) to n users. For instance, γ(n) n if broadcasting a message to n users is as cheap as unicasting a message to one user. We provide evidence on synthetic and Open MPI experiments on Amazon EC2 that highlights significant gains offered by our proposed coded solutions compared to uncoded ones: our preliminary results show that coded distributed algorithms can achieve significant speedups of up to 40% compared to uncoded distributed algorithms.
In REF Lee et al. studied the use of MDS codes for straggler mitigation in linear distributed machine learning algorithms.
Speeding Up Distributed Machine Learning Using Codes
ArXiv
ArXiv
Computer Science Mathematics