arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.14009cs.DCcs.LG
收藏

ReCycle:使用流水线自适应实现大型DNN的弹性训练

ReCycle: Resilient Training of Large DNNs using Pipeline Adaptation

Stanford University(斯坦福大学)

Swapnil Gandhi, Mark Zhao, Athinagoras Skiadopoulos, Christos Kozyrakis

AI总结:

针对大规模DNN训练中频繁故障导致吞吐量下降的问题,提出ReCycle系统,利用数据并行冗余和流水线气泡动态重路由微批次,并通过反向传播解耦与优化器步骤交错避免同步,实现无需备用服务器的容错训练,吞吐量最高比Oobleck和Bamboo提升1.64倍。

摘要:

训练大型深度神经网络(DNN)模型需要数千个GPU,历时数天或数周。在这种规模下,故障频繁发生,并且会对训练吞吐量产生巨大影响。随着模型规模的增长,利用备用GPU服务器来减轻性能损失变得越来越昂贵。ReCycle是一个旨在存在故障时实现高效DNN训练的系统,且不依赖备用服务器。它利用了分布式训练系统中固有的功能冗余——即跨数据并行组的服务器存储相同的模型参数——以及每个数据并行组内的流水线调度气泡。当服务器发生故障时,ReCycle动态地将微批次重新路由到数据并行对等节点,从而在出现多个故障的情况下也能实现不间断训练。然而,这种重新路由可能会在流水线阶段之间造成不平衡,导致训练吞吐量降低。为了解决这个问题,ReCycle引入了两个关键优化,以确保重新路由的微批次在原始流水线调度的气泡内得到处理。首先,它将反向传播解耦为两个阶段:一个用于计算输入的梯度,另一个用于计算参数的梯度。其次,它通过交错执行优化器步骤来避免跨流水线阶段的同步。这些优化共同实现了自适应的流水线调度,能够最小化甚至在故障期间消除训练吞吐量的下降。我们描述了ReCycle的原型,并表明它在多个故障下实现了高训练吞吐量,分别比最近提出的容错训练方案Oobleck和Bamboo高出高达1.46倍和1.64倍。

英文摘要:

Training large Deep Neural Network (DNN) models requires thousands of GPUs over the course of several days or weeks. At this scale, failures are frequent and can have a big impact on training throughput. Utilizing spare GPU servers to mitigate performance loss becomes increasingly costly as model sizes grow. ReCycle is a system designed for efficient DNN training in the presence of failures, without relying on spare servers. It exploits the inherent functional redundancy in distributed training systems -- where servers across data-parallel groups store the same model parameters -- and pipeline schedule bubbles within each data-parallel group. When servers fails, ReCycle dynamically re-routes micro-batches to data-parallel peers, allowing for uninterrupted training despite multiple failures. However, this re-routing can create imbalances across pipeline stages, leading to reduced training throughput. To address this, ReCycle introduces two key optimizations that ensure re-routed micro-batches are processed within the original pipeline schedule's bubbles. First, it decouples the backward pass into two phases: one for computing gradients for the input and another for calculating gradients for the parameters. Second, it avoids synchronization across pipeline stages by staggering the optimizer step. Together, these optimizations enable adaptive pipeline schedules that minimize or even eliminate training throughput degradation during failures. We describe a prototype for ReCycle and show that it achieves high training throughput under multiple failures, outperforming recent proposals for fault-tolerant training such as Oobleck and Bamboo by up to $1.46\times$ and $1.64\times$, respectively.

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

↑