Pruning Filter in Filter

Fanxu Meng, Hao Cheng, Ke Li, Huixiang Luo, Xiaowei Guo +2 more
9/30/2020
cs.CV
quantization-pruning

Official code: fxmeng/Pruning-Filter-in-Filter (149 stars, Python, PyTorch, last commit 2024-03-03).

Abstract

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).

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

PyTorch

Pruning Filter in Filter(NeurIPS2020)

14929PythonSep 30, 20202 years ago
cudafiltersmodelcompressionpruningpytorch+2 more

Similar Papers

Cite this paper

@article{meng2020pruning,
  title  = {Pruning Filter in Filter},
  author = {Fanxu Meng and Hao Cheng and Ke Li and Huixiang Luo and Xiaowei Guo and Guangming Lu and Xing Sun},
  year   = {2020},
  eprint = {2009.14410},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.14410}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.14410.svg)](https://codeofpaper.com/paper/2009.14410)

Discussion