arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.29664cs.DCcs.LG
收藏

AMDP:面向大规模模型训练的异步多方向流水线并行

AMDP: Asynchronous Multi-Directional Pipeline Parallelism for Large-Scale Models Training

State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China(区块链与数据安全国家重点实验室,浙江大学,杭州,中国);College of Computer Science and Technology, Zhejiang University, Hangzhou, China(计算机科学与技术学院,浙江大学,杭州,中国)

Ling Chen, Houming Wu, Wenjie Yu

AI总结:

针对异步流水线并行中参数不匹配导致收敛退化的问题,提出AMDP方法,通过限制流水线第一阶段处理小批量数量、启动多条并发流水线并自适应调整数量、以及跨小批量累积梯度后单次更新,在保持高利用率的同时加速训练并保证收敛。

摘要:

流水线并行对于大规模模型训练至关重要,但现有的异步方法常因前向和反向传播之间的参数不匹配而损害收敛性。我们提出异步多方向流水线并行(AMDP)来缓解此问题,同时保持高利用率。AMDP限制每个流水线的第一阶段在反向传播前最多处理两个小批量,从而限制了前向和反向传播之间的参数更新次数。为减轻由此产生的流水线气泡,AMDP启动多条并发流水线,并根据流水线深度自适应调整其数量。此外,AMDP跨小批量累积梯度并在一次更新中应用,确保只有有限数量的小批量经历参数不匹配,且限制在一个优化步骤内。在GPT和BERT风格模型上的实验表明,AMDP在保持收敛的同时显著加速了训练。

英文摘要:

Pipeline parallelism is essential for large-scale model training, but existing asynchronous approaches often degrade convergence due to parameter mismatch between forward and backward passes. We propose Asynchronous Multi-Directional Pipeline parallelism (AMDP) to mitigate this issue while sustaining high utilization. AMDP limits the first stage of each pipeline to process at most two minibatches before backpropagation, bounding the number of parameter updates between forward and backward passes. To alleviate the resulting pipeline bubbles, AMDP launches multiple concurrent pipelines and adapts their number according to pipeline depth. In addition, AMDP accumulates gradients across minibatches and applies them in a single update, ensuring that only a bounded number of minibatches experience parameter mismatch, limited to within one optimization step. Experiments on GPT- and BERT-style models demonstrate that AMDP significantly accelerates training while preserving convergence.

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

↑