arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2005.07184cs.ITcs.DCcs.LGmath.IT
收藏

分布式学习中用于减少掉队的通信有效梯度编码

Communication-Efficient Gradient Coding for Straggler Mitigation in Distributed Learning

University of California, Berkeley(加州大学伯克利分校)

Swanand Kadhe, O. Ozan Koyluoglu, Kannan Ramchandran

摘要:

基于梯度的方法的分布式实现,其中服务器将梯度计算分布在工作机器上,需要克服两个限制:由称为“掉队者”的缓慢运行的机器引起的延迟,以及通信开销。最近,Ye和Abbe [ICML 2018]提出了一种编码理论范式,以表征每个工作者的计算负载,每个工作者的通信开销和离散容忍之间的基本权衡。然而,他们提出的编码方案遭受沉重的解码复杂度和差的数值稳定性。在本文中,我们开发了一个通信高效的梯度编码框架,以克服这些缺点。我们提出的框架允许使用任何线性码来设计编码和解码功能。当在该框架中使用特定代码时,其块长度决定计算负载,维度决定通信开销,最小距离决定离散容限。选择代码的灵活性允许我们优雅地权衡离散阈值和通信开销,以获得更小的解码复杂度和更高的数值稳定性。此外,我们表明,使用一个随机高斯矩阵在我们的框架中产生的最大距离可分离(MDS)代码的梯度代码,是最佳的权衡,此外,满足更强的保证数值稳定性相比,以前提出的计划。最后,我们在Amazon EC2上评估了我们提出的框架,并证明与之前的梯度编码方案相比,它将平均迭代时间减少了16%。

英文摘要:

Distributed implementations of gradient-based methods, wherein a server distributes gradient computations across worker machines, need to overcome two limitations: delays caused by slow running machines called 'stragglers', and communication overheads. Recently, Ye and Abbe [ICML 2018] proposed a coding-theoretic paradigm to characterize a fundamental trade-off between computation load per worker, communication overhead per worker, and straggler tolerance. However, their proposed coding schemes suffer from heavy decoding complexity and poor numerical stability. In this paper, we develop a communication-efficient gradient coding framework to overcome these drawbacks. Our proposed framework enables using any linear code to design the encoding and decoding functions. When a particular code is used in this framework, its block-length determines the computation load, dimension determines the communication overhead, and minimum distance determines the straggler tolerance. The flexibility of choosing a code allows us to gracefully trade-off the straggler threshold and communication overhead for smaller decoding complexity and higher numerical stability. Further, we show that using a maximum distance separable (MDS) code generated by a random Gaussian matrix in our framework yields a gradient code that is optimal with respect to the trade-off and, in addition, satisfies stronger guarantees on numerical stability as compared to the previously proposed schemes. Finally, we evaluate our proposed framework on Amazon EC2 and demonstrate that it reduces the average iteration time by 16% as compared to prior gradient coding schemes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑