arXiv:1512.02673

Paper record

W2268702383

Speeding Up Distributed Machine Learning Using Codes

Kangwook Lee, Maximilian Lam, Ramtin Pedarsani, Dimitris Papailiopoulos, Kannan Ramchandran

Year
2017
Venue
IEEE Transactions on Information Theory
References
90
Cited by
930

Details and counts from OpenAlex.

Abstract

Codes are widely used in many engineering applications to offerrobustnessagainstnoise. 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 paper, we provide theoretical insights on howcodedsolutions can achieve significant gains compared with uncoded ones. We focus on two of the most basic building blocks of distributed learning algorithms:matrix multiplicationanddata shuffling. For matrix multiplication, we use codes to alleviate the effect of stragglers and show that if the number of homogeneous workers isnn, and the runtime of each subtask has an exponential tail, coded computation can speed up distributed matrix multiplication by a factor oflog⁡n\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 ofthedatamatrixcanbecachedateachworker,andof the data matrix can be cached at each worker, andnisthenumberofworkers,codedshufflingreducesthecommunicationcostbyafactorofis the number of workers,coded shufflingreduces the communication cost by a factor of\left({\alpha + \frac {1}{n}}\right)\gamma (n)comparedwithuncodedshuffling,wherecompared with uncoded shuffling, where\gamma (n)istheratioofthecostofunicastingis the ratio of the cost of unicastingnmessagestomessages tonuserstomulticastingacommonmessage(ofthesamesize)tousers to multicasting a common message (of the same size) tonusers.Forinstance,users. For instance,\gamma (n) \simeq nifmulticastingamessagetoif multicasting a message ton$users is as cheap as unicasting a message to one user. We also provide experimental results, corroborating our theoretical gains of the coded algorithms.