arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12996cs.CL
收藏

DiLoCo 中用于通信与计算重叠的急切更新

Eager Updates For Overlapped Communication and Computation in DiLoCo

Apple(苹果公司);Google Research(谷歌研究院);Google DeepMind(谷歌DeepMind)

Satyen Kale, Arthur Douillard, Yanislav Donchev

AI总结:

针对 DiLoCo 外部优化同步阻塞导致的减速问题,提出 eager updates 使通信与内部计算完全重叠,并在低带宽场景保持与标准 DiLoCo 相当的性能。

摘要:

诸如 DiLoCo 之类的分布式优化方法已被证明能够有效跨多个分布式工作节点(例如数据中心)训练超大规模模型。这些方法将更新分为两个部分:一个内部优化阶段,工作节点在各自的本地数据上独立执行多个优化步骤;以及一个外部优化步骤,用于同步内部更新。尽管此类方法所需通信量比标准数据并行训练低几个数量级,但在工作节点为数据中心的场景中,即使这些方法有限的通信需求,仍会因每个外部优化步骤所需的阻塞而造成显著减速。本文研究通过让通信与计算重叠来缓解该问题的技术,使外部优化步骤能够与内部优化阶段完全重叠。结果表明,在工作节点间带宽较低的设置下,一种被称为 eager updates(急切更新)的特定变体可提供与标准 DiLoCo 相竞争的性能。

英文摘要:

Distributed optimization methods such as DiLoCo have been shown to be effective in training very large models across multiple distributed workers, such as datacenters. These methods split updates into two parts: an inner optimization phase, where the workers independently execute multiple optimization steps on their own local data, and an outer optimization step, where the inner updates are synchronized. While such approaches require orders of magnitude less communication than standard data-parallel training, in settings where the workers are datacenters, even the limited communication requirements of these approaches can still cause significant slow downs due to the blocking necessary at each outer optimization step. In this paper, we investigate techniques to mitigate this issue by overlapping communication with computation in a manner that allows the outer optimization step to fully overlap with the inner optimization phase. We show that a particular variant, dubbed eager updates, provides competitive performance with standard DiLoCo in settings with low bandwidth between workers.

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

↑