arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.08133cs.LGcs.CV
收藏

地方SGD在规模上的权衡:一项实证研究

Trade-offs of Local SGD at Scale: An Empirical Study

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Facebook AI Research(脸书人工智能研究院)

Jose Javier Gonzalez Ortiz, Jonathan Frankle, Mike Rabbat, Ari Morcos, Nicolas Ballas

摘要:

随着数据集和模型变得越来越大,分布式训练已经成为允许深度神经网络在合理的时间内进行训练的必要组成部分。然而,分布式训练可能会有大量的通信开销,这会阻碍其可扩展性。减少这种开销的一种策略是在同步步骤之间独立地对每个工作线程执行多个非同步SGD步骤,这种技术称为本地SGD。我们进行了全面的实证研究,当地SGD和相关方法的大规模图像分类任务。我们发现,执行本地SGD是有代价的:较低的通信成本(从而更快的训练)伴随着较低的准确性。这一发现与先前工作中的小规模实验相反,表明当地SGD在规模上遇到了挑战。我们进一步表明,结合Wang等人的慢动量框架。(2020)在不需要额外沟通的情况下,始终提高准确性,暗示未来可能摆脱这种权衡的方向。

英文摘要:

As datasets and models become increasingly large, distributed training has become a necessary component to allow deep neural networks to train in reasonable amounts of time. However, distributed training can have substantial communication overhead that hinders its scalability. One strategy for reducing this overhead is to perform multiple unsynchronized SGD steps independently on each worker between synchronization steps, a technique known as local SGD. We conduct a comprehensive empirical study of local SGD and related methods on a large-scale image classification task. We find that performing local SGD comes at a price: lower communication costs (and thereby faster training) are accompanied by lower accuracy. This finding is in contrast from the smaller-scale experiments in prior work, suggesting that local SGD encounters challenges at scale. We further show that incorporating the slow momentum framework of Wang et al. (2020) consistently improves accuracy without requiring additional communication, hinting at future directions for potentially escaping this trade-off.

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

↑