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

内部优化器如何影响副本扩展

How Inner Optimizers Shape Replica Scaling

Mila(米拉人工智能研究所);Concordia University(康考迪亚大学);Université de Montréal(蒙特利尔大学);CNRS(法国国家科学研究中心)

Eugene Belilovsky, Stefan Horoi, Edouard Oyallon, Benjamin Thérien

AI总结:

本研究针对固定总训练预算下增加LLM副本会导致性能下降的问题,分析了影响副本扩展的两个因素,证明基于白化的预条件化是内部优化器的重要特性,且基于白化的内部优化器在多副本场景中表现出色。

摘要:

在地理上分布式且互连性差的计算池或数据中心中训练大型语言模型(LLM)已成为备受关注的课题,这促使人们加强对LLM局部优化方法的研究,例如DiLoco,尤其是那些使用局部(或内部)自适应或预条件优化器的方法,这些方法对于高性能LLM训练至关重要。然而,一个核心挑战仍然存在:众所周知,在固定总训练预算的情况下增加模型副本数量(副本扩展)会导致性能单调下降。现有工作已通过经验证明,内部优化器的选择(Muon与AdamW)可显著改善这一趋势,但对性能差异的解释有限。在本研究中,我们考虑了一系列内部优化器,确定了影响副本扩展的两个重要因素:(1)伪梯度的协方差结构;(2)批量大小对伪梯度噪声尺度的影响。基于这些见解,我们从理论和经验上证明,基于白化的预条件化是内部优化器的重要特性。我们的经验评估扩展了相关结果,揭示基于白化的内部优化器在8至96个副本的场景中实现了出色的副本扩展,且随着参数和数据规模的增加,其相对于DP的性能也随之提升。

英文摘要:

Training large language models (LLMs) across geographically distributed and poorly interconnected compute pools or data centers has become a topic of significant interest. This has led to increased study of local optimization methods such as DiLoco for LLMs, especially those that use local (or inner) adaptive or preconditioned optimizers, which are critical for high-performance LLM training. However, a central challenge remains: it is well known that increasing the number of model replicas (replica scaling) while fixing the total training budget leads to monotonically decreasing performance. Existing work has empirically demonstrated that the choice of inner optimizer (Muon v.s. AdamW) can significantly improve this trend, but offers only limited explanation of the performance difference. In this work, we consider a range of inner-optimizers and identify two important factors that impact replica scaling: (1) the covariance structure of the pseudo-gradients and (2) the impact of batch size on the pseudogradient's noise scale. Based on these insights, we theoretically and empirically demonstrate that whitening-based pre-conditioning is a powerful inner-optimizer desideratum. Our empirical evaluation extends the results to reveal that whitening-based inner-optimizers achieve strong replica scaling (for 8-96 replicas), with performance relative to DP improving as parameters and data are scaled.

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

↑