arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.07617cs.LGcs.AIcs.ARcs.PF
收藏

基于衰减剪枝模板的N:M结构稀疏度训练算法

Training Recipe for N:M Structured Sparsity with Decaying Pruning Mask

Georgia Tech(佐治亚理工学院);Google Research(谷歌研究院);Google(谷歌)

Sheng-Chun Kao, Amir Yazdanbakhsh, Suvinay Subramanian, Shivani Agrawal, Utku Evci, Tushar Krishna

摘要:

稀疏性已经成为压缩和加速深度神经网络(DNN)的有前途的方法之一。在不同的稀疏性类别中,结构化稀疏性由于其在现代加速器上的高效执行而受到更多的关注。特别地,N:M稀疏性是有吸引力的,因为已经存在可以利用某些形式的N:M结构化稀疏性来产生更高计算效率的硬件加速器架构。在这项工作中,我们专注于N:M稀疏性,并在模型精度和计算成本(FLOPs)之间的权衡方面广泛研究和评估N:M稀疏性的各种训练配方。在此基础上,我们提出了两种新的基于衰减的剪枝方法,即“剪枝掩模衰减”和“稀疏结构衰减”。我们的评估表明,这些方法始终提供最先进的(SOTA)模型的准确性,与非结构化稀疏性,基于transformer的模型翻译任务。使用新的训练配方提高稀疏模型的准确性是以总训练计算(FLOPs)的边际增加为代价的。

英文摘要:

Sparsity has become one of the promising methods to compress and accelerate Deep Neural Networks (DNNs). Among different categories of sparsity, structured sparsity has gained more attention due to its efficient execution on modern accelerators. Particularly, N:M sparsity is attractive because there are already hardware accelerator architectures that can leverage certain forms of N:M structured sparsity to yield higher compute-efficiency. In this work, we focus on N:M sparsity and extensively study and evaluate various training recipes for N:M sparsity in terms of the trade-off between model accuracy and compute cost (FLOPs). Building upon this study, we propose two new decay-based pruning methods, namely "pruning mask decay" and "sparse structure decay". Our evaluations indicate that these proposed methods consistently deliver state-of-the-art (SOTA) model accuracy, comparable to unstructured sparsity, on a Transformer-based model for a translation task. The increase in the accuracy of the sparse model using the new training recipes comes at the cost of marginal increase in the total training compute (FLOPs).

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

↑