A Programmable Approach to Neural Network Compression

Vinu Joseph, Saurav Muralidharan, Animesh Garg, Michael Garland, Ganesh Gopalakrishnan
11/6/2019
cs.LGcs.CVstat.ML
quantization-pruning

Official code: NVlabs/condensa (149 stars, Python, Apache-2.0, last commit 2022-05-26).

Abstract

Deep neural networks (DNNs) frequently contain far more weights, represented at a higher precision, than are required for the specific task which they are trained to perform. Consequently, they can often be compressed using techniques such as weight pruning and quantization that reduce both the model size and inference time without appreciable loss in accuracy.

Show full abstract

However, finding the best compression strategy and corresponding target sparsity for a given DNN, hardware platform, and optimization objective currently requires expensive, frequently manual, trial-and-error experimentation. In this paper, we introduce a programmable system for model compression called Condensa. Users programmatically compose simple operators, in Python, to build more complex and practically interesting compression strategies. Given a strategy and user-provided objective (such as minimization of running time), Condensa uses a novel Bayesian optimization-based algorithm to automatically infer desirable sparsities. Our experiments on four real-world DNNs demonstrate memory footprint and hardware runtime throughput improvements of 188x and 2.59x, respectively, using at most ten samples per search. We have released a reference implementation of Condensa at https://github.com/NVlabs/condensa.

View on arXivView PDF

Code Implementations(1)

NVlabs/condensaOfficial100%
Apache-2.0

Programmable Neural Network Compression

14929Python, Jupyter NotebookMay 29, 20194 years agoApache-2.0
deep-neural-networksmodel-compressionmodel-pruning

Similar Papers

Cite this paper

@article{joseph2019programmable,
  title  = {A Programmable Approach to Neural Network Compression},
  author = {Vinu Joseph and Saurav Muralidharan and Animesh Garg and Michael Garland and Ganesh Gopalakrishnan},
  year   = {2019},
  eprint = {1911.02497},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.02497}
}

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

Discussion