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

过滤器中的修剪过滤器

Pruning Filter in Filter

Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Tencent Youtu Lab(腾讯优图实验室)

Fanxu Meng, Hao Cheng, Ke Li, Huixiang Luo, Xiaowei Guo, Guangming Lu, Xing Sun

摘要:

剪枝已经成为压缩和加速现代神经网络的一种非常强大和有效的技术。现有的剪枝方法可以分为两类:过滤剪枝(FP)和权重剪枝(WP)。与WP相比,FP在硬件兼容性方面获胜,但在压缩比方面失利。为了收敛这两种方法的强度,我们建议在过滤器中修剪过滤器。具体而言,我们将滤波器$F \in \mathbb{R}^{C\times K\times K}$视为$K \times K$条带,即,$1\times 1$过滤器$\in \mathbb{R}^{C}$,然后通过修剪条带而不是整个过滤器,我们可以实现比传统FP更细的粒度,同时是硬件友好的。我们称我们的方法为SWP(\emph{Stripe-Wise Pruning})。SWP是通过引入一个新的可学习矩阵来实现的,该矩阵称为Filter Skeleton,其值反映了每个滤波器的形状。由于最近的一些工作表明,修剪的架构比继承的重要权重更重要,我们认为单个滤波器的架构,即,形状也很重要。通过大量的实验,我们证明了SWP比以前基于FP的方法更有效,并且在CIFAR-10和ImageNet数据集上实现了最先进的剪枝率,而没有明显的准确性下降。代码可在https://github.com/fxmeng/Pruning-Filter-in-Filter上获得

英文摘要:

Pruning has become a very powerful and effective technique to compress and accelerate modern neural networks. Existing pruning methods can be grouped into two categories: filter pruning (FP) and weight pruning (WP). FP wins at hardware compatibility but loses at the compression ratio compared with WP. To converge the strength of both methods, we propose to prune the filter in the filter. Specifically, we treat a filter $F \in \mathbb{R}^{C\times K\times K}$ as $K \times K$ stripes, i.e., $1\times 1$ filters $\in \mathbb{R}^{C}$, then by pruning the stripes instead of the whole filter, we can achieve finer granularity than traditional FP while being hardware friendly. We term our method as SWP (\emph{Stripe-Wise Pruning}). SWP is implemented by introducing a novel learnable matrix called Filter Skeleton, whose values reflect the shape of each filter. As some recent work has shown that the pruned architecture is more crucial than the inherited important weights, we argue that the architecture of a single filter, i.e., the shape, also matters. Through extensive experiments, we demonstrate that SWP is more effective compared to the previous FP-based methods and achieves the state-of-art pruning ratio on CIFAR-10 and ImageNet datasets without obvious accuracy drop. Code is available at https://github.com/fxmeng/Pruning-Filter-in-Filter

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

↑