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

模型合并能否改善分布式局部计算优化(DiLoCo)中的聚合?

Can Model Merging Improve Aggregation in DiLoCo?

Université de Montréal(蒙特利尔大学);Mila – Quebec AI Institute(米拉-魁北克人工智能研究所);Concordia University(康考迪亚大学)

Stefan Horoi, Benjamin Thérien, Guy Wolf, Eugene Belilovsky

AI总结:

研究分布式学习中局部随机梯度下降(SGD)/DiLoCo的伪梯度聚合与模型合并的类比,评估多种模型合并方法,发现Iso-C可改进DiLoCo,在此基础上提出IsoLoCo,实证表明其性能优于DiLoCo。

摘要:

模型合并技术近年来备受关注,它将独立微调模型聚合为一个以整合其能力。分布式学习中局部SGD和DiLoCo等方法虽降低通信成本,但随独立局部模型数量增加等会性能下降。本文类比局部SGD/DiLoCo的伪梯度聚合与基于任务算术的模型合并,评估多种模型合并方法,提出IsoLoCo,实证表明其在分布式训练中性能优异。

英文摘要:

Model merging techniques, which aggregate independently finetuned models into one to combine their capabilities, have become a topic of significant interest in recent years, with a broad array of methods having been proposed to tackle this problem. Simultaneously, an emerging trend in distributed learning has been the use of methods such as local SGD and DiLoCo, which greatly reduce communication costs by periodically aggregating the independently trained local models. However, these communication-efficient methods have been shown to degrade in performance relative to the FLOP-matched data-parallel gold standard as the number of independent local models grows and as the number of local training steps before global communication is increased. In this work, we draw an explicit analogy between the pseudo-gradient aggregation step in local SGD/DiLoCo and task arithmetic-based model merging, establishing a straightforward way to utilize merging methods in the context of distributed optimization. We then evaluate multiple state-of-the-art model merging methods in this setting and identify one method in particular, Iso-C, as a promising approach for improving DiLoCo. We find that DiLoCo SGD with Iso-C aggregation outperforms not only simple pseudo-gradient averaging but even the momentum-based DiLoCo, despite lacking a momentum mechanism itself. Building on this finding, we propose IsoLoCo, which adapts Iso-C for distributed training by equipping it with Nesterov momentum. Our empirical evaluations on language model pre-training across varying numbers of local workers show that IsoLoCo significantly outperforms DiLoCo, with the gap between them widening as the number of workers increases. This advantage remains present across model sizes and inner step counts, confirming that merging-inspired aggregation is an effective strategy for low-communication distributed training.

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

↑