Pruning-aware Sparse Regularization for Network Pruning

Nanfei Jiang, Xu Zhao, Chaoyang Zhao, Yongqi An, Ming Tang +1 more
1/18/2022
cs.CVcs.AI
quantization-pruning

Official code: CASIA-LMC-Lab/MaskSparsity (7 stars, Python, MIT, last commit 2021-12-15).

Abstract

Structural neural network pruning aims to remove the redundant channels in the deep convolutional neural networks (CNNs) by pruning the filters of less importance to the final output accuracy. To reduce the degradation of performance after pruning, many methods utilize the loss with sparse regularization to produce structured sparsity.

Show full abstract

In this paper, we analyze these sparsity-training-based methods and find that the regularization of unpruned channels is unnecessary. Moreover, it restricts the network's capacity, which leads to under-fitting. To solve this problem, we propose a novel pruning method, named MaskSparsity, with pruning-aware sparse regularization. MaskSparsity imposes the fine-grained sparse regularization on the specific filters selected by a pruning mask, rather than all the filters of the model. Before the fine-grained sparse regularization of MaskSparity, we can use many methods to get the pruning mask, such as running the global sparse regularization. MaskSparsity achieves 63.03%-FLOPs reduction on ResNet-110 by removing 60.34% of the parameters, with no top-1 accuracy loss on CIFAR-10. On ILSVRC-2012, MaskSparsity reduces more than 51.07% FLOPs on ResNet-50, with only a loss of 0.76% in the top-1 accuracy. The code is released at https://github.com/CASIA-IVA-Lab/MaskSparsity. Moreover, we have integrated the code of MaskSparity into a PyTorch pruning toolkit, EasyPruner, at https://gitee.com/casia_iva_engineer/easypruner.

View on arXivView PDF

Code Implementations(1)

MIT
79Python, ShellDec 14, 20214 years agoMIT

Similar Papers

Cite this paper

@article{jiang2022pruningaware,
  title  = {Pruning-aware Sparse Regularization for Network Pruning},
  author = {Nanfei Jiang and Xu Zhao and Chaoyang Zhao and Yongqi An and Ming Tang and Jinqiao Wang},
  year   = {2022},
  eprint = {2201.06776},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.06776}
}

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/2201.06776.svg)](https://codeofpaper.com/paper/2201.06776)

Discussion