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

AACP:通过精确和自动的通道修剪进行模型压缩

AACP: Model Compression by Accurate and Automatic Channel Pruning

Tsinghua University(清华大学)

Lanbo Lin, Yujiu Yang, Zhenhua Guo

摘要:

最近,信道修剪被公式化为神经结构搜索(NAS)问题。然而,现有的基于NAS的方法受到巨大的计算成本和应用程序的可扩展性的挑战。如何同时处理多个稀疏性约束和加速基于NAS的信道修剪仍然是一个开放的挑战。在本文中,我们提出了一种新的准确和自动通道修剪(AACP)的方法来解决这些问题。该算法首先将模型的结构表示为结构向量,并引入剪枝步长向量来控制各层的压缩粒度。其次,AACP利用剪枝结构精度估计(PSAE),以加快性能估计过程。第三,提出了改进的差分进化算法(IDE),有效地搜索最优结构向量。由于集成开发环境的支持,AACP可以同时有效地处理FLOPs约束和模型尺寸约束。我们的方法可以很容易地应用于各种任务,并实现最先进的性能。在CIFAR 10上,我们的方法减少了ResNet 110的$65\%$ FLOPs,提高了$0.26\%$ top-1的准确性。在ImageNet上,我们减少了ResNet 50的$42\%$ FLOPs,但损失了$0.18\%$ top-1的精度,并减少了MobileNetV 2的$30\%$ FLOPs,但损失了$0.7\%$ top-1的精度。源代码将在发布后发布。

英文摘要:

Channel pruning is formulated as a neural architecture search (NAS) problem recently. However, existing NAS-based methods are challenged by huge computational cost and inflexibility of applications. How to deal with multiple sparsity constraints simultaneously and speed up NAS-based channel pruning are still open challenges. In this paper, we propose a novel Accurate and Automatic Channel Pruning (AACP) method to address these problems. Firstly, AACP represents the structure of a model as a structure vector and introduces a pruning step vector to control the compressing granularity of each layer. Secondly, AACP utilizes Pruned Structure Accuracy Estimator (PSAE) to speed up the performance estimation process. Thirdly, AACP proposes Improved Differential Evolution (IDE) algorithm to search the optimal structure vector effectively. Because of IDE, AACP can deal with FLOPs constraint and model size constraint simultaneously and efficiently. Our method can be easily applied to various tasks and achieve state of the art performance. On CIFAR10, our method reduces $65\%$ FLOPs of ResNet110 with an improvement of $0.26\%$ top-1 accuracy. On ImageNet, we reduce $42\%$ FLOPs of ResNet50 with a small loss of $0.18\%$ top-1 accuracy and reduce $30\%$ FLOPs of MobileNetV2 with a small loss of $0.7\%$ top-1 accuracy. The source code will be released after publication.

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

↑