arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.05875cs.AI
收藏

面向高效神经网络的类别感知剪枝

Class-Aware Pruning for Efficient Neural Networks

TU Darmstadt(达姆施塔特工业大学);TU Munich(慕尼黑工业大学);Zhejiang University(浙江大学);National Cheng Kung University(国立成功大学)

Mengnan Jiang, Jingcun Wang, Amro Eldebiky, Xunzhao Yin, Cheng Zhuo, Ing-Chao Lin, Grace Li Zhang

AI总结:

针对DNNs计算成本高难以部署的问题,提出类别感知剪枝技术,通过评估滤波器对类别的重要性并移除冗余滤波器,在保持高精度的同时显著减少了权重和FLOPs。

摘要:

深度神经网络(DNNs)在各个领域展现出了显著的成功。然而,DNNs中大量的浮点运算(FLOPs)对其在资源受限的应用(如边缘设备)中的部署构成了挑战。为了解决这一问题,人们引入了剪枝技术来降低执行DNNs的计算成本。以往的剪枝策略主要基于权重值、梯度值和激活输出。与以往的剪枝方案不同,本文提出了一种类别感知剪枝技术来压缩DNNs,这为降低DNNs的计算成本提供了一种全新视角。在每次迭代中,会对神经网络训练进行修改以促进类别感知剪枝。随后,评估卷积滤波器相对于类别数量的重要性。仅对少数类别重要的滤波器将被移除。接着对神经网络进行重新训练,以弥补所造成的精度损失。剪枝迭代持续进行,直到不再有滤波器可被移除为止,这表明剩余的滤波器对许多类别都非常重要。该剪枝技术在准确率、剪枝比例和FLOPs减少方面均优于以往的剪枝方案。实验结果证实,这种类别感知剪枝技术能够在保持高推理准确率的同时,显著减少权重数量和FLOPs。

英文摘要:

Deep neural networks (DNNs) have demonstrated remarkable success in various fields. However, the large number of floating-point operations (FLOPs) in DNNs poses challenges for their deployment in resource-constrained applications, e.g., edge devices. To address the problem, pruning has been introduced to reduce the computational cost in executing DNNs. Previous pruning strategies are based on weight values, gradient values and activation outputs. Different from previous pruning solutions, in this paper, we propose a class-aware pruning technique to compress DNNs, which provides a novel perspective to reduce the computational cost of DNNs. In each iteration, the neural network training is modified to facilitate the class-aware pruning. Afterwards, the importance of filters with respect to the number of classes is evaluated. The filters that are only important for a few number of classes are removed. The neural network is then retrained to compensate for the incurred accuracy loss. The pruning iterations end until no filter can be removed anymore, indicating that the remaining filters are very important for many classes. This pruning technique outperforms previous pruning solutions in terms of accuracy, pruning ratio and the reduction of FLOPs. Experimental results confirm that this class-aware pruning technique can significantly reduce the number of weights and FLOPs, while maintaining a high inference accuracy.

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

↑