arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.00929cs.LGcs.DC
收藏

神经网络训练的调度优化技术

Scheduling Optimization Techniques for Neural Network Training

Hanyang University(汉阳大学)

Hyungjun Oh, Hyungjun Oh, HyeongJu Kim, Jiwon Seo

摘要:

神经网络训练需要大量的计算,因此GPU通常用于加速。本文提出了一种用于神经网络训练的有效调度技术--无序反向传播(ooo)。通过利用梯度计算的依赖性,ooo backprop可以重新排序它们的执行,以充分利用GPU资源。我们表明,在单GPU,数据并行,和流水线并行训练的GPU利用率可以通过应用ooo反向传播和优先级的关键操作,通常可以提高。我们提出了三种基于面向对象反向传播的调度算法。对于单GPU训练,我们使用多流乱序计算进行调度,以掩盖内核启动开销。在数据并行训练中,我们对梯度计算进行重新排序,以最大化计算和参数通信的重叠;在流水线并行训练中,我们用十二个神经网络来评估我们的优化,包括一个轻量级的计算机视觉模型(MobileNet)和大型NLP模型(BERT和GPT-3),最多48个V100 GPU。我们的调度算法有效地提高了单GPU训练以及数据和流水线的性能。与现有技术的训练系统的相应状态相比,对于单GPU、数据并行和流水线并行训练,吞吐量显著提高。

英文摘要:

Neural network training requires a large amount of computation and thus GPUs are often used for the acceleration. While they improve the performance, GPUs are underutilized during the training.This paper proposes out-of-order (ooo) backprop, an effective scheduling technique for neural network training. By exploiting the dependencies of gradient computations, ooo backprop enables to reorder their executions to make the most of the GPU resources. We show that the GPU utilization in single-GPU, data-parallel, and pipeline-parallel training can be commonly improve by applying ooo back-prop and prioritizing critical operations. We propose three scheduling algorithms based on ooo backprop. For single-GPU training, we schedule with multi-stream out-of-order computation to mask the kernel launch overhead. In data-parallel training, we reorder the gradient computations to maximize the overlapping of computation and parameter communication; in pipeline-parallel training, we prioritize critical gradient computations to reduce the pipeline stalls.We evaluate our optimizations with twelve neural networks including a light-weight computer vision model (MobileNet) and largeNLP models (BERT and GPT-3) with up to forty eight V100 GPUs.Our scheduling algorithms effectively improve the performance of single-GPU training as well as data- and pipeline-parallel training.Compared to the respective state of the art training systems, the throughput is substantially improved for single-GPU, data-parallel, and pipeline-parallel training.

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

↑