arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.09799cs.LGcs.CLcs.DC
收藏

通信高效的语言模型训练可可靠且稳健地扩展:DiLoCo 的扩展定律

Communication-Efficient Language Model Training Scales Reliably and Robustly: Scaling Laws for DiLoCo

Google Research(谷歌研究院);Google Search(谷歌搜索);Google DeepMind(谷歌DeepMind)

Zachary Charles, Gabriel Teston, Lucio Dery, Keith Rush, Nova Fallen, Zachary Garrett, Arthur Szlam, Arthur Douillard

AI总结:

本文研究固定计算预算下 DiLoCo 训练 LLM 的扩展定律,表明其随模型规模可预测、稳健扩展,并在批量、泛化和评估损失上优于数据并行训练。

摘要:

随着我们扩展到更庞大的机器学习模型,数据并行方法固有的频繁同步需求造成了显著的减速,对进一步扩展构成关键挑战。近期工作开发了一种方法(DiLoCo),可在不损害模型质量的情况下放宽同步需求。然而,这些工作并未仔细分析 DiLoCo 的行为如何随模型规模而变化。在本工作中,我们研究在固定计算预算下训练 LLM 时 DiLoCo 的扩展定律行为。我们关注算法因素(包括模型副本数量、超参数和 token 预算)如何以可通过扩展定律准确预测的方式影响训练。我们发现 DiLoCo 随模型规模既可预测又稳健地扩展。经过良好调优时,DiLoCo 随模型规模的扩展优于数据并行训练,甚至在较小模型规模下也能胜过数据并行训练。我们的结果展示了比此前记录更广泛的一组 DiLoCo 优势,包括增大的最优批量规模、随规模提升的下游泛化能力,以及在固定 token 预算下改善的评估损失。

英文摘要:

As we scale to more massive machine learning models, the frequent synchronization demands inherent in data-parallel approaches create significant slowdowns, posing a critical challenge to further scaling. Recent work develops an approach (DiLoCo) that relaxes synchronization demands without compromising model quality. However, these works do not carefully analyze how DiLoCo's behavior changes with model size. In this work, we study the scaling law behavior of DiLoCo when training LLMs under a fixed compute budget. We focus on how algorithmic factors, including number of model replicas, hyperparameters, and token budget affect training in ways that can be accurately predicted via scaling laws. We find that DiLoCo scales both predictably and robustly with model size. When well-tuned, DiLoCo scales better than data-parallel training with model size, and can outperform data-parallel training even at small model sizes. Our results showcase a more general set of benefits of DiLoCo than previously documented, including increased optimal batch sizes, improved downstream generalization with scale, and improved evaluation loss for a fixed token budget.

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

↑