And the Bit Goes Down: Revisiting the Quantization of Neural Networks

Pierre Stock, Armand Joulin, Rémi Gribonval, Benjamin Graham, Hervé Jégou
7/12/2019
164 citations
cs.CV
quantization-pruning

Official code: facebookresearch/kill-the-bits (630 stars, Python, last commit 2020-11-09).

Abstract

In this paper, we address the problem of reducing the memory footprint of convolutional network architectures. We introduce a vector quantization method that aims at preserving the quality of the reconstruction of the network outputs rather than its weights.

Show full abstract

The principle of our approach is that it minimizes the loss reconstruction error for in-domain inputs. Our method only requires a set of unlabelled data at quantization time and allows for efficient inference on CPU by using byte-aligned codebooks to store the compressed weights. We validate our approach by quantizing a high performing ResNet-50 model to a memory size of 5MB (20x compression factor) while preserving a top-1 accuracy of 76.1% on ImageNet object classification and by compressing a Mask R-CNN with a 26x factor.

View on arXivView PDF

Code Implementations(1)

Code for: "And the bit goes down: Revisiting the quantization of neural networks"

630121PythonMay 21, 20196 years agoNOASSERTION

Similar Papers

Cite this paper

@article{stock2019goes,
  title  = {And the Bit Goes Down: Revisiting the Quantization of Neural Networks},
  author = {Pierre Stock and Armand Joulin and Rémi Gribonval and Benjamin Graham and Hervé Jégou},
  year   = {2019},
  eprint = {1907.05686},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.05686}
}

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

Discussion