The Combinatorial Brain Surgeon: Pruning Weights That Cancel One Another in Neural Networks

Xin Yu, Thiago Serra, Srikumar Ramalingam, Shandian Zhe
3/9/2022
cs.LGcs.CV
quantization-pruning

Official code: yuxwind/CBS (16 stars, Python, last commit 2022-09-20).

Abstract

Neural networks tend to achieve better accuracy with training if they are larger -- even if the resulting models are overparameterized. Nevertheless, carefully removing such excess parameters before, during, or after training may also produce models with similar or even improved accuracy.

Show full abstract

In many cases, that can be curiously achieved by heuristics as simple as removing a percentage of the weights with the smallest absolute value -- even though magnitude is not a perfect proxy for weight relevance. With the premise that obtaining significantly better performance from pruning depends on accounting for the combined effect of removing multiple weights, we revisit one of the classic approaches for impact-based pruning: the Optimal Brain Surgeon(OBS). We propose a tractable heuristic for solving the combinatorial extension of OBS, in which we select weights for simultaneous removal, as well as a systematic update of the remaining weights. Our selection method outperforms other methods under high sparsity, and the weight update is advantageous even when combined with the other methods.

View on arXivView PDF

Code Implementations(1)

yuxwind/CBSOfficial100%

Official Code of The Combinatorial Brain Surgeon: Pruning Weights That Cancel One Another in Neural Networks[ICML2022]

161Python, ShellJun 15, 20224 years ago

Similar Papers

Cite this paper

@article{yu2022combinatorial,
  title  = {The Combinatorial Brain Surgeon: Pruning Weights That Cancel One Another in Neural Networks},
  author = {Xin Yu and Thiago Serra and Srikumar Ramalingam and Shandian Zhe},
  year   = {2022},
  eprint = {2203.04466},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.04466}
}

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

Discussion