Lossless Compression with Latent Variable Models

James Townsend
4/21/2021
cs.LGcs.AIcs.IT

Official code: j-towns/craystack (86 stars, Python, last commit 2023-05-16).

Abstract

We develop a simple and elegant method for lossless compression using latent variable models, which we call 'bits back with asymmetric numeral systems' (BB-ANS). The method involves interleaving encode and decode steps, and achieves an optimal rate when compressing batches of data.

Show full abstract

We demonstrate it firstly on the MNIST test set, showing that state-of-the-art lossless compression is possible using a small variational autoencoder (VAE) model. We then make use of a novel empirical insight, that fully convolutional generative models, trained on small images, are able to generalize to images of arbitrary size, and extend BB-ANS to hierarchical latent variable models, enabling state-of-the-art lossless compression of full-size colour images from the ImageNet dataset. We describe 'Craystack', a modular software framework which we have developed for rapid prototyping of compression using deep generative models.

View on arXivView PDF

Code Implementations(1)

j-towns/craystackOfficial100%

Compression tools for machine learning researchers

868PythonNov 2, 20183 years agoNOASSERTION

Similar Papers

Cite this paper

@article{townsend2021lossless,
  title  = {Lossless Compression with Latent Variable Models},
  author = {James Townsend},
  year   = {2021},
  eprint = {2104.10544},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.10544}
}

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

Discussion