在白盒中执行CNN信道修剪
Carrying out CNN Channel Pruning in a White Box
摘要:
长期以来,人们一直在研究通道修剪来压缩CNN,这大大降低了整体计算量。现有的工作实现通道修剪在一个无法解释的方式,这往往会减少最终的分类错误,而没有考虑每个通道的内部影响。在本文中,我们在白盒中进行通道修剪。通过对不同通道激活的特征图进行深度可视化,我们观察到不同通道对图像分类中不同类别的贡献不同。受此启发,我们选择保留对大多数类别有贡献的渠道。具体来说,为了模拟每个通道对区分类别的贡献,我们为每个通道开发了一个类掩码,以动态训练方式w.r.t.输入图像的类别。在学习的类掩码的基础上,我们执行全局投票机制,以去除类别歧视较少的通道。最后,进行微调过程以恢复修剪模型的性能。据我们所知,这是第一次,CNN解释性理论被认为是指导信道修剪。对代表性的图像分类任务的大量实验表明,我们的白盒优于许多国家的最先进的。例如,在CIFAR-10上,它降低了65.23%的FLOP,甚至在ResNet-110上提高了0.62%的精度。在ILSVRC-2012上,白盒实现了45.6%的FLOP减少,而ResNet-50的前1精度仅损失了0.83%。
英文摘要:
Channel Pruning has been long studied to compress CNNs, which significantly reduces the overall computation. Prior works implement channel pruning in an unexplainable manner, which tends to reduce the final classification errors while failing to consider the internal influence of each channel. In this paper, we conduct channel pruning in a white box. Through deep visualization of feature maps activated by different channels, we observe that different channels have a varying contribution to different categories in image classification. Inspired by this, we choose to preserve channels contributing to most categories. Specifically, to model the contribution of each channel to differentiating categories, we develop a class-wise mask for each channel, implemented in a dynamic training manner w.r.t. the input image's category. On the basis of the learned class-wise mask, we perform a global voting mechanism to remove channels with less category discrimination. Lastly, a fine-tuning process is conducted to recover the performance of the pruned model. To our best knowledge, it is the first time that CNN interpretability theory is considered to guide channel pruning. Extensive experiments on representative image classification tasks demonstrate the superiority of our White-Box over many state-of-the-arts. For instance, on CIFAR-10, it reduces 65.23% FLOPs with even 0.62% accuracy improvement for ResNet-110. On ILSVRC-2012, White-Box achieves a 45.6% FLOPs reduction with only a small loss of 0.83% in the top-1 accuracy for ResNet-50.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。