快速分布式DNN培训的高效流水线规划
Efficient Pipeline Planning for Expedited Distributed DNN Training
摘要:
为了训练现代大型DNN模型,最近出现了流水线并行,它将模型分布在GPU上,使不同的设备能够处理流水线中的不同微批。早期的流水线设计允许多个版本的模型参数共存(类似于异步训练),并且不能确保与没有流水线相同的模型收敛和准确性性能。最近提出了同步流水线,它通过在训练迭代之间实施同步屏障来确保模型性能。然而,同步屏障需要等待来自所有微批次的梯度聚合,从而延迟训练进度。需要优化的流水线规划来最小化这种等待,从而最小化训练时间,这在文献中还没有得到很好的研究。本文设计了高效的、接近最优的算法,用于在任意GPU间连接上加速现代大型DNN的同步流水线并行训练。我们的算法框架包括两个组件:一个管道分区和设备映射算法,和一个管道调度器,决定处理顺序的分区,这一起最大限度地减少每次迭代的训练时间的微批处理。我们进行了深入的理论分析,广泛的测试床实验和跟踪驱动的模拟,并证明我们的计划可以加快训练高达157%,与最先进的设计相比。
英文摘要:
To train modern large DNN models, pipeline parallelism has recently emerged, which distributes the model across GPUs and enables different devices to process different microbatches in pipeline. Earlier pipeline designs allow multiple versions of model parameters to co-exist (similar to asynchronous training), and cannot ensure the same model convergence and accuracy performance as without pipelining. Synchronous pipelining has recently been proposed which ensures model performance by enforcing a synchronization barrier between training iterations. Nonetheless, the synchronization barrier requires waiting for gradient aggregation from all microbatches and thus delays the training progress. Optimized pipeline planning is needed to minimize such wait and hence the training time, which has not been well studied in the literature. This paper designs efficient, near-optimal algorithms for expediting synchronous pipeline-parallel training of modern large DNNs over arbitrary inter-GPU connectivity. Our algorithm framework comprises two components: a pipeline partition and device mapping algorithm, and a pipeline scheduler that decides processing order of microbatches over the partitions, which together minimize the per-iteration training time. We conduct thorough theoretical analysis, extensive testbed experiments and trace-driven simulation, and demonstrate our scheme can accelerate training up to 157% compared with state-of-the-art designs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。