Variational Bayesian Quantization

Yibo Yang, Robert Bamler, Stephan Mandt
2/18/2020
eess.IVcs.CVcs.LG

Official code: mandt-lab/vbq (25 stars, MIT, last commit 2022-12-08).

Abstract

We propose a novel algorithm for quantizing continuous latent representations in trained models. Our approach applies to deep probabilistic models, such as variational autoencoders (VAEs), and enables both data and model compression. Unlike current end-to-end neural compression methods that cater the model to a fixed quantization scheme, our algorithm separates model design and training from quantization. Consequently, our algorithm enables "plug-and-play" compression with variable rate-distortion trade-off, using a single trained model. Our algorithm can be seen as a novel extension of arithmetic coding to the continuous domain, and uses adaptive quantization accuracy based on estimates of posterior uncertainty. Our experimental results demonstrate the importance of taking into account posterior uncertainties, and show that image compression with the proposed algorithm outperforms JPEG over a wide range of bit rates using only a single standard VAE. Further experiments on Bayesian neural word embeddings demonstrate the versatility of the proposed method.

View on arXivView PDF

Code Implementations(1)

mandt-lab/vbqOfficial100%
MIT

Official code for ICML 2020 paper "Variational Bayesian Quantization"

257Rust, PythonFeb 17, 20203 years agoMIT

Cite this paper

@article{yang2020variational,
  title  = {Variational Bayesian Quantization},
  author = {Yibo Yang and Robert Bamler and Stephan Mandt},
  year   = {2020},
  eprint = {2002.08158},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.08158}
}

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

Discussion