arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.13236cs.LGcs.AI
收藏

ADA-GP:通过自适应梯度预测加速深度神经网络训练

ADA-GP: Accelerating DNN Training By Adaptive Gradient Prediction

Texas A&M University(德州农工大学)

Vahid Janfaza, Shantanu Mandal, Farabi Mahmud, Abdullah Muzahid

AI总结:

ADA-GP 通过小型神经网络自适应预测梯度并在真实梯度与预测梯度间交替训练,配合张量重组和硬件扩展,在十五个 DNN 模型上实现平均 1.47 倍加速且精度不降、能耗降低 34%。

摘要:

神经网络训练本质上是顺序执行的:各层依次完成前向传播,随后从最后一层开始基于损失函数计算梯度并进行反向传播。这种顺序计算会显著减慢神经网络训练速度,尤其是对于更深的网络。预测技术已在计算机体系结构的许多领域成功用于加速顺序处理。因此,我们提出 ADA-GP,它自适应地利用梯度预测来加速深度神经网络(DNN)训练,同时保持精度。ADA-GP 通过引入一个小型神经网络来预测 DNN 模型不同层的梯度。ADA-GP 采用一种新颖的张量重组方法,使预测大量梯度变得可行。ADA-GP 在使用反向传播梯度的 DNN 训练和使用预测梯度的 DNN 训练之间交替进行。ADA-GP 自适应地调整梯度预测的使用时机和持续时间,以在精度和性能之间取得平衡。最后但同样重要的是,我们提供了在典型 DNN 加速器中的详细硬件扩展方案,以实现梯度预测带来的加速潜力。我们在十五个 DNN 模型上的大量实验表明,与基线模型相比,ADA-GP 可以实现平均 1.47 倍的加速,同时保持相似甚至更高的精度。此外,由于减少了片外存储器访问,与基线加速器相比,它平均节省 34% 的能耗。

英文摘要:

Neural network training is inherently sequential where the layers finish the forward propagation in succession, followed by the calculation and back-propagation of gradients (based on a loss function) starting from the last layer. The sequential computations significantly slow down neural network training, especially the deeper ones. Prediction has been successfully used in many areas of computer architecture to speed up sequential processing. Therefore, we propose ADA-GP, which uses gradient prediction adaptively to speed up deep neural network (DNN) training while maintaining accuracy. ADA-GP works by incorporating a small neural network to predict gradients for different layers of a DNN model. ADA-GP uses a novel tensor reorganization method to make it feasible to predict a large number of gradients. ADA-GP alternates between DNN training using backpropagated gradients and DNN training using predicted gradients. ADA-GP adaptively adjusts when and for how long gradient prediction is used to strike a balance between accuracy and performance. Last but not least, we provide a detailed hardware extension in a typical DNN accelerator to realize the speed up potential from gradient prediction. Our extensive experiments with fifteen DNN models show that ADA-GP can achieve an average speed up of 1.47X with similar or even higher accuracy than the baseline models. Moreover, it consumes, on average, 34% less energy due to reduced off-chip memory accesses compared to the baseline accelerator.

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

↑