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

CWP:用于网络修剪的实例复杂度加权通道软掩码

CWP: Instance complexity weighted channel-wise soft masks for network pruning

Ningxia University(宁夏大学);Collaborative Innovation Center for Ningxia Big Data and Artificial Intelligence co-founded by Ningxia Municipality and Ministry of Education(宁夏大数据与人工智能省部共建协同创新中心)

Jiapeng Wang, Ming Ma, Zhenhua Yu

摘要:

现有的可微通道修剪方法通常在通道后附加缩放因子或掩码来修剪重要性较低的滤波器,并隐含地假设输入样本对滤波器重要性的贡献是均匀的。具体而言,实例复杂性对剪枝性能的影响尚未在静态网络剪枝中得到充分研究。本文提出了一种简单有效的基于实例复杂度加权过滤器重要性得分的可微网络剪枝方法CWP。我们定义实例复杂度相关的权重为每个实例,通过赋予更高的权重,硬实例,并衡量加权和的实例特定的软掩模模型的非均匀贡献的不同的输入,这鼓励硬实例占主导地位的修剪过程和模型的性能得到很好的保留。此外,我们引入了一个正则化最大化偏振的面具,这样一个甜蜜点可以很容易地找到识别过滤器修剪。对各种网络架构和数据集的性能评估表明,CWP在修剪大型网络方面优于现有技术。例如,CWP在CIFAR-10数据集上删除了64.11%的FLOP后,将ResNet 56的准确性提高了0.32%,并在ImageNet数据集上修剪了ResNet 50的87.75%的FLOP,仅损失了0.93%的Top-1准确性。

英文摘要:

Existing differentiable channel pruning methods often attach scaling factors or masks behind channels to prune filters with less importance, and implicitly assume uniform contribution of input samples to filter importance. Specifically, the effects of instance complexity on pruning performance are not yet fully investigated in static network pruning. In this paper, we propose a simple yet effective differentiable network pruning method CWP based on instance complexity weighted filter importance scores. We define instance complexity related weight for each instance by giving higher weights to hard instances, and measure the weighted sum of instance-specific soft masks to model non-uniform contribution of different inputs, which encourages hard instances to dominate the pruning process and the model performance to be well preserved. In addition, we introduce a regularizer to maximize polarization of the masks, such that a sweet spot can be easily found to identify the filters to be pruned. Performance evaluations on various network architectures and datasets demonstrate CWP has advantages over the state-of-the-arts in pruning large networks. For instance, CWP improves the accuracy of ResNet56 on CIFAR-10 dataset by 0.32% aftering removing 64.11% FLOPs, and prunes 87.75% FLOPs of ResNet50 on ImageNet dataset with only 0.93% Top-1 accuracy loss.

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

↑