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

基于生成对抗学习的最优结构化CNN剪枝

Towards Optimal Structured CNN Pruning via Generative Adversarial Learning

Xiamen University(厦门大学);Beihang University(北京航空航天大学);University of Chinese Academy of Sciences(中国科学院大学);BestImage, Tencent Technology (Shanghai) Co.,Ltd(腾讯科技(上海)有限公司贝思图)

Shaohui Lin, Rongrong Ji, Chenqian Yan, Baochang Zhang, Liujuan Cao, Qixiang Ye, Feiyue Huang, David Doermann

摘要:

滤波器或神经元的结构化修剪已经受到越来越多的关注,用于压缩卷积神经网络。大多数现有方法依赖于以逐层方式进行的多阶段优化,用于迭代地修剪和重新训练,这可能不是最佳的并且可能是计算密集的。此外,这些方法被设计用于修剪特定的结构,例如过滤器或块结构,而不联合修剪异构结构。在本文中,我们提出了一种有效的结构化修剪方法,可以以端到端的方式联合修剪过滤器和其他结构。为了实现这一点,我们首先引入一个软掩模来缩放这些结构的输出,方法是定义一个新的目标函数,用稀疏正则化来将基线和网络的输出与这个掩模对齐。然后,我们通过生成对抗学习(GAL)有效地解决了优化问题,该学习以无标签和端到端的方式学习稀疏软掩码。通过将软掩模中的更多缩放因子强制为零,可以利用快速迭代收缩阈值算法(FISTA)来快速且可靠地去除相应的结构。大量的实验证明了GAL在不同数据集上的有效性,包括MNIST,CIFAR-10和ImageNet ILSVRC 2012。例如,在ImageNet ILSVRC 2012上,修剪后的ResNet-50实现了10.88\%的Top-5错误,并导致了3.7倍的加速。这明显优于最先进的方法。

英文摘要:

Structured pruning of filters or neurons has received increased focus for compressing convolutional neural networks. Most existing methods rely on multi-stage optimizations in a layer-wise manner for iteratively pruning and retraining which may not be optimal and may be computation intensive. Besides, these methods are designed for pruning a specific structure, such as filter or block structures without jointly pruning heterogeneous structures. In this paper, we propose an effective structured pruning approach that jointly prunes filters as well as other structures in an end-to-end manner. To accomplish this, we first introduce a soft mask to scale the output of these structures by defining a new objective function with sparsity regularization to align the output of baseline and network with this mask. We then effectively solve the optimization problem by generative adversarial learning (GAL), which learns a sparse soft mask in a label-free and an end-to-end manner. By forcing more scaling factors in the soft mask to zero, the fast iterative shrinkage-thresholding algorithm (FISTA) can be leveraged to fast and reliably remove the corresponding structures. Extensive experiments demonstrate the effectiveness of GAL on different datasets, including MNIST, CIFAR-10 and ImageNet ILSVRC 2012. For example, on ImageNet ILSVRC 2012, the pruned ResNet-50 achieves 10.88\% Top-5 error and results in a factor of 3.7x speedup. This significantly outperforms state-of-the-art methods.

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

↑