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

SlowMo:改进具有慢动量的通信高效的分布式SGD

SlowMo: Improving Communication-Efficient Distributed SGD with Slow Momentum

Carnegie Mellon University(卡内基梅隆大学);Facebook AI Research(脸书人工智能研究院)

Jianyu Wang, Vinayak Tantia, Nicolas Ballas, Michael Rabbat

摘要:

分布式优化对于在大型数据集上训练大型模型至关重要。已经提出了多种方法来减少分布式训练中的通信开销,例如仅在执行多个本地SGD步骤之后进行同步,以及分散式方法(例如,使用流言算法)来解耦工作者之间的通信。虽然这些方法比基于AllReduce的方法运行得更快,后者在每次更新之前使用阻塞通信,但在相同数量的更新之后,生成的模型可能不太准确。受Chen & Huo(2016)的BMUF方法的启发,我们提出了一个慢动量(SlowMo)框架,其中工人在多次迭代基础优化算法后定期同步并执行动量更新。在图像分类和机器翻译任务上的实验表明,相对于基本优化器,SlowMo始终在优化和泛化性能方面有所改进,即使在许多更新中分摊了额外的开销,使得SlowMo运行时与基本优化器不相上下。我们提供了理论收敛保证表明,SlowMo收敛到平稳的非凸损失点。由于BMUF可以通过SlowMo框架表示,我们的结果也对应于BMUF的第一个理论收敛保证。

英文摘要:

Distributed optimization is essential for training large models on large datasets. Multiple approaches have been proposed to reduce the communication overhead in distributed training, such as synchronizing only after performing multiple local SGD steps, and decentralized methods (e.g., using gossip algorithms) to decouple communications among workers. Although these methods run faster than AllReduce-based methods, which use blocking communication before every update, the resulting models may be less accurate after the same number of updates. Inspired by the BMUF method of Chen & Huo (2016), we propose a slow momentum (SlowMo) framework, where workers periodically synchronize and perform a momentum update, after multiple iterations of a base optimization algorithm. Experiments on image classification and machine translation tasks demonstrate that SlowMo consistently yields improvements in optimization and generalization performance relative to the base optimizer, even when the additional overhead is amortized over many updates so that the SlowMo runtime is on par with that of the base optimizer. We provide theoretical convergence guarantees showing that SlowMo converges to a stationary point of smooth non-convex losses. Since BMUF can be expressed through the SlowMo framework, our results also correspond to the first theoretical convergence guarantees for BMUF.

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

↑