2025-06-27 · 专家 · 机器学习

DiLoCoX: A Low-Communication Large-Scale Training Framework for Decentralized Cluster

DiLoCoX是一种低通信大规模去中心化集群训练框架,能够在低带宽网络环境下高效地训练超过1000亿参数的基础模型。

更新于 2025-07-02。作者:Ji Qi、WenPeng Zhu、Li Li、Ming Wu、YingJun Wu、Wu He、Xun Gao、Jason Zeng、Michael Heinrich。

中文摘要

基础模型(特别是大型语言模型,LLMs)的分布式训练需要高水平的信息交流。因此,它高度依赖于具有快速和可靠互连的集中式集群。当处理超过1000亿参数的模型时,我们能否在低速网络上进行训练,从而释放分布式集群的力量?在这篇论文中,我们提出了DiLoCoX,一个低通信大规模分布式集群训练框架。它结合了流水线并行和双重优化策略、通信和本地训练的一步延迟重叠,以及自适应梯度压缩方案。这种组合显著提高了参数规模和模型预训练的速度。我们通过收敛的理论分析,证明了通信一步延迟重叠和本地训练,以及自适应梯度压缩方案的益处。经验表明,DiLoCoX能够在1Gbps网络上预训练一个107B的基础模型。与传统的AllReduce相比,DiLoCoX可以在分布式训练中实现357倍的加速,同时在模型收敛上保持微小的下降。据我们所知,这是第一个成功应用于超过1000亿参数模型的分布式训练框架。

英文摘要

The distributed training of foundation models, particularly large language models (LLMs), demands a high level of communication. Consequently, it is highly dependent on a centralized cluster with fast and reliable interconnects. Can we conduct training on slow networks and thereby unleash the power of decentralized clusters when dealing with models exceeding 100 billion parameters? In this paper, we propose DiLoCoX, a low-communication large-scale decentralized cluster training framework. It combines Pipeline Parallelism with Dual Optimizer Policy, One-Step-Delay Overlap of Communication and Local Training, and an Adaptive Gradient Compression Scheme. This combination significantly improves the scale of parameters and the speed of model pre-training. We justify the benefits of one-step-delay overlap of communication and local training, as well as the adaptive gradient compression scheme, through a theoretical analysis of convergence. Empirically, we demonstrate that DiLoCoX is capable of pre-training a 107B foundation model over a 1Gbps network. Compared to vanilla AllReduce, DiLoCoX can achieve a 357x speedup in distributed training while maintaining negligible degradation in model convergence. To the best of our knowledge, this is the first decentralized training framework successfully applied to models with over 100 billion parameters.

解读

一句话总结

DiLoCoX是一种低通信大规模去中心化集群训练框架,能够在低带宽网络环境下高效地训练超过1000亿参数的基础模型。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源