arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.09847cs.LGmath.OCstat.ML
收藏

错误反馈修复SignSGD和其他梯度压缩方案

Error Feedback Fixes SignSGD and other Gradient Compression Schemes

EPFL(洛桑联邦理工学院)

Sai Praneeth Karimireddy, Quentin Rebjock, Sebastian U. Stich, Martin Jaggi

摘要:

基于符号的算法(例如signSGD)已经被提出作为一种有偏梯度压缩技术,以缓解在多个工作者之间训练大型神经网络时的通信瓶颈。我们展示了简单的凸反例,其中signSGD不收敛到最优。此外,即使它确实收敛,与SGD相比,signSGD也可能泛化较差。这些问题的出现是因为符号压缩算子的有偏性质。然后,我们表明,使用错误反馈,即将压缩算子的错误纳入下一步,克服了这些问题。我们证明了我们的算法EF-SGD与任意压缩算子达到相同的收敛速度SGD没有任何额外的假设。因此EF-SGD免费实现了梯度压缩。我们的实验彻底证实了理论,并表明错误反馈提高了收敛性和推广。代码可在\url{https://github.com/epfml/error-feedback-SGD}上找到。

英文摘要:

Sign-based algorithms (e.g. signSGD) have been proposed as a biased gradient compression technique to alleviate the communication bottleneck in training large neural networks across multiple workers. We show simple convex counter-examples where signSGD does not converge to the optimum. Further, even when it does converge, signSGD may generalize poorly when compared with SGD. These issues arise because of the biased nature of the sign compression operator. We then show that using error-feedback, i.e. incorporating the error made by the compression operator into the next step, overcomes these issues. We prove that our algorithm EF-SGD with arbitrary compression operator achieves the same rate of convergence as SGD without any additional assumptions. Thus EF-SGD achieves gradient compression for free. Our experiments thoroughly substantiate the theory and show that error-feedback improves both convergence and generalization. Code can be found at \url{https://github.com/epfml/error-feedback-SGD}.

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

↑