arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1907.10134cs.LGcs.DCstat.ML
收藏

BPPSA:基于并行扫描算法的尺度反向传播算法

BPPSA: Scaling Back-propagation by Parallel Scan Algorithm

University of Toronto(多伦多大学);University of California, Berkeley(加利福尼亚大学伯克利分校)

Shang Wang, Yifan Bai, Gennady Pekhimenko

摘要:

在单个计算设备的性能趋于稳定的时代,软件必须被设计为在大规模并行系统上扩展,以获得更好的运行时性能。然而,在训练深度学习模型的上下文中,流行的反向传播(BP)算法在梯度计算过程中施加了强烈的顺序依赖性。在模型并行性下,BP需要$Θ(n)$步骤来完成,这阻碍了其在并行系统上的可扩展性($n$表示模型被划分成的计算设备的数量)。在这项工作中,为了提高BP的可扩展性,我们重新制定BP到一个扫描操作,这是一个原始的,执行一个顺序聚合的值序列,并返回在每一步的部分结果。然后,我们可以通过我们的Blelloch扫描算法的修改版本,理论上需要$Θ(\log n)$步骤,在并行系统上扩展BP的这种重构。我们评估了我们的方法在香草递归神经网络(RNN)训练与合成数据集和RNN与门控递归单元(GRU)训练与IRMAS数据集,并证明了高达$2.75\times$加速的整体训练时间和$108\times$加速的向后通过。我们还证明了修剪网络的再训练可以成为我们方法的一个实际用例。

英文摘要:

In an era when the performance of a single compute device plateaus, software must be designed to scale on massively parallel systems for better runtime performance. However, in the context of training deep learning models, the popular back-propagation (BP) algorithm imposes a strong sequential dependency in the process of gradient computation. Under model parallelism, BP takes $Θ(n)$ steps to complete which hinders its scalability on parallel systems ($n$ represents the number of compute devices into which a model is partitioned). In this work, in order to improve the scalability of BP, we reformulate BP into a scan operation which is a primitive that performs an in-order aggregation on a sequence of values and returns the partial result at each step. We can then scale such reformulation of BP on parallel systems by our modified version of the Blelloch scan algorithm which theoretically takes $Θ(\log n)$ steps. We evaluate our approach on a vanilla Recurrent Neural Network (RNN) training with synthetic datasets and a RNN with Gated Recurrent Units (GRU) training with the IRMAS dataset, and demonstrate up to $2.75\times$ speedup on the overall training time and $108\times$ speedup on the backward pass. We also demonstrate that the retraining of pruned networks can be a practical use case of our method.

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

↑