Model compression as constrained optimization, with application to neural nets. Part V: combining compressions

Miguel Á. Carreira-Perpiñán, Yerlan Idelbayev
7/9/2021
cs.LG
quantization-pruning

Official code: UCMerced-ML/LC-model-compression (71 stars, Python, BSD-3-Clause, last commit 2021-11-23).

Abstract

Model compression is generally performed by using quantization, low-rank approximation or pruning, for which various algorithms have been researched in recent years. One fundamental question is: what types of compression work better for a given model?

Show full abstract

Or even better: can we improve by combining compressions in a suitable way? We formulate this generally as a problem of optimizing the loss but where the weights are constrained to equal an additive combination of separately compressed parts; and we give an algorithm to learn the corresponding parts' parameters. Experimentally with deep neural nets, we observe that 1) we can find significantly better models in the error-compression space, indicating that different compression types have complementary benefits, and 2) the best type of combination depends exquisitely on the type of neural net. For example, we can compress ResNets and AlexNet using only 1 bit per weight without error degradation at the cost of adding a few floating point weights. However, VGG nets can be better compressed by combining low-rank with a few floating point weights.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Model compression by constrained optimization, using the Learning-Compression (LC) algorithm

7117PythonMay 14, 20205 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{carreiraperpin2021model,
  title  = {Model compression as constrained optimization, with application to neural nets. Part V: combining compressions},
  author = {Miguel Á. Carreira-Perpiñán and Yerlan Idelbayev},
  year   = {2021},
  eprint = {2107.04380},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.04380}
}

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

Discussion