一步梯度延迟并非大规模异步流水线并行LLM预训练的障碍
One-Step Gradient Delay is Not a Barrier for Large-Scale Asynchronous Pipeline Parallel LLM Pretraining
AI总结:
本文挑战异步流水线并行中一步梯度延迟导致不稳定的普遍观点,发现延迟影响取决于优化器选择,Muon等新优化器具有鲁棒性,并提出基于误差反馈的修正方法,在10B参数模型上实现与同步训练相当的性能。
摘要:
现代大规模LLM预训练受益于流水线并行;然而,同步实现在流水线气泡期间使GPU空闲,浪费计算资源。异步流水线并行消除了这些气泡,以梯度陈旧为代价最大化吞吐量。在异步调度中,PipeDream-2BW特别有吸引力:与原始PipeDream调度不同,它确保无论流水线深度如何,梯度延迟恒定为一步。然而,由于其采用仍然有限,因为普遍认为在陈旧性下优化本质上不稳定。在这项工作中,我们挑战这一假设,证明一步延迟下的性能下降强烈依赖于优化器选择,而非内在限制。我们提供了首次全面的实证分析,表明虽然AdamW(PipeDream-2BW引入时的主要优化器)确实遭受严重退化,但最近的方法如Muon在一步延迟下表现出强鲁棒性。我们引入了一种与优化器无关的基于误差反馈的修正,以进一步减轻延迟影响。我们提供了支持性理论分析,证明了Muon在有和没有此修正下的收敛性。在高达10B参数的模型上的广泛评估证实,我们的策略弥合了与同步训练的性能差距,突显了异步流水线并行在大规模下的实际潜力。
英文摘要:
Modern large-scale LLM pretraining benefits from utilizing Pipeline Parallelism; however, synchronous implementations leave GPUs idle during pipeline bubbles, wasting computational resources. Asynchronous Pipeline Parallelism eliminates these bubbles, maximizing throughput at the cost of gradient staleness. Among asynchronous schedules, PipeDream-2BW is particularly appealing: unlike the original PipeDream schedule, it ensures a constant one-step gradient delay regardless of pipeline depth. However, its adoption remains limited due to the common belief that optimizing under staleness is fundamentally unstable. In this work, we challenge this assumption, demonstrating that degradation under one-step delay depends strongly on optimizer choice rather than being an intrinsic limitation. We provide the first comprehensive empirical analysis showing that while AdamW, the predominant optimizer at the time when PipeDream-2BW was introduced, indeed suffers from severe degradation, recent methods like Muon exhibit strong robustness under a one-step delay. We introduce an optimizer-agnostic Error Feedback-inspired correction to further mitigate delay effects. We provide supporting theoretical analysis demonstrating convergence for Muon with and without this correction. Extensive evaluation on models up to 10B parameters confirms that our strategies bridge the performance gap with synchronous training, highlighting the practical potential of asynchronous pipeline parallelism at scale.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。