ACP:基于聚类和群体智能优化的CNN自动信道修剪
ACP: Automatic Channel Pruning via Clustering and Swarm Intelligence Optimization for CNN
摘要:
近年来,随着卷积神经网络(CNN)的深入和广泛,对数据量和硬件资源的要求也逐渐提高。同时,CNN也揭示了一些任务中的显著冗余。现有的基于幅度的剪枝方法是有效的,但压缩网络的性能是不可预测的。基于结构灵敏度的剪枝算法精度损失较小,但剪枝过程耗时且算法复杂度较高。在这篇文章中,我们提出了一种新的自动通道修剪方法(ACP)。具体来说,我们首先通过特征图的相似性进行逐层通道聚类,以对网络进行初步修剪。然后引入种群初始化方法,将剪枝后的结构转化为候选种群。最后,我们进行搜索和优化迭代粒子群优化(PSO)的基础上找到最佳的压缩结构。然后重新训练紧凑网络以减轻修剪造成的准确性损失。我们的方法在三个不同的分类数据集CIFAR-10/100和ILSVRC-2012上针对几种最先进的CNN进行了评估。在ILSVRC-2012上,当去除ResNet-50的64.36%参数和63.34%浮点运算(FLOP)时,Top-1和Top-5的准确率下降不到0.9%。此外,我们证明了在不损害整体性能的情况下,可以在目标检测数据集PASCAL VOC上将SSD压缩50%以上。进一步验证了所提出的方法也可以应用于其他CNN和应用场景。
英文摘要:
As the convolutional neural network (CNN) gets deeper and wider in recent years, the requirements for the amount of data and hardware resources have gradually increased. Meanwhile, CNN also reveals salient redundancy in several tasks. The existing magnitude-based pruning methods are efficient, but the performance of the compressed network is unpredictable. While the accuracy loss after pruning based on the structure sensitivity is relatively slight, the process is time-consuming and the algorithm complexity is notable. In this article, we propose a novel automatic channel pruning method (ACP). Specifically, we firstly perform layer-wise channel clustering via the similarity of the feature maps to perform preliminary pruning on the network. Then a population initialization method is introduced to transform the pruned structure into a candidate population. Finally, we conduct searching and optimizing iteratively based on the particle swarm optimization (PSO) to find the optimal compressed structure. The compact network is then retrained to mitigate the accuracy loss from pruning. Our method is evaluated against several state-of-the-art CNNs on three different classification datasets CIFAR-10/100 and ILSVRC-2012. On the ILSVRC-2012, when removing 64.36% parameters and 63.34% floating-point operations (FLOPs) of ResNet-50, the Top-1 and Top-5 accuracy drop are less than 0.9%. Moreover, we demonstrate that without harming overall performance it is possible to compress SSD by more than 50% on the target detection dataset PASCAL VOC. It further verifies that the proposed method can also be applied to other CNNs and application scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。