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

使用结构化数据梯度剪枝加速DNN训练

Accelerating DNN Training with Structured Data Gradient Pruning

Franklin & Marshall College(富兰克林与马歇尔学院)

Bradley McDanel, Helia Dinh, John Magallanes

摘要:

权重修剪是一种通过减少训练过程中模型参数的数量来使深度神经网络(DNN)推理在计算上更高效的技术。然而,大多数权重修剪技术通常不会加速DNN训练,甚至可能需要更多的迭代来达到模型收敛。在这项工作中,我们提出了一种新的结构化数据梯度修剪(SDGP)方法,可以在不影响模型收敛的情况下加快训练速度。这种方法强制执行一个特定的稀疏结构,其中矩阵中的每M个元素中只有N个可以是非零的,使其适合硬件加速。现代加速器(如Nvidia A100 GPU)支持这种类型的结构化稀疏性,即每4个元素中有2个非零。假设硬件支持2:4稀疏度,我们的方法可以实现15- 25%的总训练时间减少,而不会对性能产生显着影响。源代码和预训练模型可在\url{https://github.com/BradMcDanel/sdgp}上获得。

英文摘要:

Weight pruning is a technique to make Deep Neural Network (DNN) inference more computationally efficient by reducing the number of model parameters over the course of training. However, most weight pruning techniques generally does not speed up DNN training and can even require more iterations to reach model convergence. In this work, we propose a novel Structured Data Gradient Pruning (SDGP) method that can speed up training without impacting model convergence. This approach enforces a specific sparsity structure, where only N out of every M elements in a matrix can be nonzero, making it amenable to hardware acceleration. Modern accelerators such as the Nvidia A100 GPU support this type of structured sparsity for 2 nonzeros per 4 elements in a reduction. Assuming hardware support for 2:4 sparsity, our approach can achieve a 15-25\% reduction in total training time without significant impact to performance. Source code and pre-trained models are available at \url{https://github.com/BradMcDanel/sdgp}.

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

↑