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

自动神经网络剪枝,有效保持模型精度

Automatic Neural Network Pruning that Efficiently Preserves the Model Accuracy

Nota AI GmbH(Nota AI 有限公司)

Thibault Castells, Seul-Ki Yeom

摘要:

神经网络的性能在过去几年中得到了显著的提高,但代价是每秒浮点运算(FLOP)的数量不断增加。然而,当计算资源有限时,更多的FLOP可能是一个问题。作为解决这个问题的一种尝试,修剪滤波器是一种常见的解决方案,但大多数现有的修剪方法不能有效地保持模型的准确性,因此需要大量的微调时期。在本文中,我们提出了一种自动修剪方法,该方法可以学习保留哪些神经元,以保持模型的准确性,同时将FLOP减少到预定义的目标。为了完成这项任务,我们引入了一个可训练的瓶颈,只需要一个单一的epoch,25.6%(CIFAR-10)或7.49%(ILSVRC 2012)的数据集来学习哪些过滤器要修剪。在不同结构和数据集上的实验表明,该方法不仅可以保持剪枝后的准确性,而且在微调后优于现有方法。我们在ResNet-50上实现了52.00%的FLOPs减少,修剪后的Top-1准确率为47.51%,在ILSVRC 2012上进行微调后的最先进(SOTA)准确率为76.63%。代码可在https://github.com/nota-github/autobot_AAAI23获得。

英文摘要:

Neural networks performance has been significantly improved in the last few years, at the cost of an increasing number of floating point operations per second (FLOPs). However, more FLOPs can be an issue when computational resources are limited. As an attempt to solve this problem, pruning filters is a common solution, but most existing pruning methods do not preserve the model accuracy efficiently and therefore require a large number of finetuning epochs. In this paper, we propose an automatic pruning method that learns which neurons to preserve in order to maintain the model accuracy while reducing the FLOPs to a predefined target. To accomplish this task, we introduce a trainable bottleneck that only requires one single epoch with 25.6% (CIFAR-10) or 7.49% (ILSVRC2012) of the dataset to learn which filters to prune. Experiments on various architectures and datasets show that the proposed method can not only preserve the accuracy after pruning but also outperform existing methods after finetuning. We achieve a 52.00% FLOPs reduction on ResNet-50, with a Top-1 accuracy of 47.51% after pruning and a state-of-the-art (SOTA) accuracy of 76.63% after finetuning on ILSVRC2012. Code available at https://github.com/nota-github/autobot_AAAI23.

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

↑