Papers
arxiv:1907.05686

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

Published on Nov 9, 2020
Authors:
,
,
,
,

Abstract

A vector quantization method is proposed to reduce the memory footprint of convolutional networks by minimizing reconstruction error on in-domain inputs, enabling efficient CPU inference while maintaining high classification accuracy on models like ResNet-50 and Mask R-CNN.

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. 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.

Community

Sign up or log in to comment

Get this paper in your agent:

hf papers read 1907.05686
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 1

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/1907.05686 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/1907.05686 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.