LayerPipe:通过层内和层间梯度流水线和多处理器调度加速深度神经网络训练
LayerPipe: Accelerating Deep Neural Network Training by Intra-Layer and Inter-Layer Gradient Pipelining and Multiprocessor Scheduling
摘要:
训练神经网络所需的时间随着大小、复杂性和深度而增加。通过反向传播训练模型参数固有地创建反馈回路。这些循环阻碍了层内和连续层之间的任务的高效流水线和调度。先前的方法,例如PipeDream,已经利用延迟梯度的使用来实现层间流水线。然而,这些方法将整个反向传播视为单个任务;这导致计算时间增加和处理器利用率不足。本文提出了一种新的优化方法,其中相对于权重和激活函数的梯度计算被独立地考虑,因此,这些可以并行计算。这被称为层内优化。另外,关于激活函数的梯度计算被进一步划分为两个部分并且被分布到两个连续层。这导致平衡调度,其中每一层的计算时间相同。这被称为层间优化。所提出的系统,称为LayerPipe,减少了训练所需的时钟周期数,同时最大限度地提高处理器利用率,最小的处理器间通信开销。与PipeDream相比,LayerPipe在7到9个处理器的情况下实现了平均25%和80%以上的加速比,并且通信开销更少。
英文摘要:
The time required for training the neural networks increases with size, complexity, and depth. Training model parameters by backpropagation inherently creates feedback loops. These loops hinder efficient pipelining and scheduling of the tasks within the layer and between consecutive layers. Prior approaches, such as PipeDream, have exploited the use of delayed gradient to achieve inter-layer pipelining. However, these approaches treat the entire backpropagation as a single task; this leads to an increase in computation time and processor underutilization. This paper presents novel optimization approaches where the gradient computations with respect to the weights and the activation functions are considered independently; therefore, these can be computed in parallel. This is referred to as intra-layer optimization. Additionally, the gradient computation with respect to the activation function is further divided into two parts and distributed to two consecutive layers. This leads to balanced scheduling where the computation time of each layer is the same. This is referred to as inter-layer optimization. The proposed system, referred to as LayerPipe, reduces the number of clock cycles required for training while maximizing processor utilization with minimal inter-processor communication overhead. LayerPipe achieves an average speedup of 25% and upwards of 80% with 7 to 9 processors with less communication overhead when compared to PipeDream.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。