Lost in Pruning: The Effects of Pruning Neural Networks beyond Test Accuracy

Lucas Liebenwein, Cenk Baykal, Brandon Carter, David Gifford, Daniela Rus
3/4/2021
cs.LGcs.AIcs.CV

Official code: lucaslie/torchprune (163 stars, Shell, MIT, PyTorch, last commit 2022-11-28).

Abstract

Neural network pruning is a popular technique used to reduce the inference costs of modern, potentially overparameterized, networks. Starting from a pre-trained network, the process is as follows: remove redundant parameters, retrain, and repeat while maintaining the same test accuracy.

Show full abstract

The result is a model that is a fraction of the size of the original with comparable predictive performance (test accuracy). Here, we reassess and evaluate whether the use of test accuracy alone in the terminating condition is sufficient to ensure that the resulting model performs well across a wide spectrum of "harder" metrics such as generalization to out-of-distribution data and resilience to noise. Across evaluations on varying architectures and data sets, we find that pruned networks effectively approximate the unpruned model, however, the prune ratio at which pruned networks achieve commensurate performance varies significantly across tasks. These results call into question the extent of \emph{genuine} overparameterization in deep learning and raise concerns about the practicability of deploying pruned networks, specifically in the context of safety-critical systems, unless they are widely evaluated beyond test accuracy to reliably predict their performance. Our code is available at https://github.com/lucaslie/torchprune.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

A research library for pytorch-based neural network pruning, compression, and more.

16324Shell, PythonFeb 14, 20204 years agoMIT
compressioncoresetsdeep-learningfilter-pruninggeneralization-ability+11 more

Similar Papers

Cite this paper

@article{liebenwein2021lost,
  title  = {Lost in Pruning: The Effects of Pruning Neural Networks beyond Test Accuracy},
  author = {Lucas Liebenwein and Cenk Baykal and Brandon Carter and David Gifford and Daniela Rus},
  year   = {2021},
  eprint = {2103.03014},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.03014}
}

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

Discussion