arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.17672cs.DC
收藏

跨区域模型训练中的通信计算重叠与延迟补偿

Cross-region Model Training with Communication-Computation Overlapping and Delay Compensation

Ying Zhu, Yang Xu, Hongli Xu, Yunming Liao, Zhiwei Yao, Liusheng Huang

AI总结:

针对跨区域大模型训练中高延迟导致的通信阻塞和更新过时问题,提出CoCoDC框架,通过泰勒展开延迟补偿与自适应传输策略,实现通信计算重叠,显著提升训练效率与收敛速度。

摘要:

训练大型语言模型(LLMs)需要大量的计算资源,这通常需要聚合地理上分布的数据中心(即跨区域训练)。然而,广域网中的高通信延迟严重降低了传统分布式训练的效率。虽然像DiLoCo这样的方法减少了通信频率,但它们存在阻塞同步的问题。Streaming DiLoCo通过通信计算重叠缓解了这一问题,但由于延迟的全局更新和部分同步,引入了更新过时和模型不一致的问题。这些因素损害了收敛性,尤其是在需要激进重叠以掩盖高延迟的情况下。我们提出了CoCoDC,一种新颖的分布式训练框架,具有通信计算重叠和延迟补偿功能,以明确解决这些挑战。在CoCoDC框架内,我们专门开发了一种基于泰勒展开的新型延迟补偿策略,以有效缓解过时问题,以及一种自适应传输策略,动态调度模型片段同步以优化带宽使用并加速收敛。大量实验表明,CoCoDC在最终准确性和训练速度方面均优于DiLoCo和Streaming DiLoCo。具体来说,与Streaming DiLoCo相比,CoCoDC将达到相当困惑度所需的训练步骤减少了高达21.0%。我们的工作为可扩展且高效的跨区域LLM训练提供了有效的解决方案。

英文摘要:

Training large language models (LLMs) requires massive computational resources, often necessitating the aggregation of geographically distributed data centers (\ie, cross-region training). However, the high communication latency in wide-area networks severely degrades the efficiency of traditional distributed training. While methods like DiLoCo reduce communication frequency, they suffer from blocking synchronization. Streaming DiLoCo alleviates this issue via communication-computation overlapping but introduces update staleness and model inconsistency due to delayed global updates and partial synchronization. These factors impair convergence, especially when aggressive overlap is needed to mask high latency. We propose CoCoDC, a novel distributed training framework with communication-computation overlapping and delay compensation, to explicitly tackle these challenges. Within the CoCoDC framework, we specifically develop a novel Delay Compensation strategy based on Taylor expansion to effectively mitigate the staleness and an Adaptive Transmission strategy that dynamically schedules model fragment synchronization to optimize bandwidth usage and accelerate convergence. Extensive experiments highlight the superior performance of CoCoDC over both DiLoCo and Streaming DiLoCo regarding final accuracy and training speed. Specifically, CoCoDC reduces the training steps needed to reach a comparable perplexity by up to 21.0% compared to Streaming DiLoCo. Our work provides an effective solution for scalable and efficient cross-region LLM training.

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

↑