Layer-adaptive sparsity for the Magnitude-based Pruning

Jaeho Lee, Sejun Park, Sangwoo Mo, Sungsoo Ahn, Jinwoo Shin
10/15/2020
cs.LG

Official code: jaeho-lee/layer-adaptive-sparsity (69 stars, Python, MIT, last commit 2024-03-26).

Abstract

Recent discoveries on neural network pruning reveal that, with a carefully chosen layerwise sparsity, a simple magnitude-based pruning achieves state-of-the-art tradeoff between sparsity and performance. However, without a clear consensus on "how to choose," the layerwise sparsities are mostly selected algorithm-by-algorithm, often resorting to handcrafted heuristics or an extensive hyperparameter search.

Show full abstract

To fill this gap, we propose a novel importance score for global pruning, coined layer-adaptive magnitude-based pruning (LAMP) score; the score is a rescaled version of weight magnitude that incorporates the model-level $\ell_2$ distortion incurred by pruning, and does not require any hyperparameter tuning or heavy computation. Under various image classification setups, LAMP consistently outperforms popular existing schemes for layerwise sparsity selection. Furthermore, we observe that LAMP continues to outperform baselines even in weight-rewinding setups, while the connectivity-oriented layerwise sparsity (the strongest baseline overall) performs worse than a simple global magnitude-based pruning in this case. Code: https://github.com/jaeho-lee/layer-adaptive-sparsity

View on arXivView PDF

Code Implementations(1)

MIT

In progress.

696PythonMar 18, 20212 years agoMIT

Similar Papers

Cite this paper

@article{lee2020layeradaptive,
  title  = {Layer-adaptive sparsity for the Magnitude-based Pruning},
  author = {Jaeho Lee and Sejun Park and Sangwoo Mo and Sungsoo Ahn and Jinwoo Shin},
  year   = {2020},
  eprint = {2010.07611},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.07611}
}

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

Discussion