Skip to main content
QUICK REVIEW

[Paper Review] Variable-Bitrate Neural Compression via Bayesian Arithmetic Coding

Yibo Yang, Robert Bamler|arXiv (Cornell University)|Feb 18, 2020
Generative Adversarial Networks and Image SynthesisComputer Science5 citations
TL;DR

This paper proposes a variable-bitrate neural compression method using Bayesian arithmetic coding that adaptively adjusts quantization precision based on posterior uncertainty estimates, enabling a single trained model to achieve multiple rate-distortion trade-offs. The approach outperforms JPEG across a wide range of bit rates without retraining.

ABSTRACT

Deep Bayesian latent variable models have enabled new approaches to both model and data compression. Here, we propose a new algorithm for compressing latent representations in deep probabilistic models, such as variational autoencoders, in post-processing. The approach thus separates model design and training from the compression task. Our algorithm generalizes arithmetic coding to the continuous domain, using adaptive discretization accuracy that exploits estimates of posterior uncertainty. A consequence of the plug and play nature of our approach is that various rate-distortion trade-offs can be achieved with a single trained model, eliminating the need to train multiple models for different bit rates. 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 machine learning model. Further experiments on Bayesian neural word embeddings demonstrate the versatility of the proposed method.

Motivation & Objective

  • To develop a post-processing compression method for latent representations in deep probabilistic models like variational autoencoders.
  • To enable variable-bitrate compression using a single trained model, avoiding the need for multiple models per bit rate.
  • To generalize arithmetic coding to the continuous domain by adapting discretization accuracy based on uncertainty.
  • To improve compression performance by exploiting posterior uncertainty estimates in latent space.
  • To demonstrate the method's versatility across different data types, including images and word embeddings.

Proposed method

  • The method generalizes arithmetic coding to continuous latent variables by using adaptive discretization that varies with posterior uncertainty estimates.
  • It dynamically adjusts quantization resolution based on the variance of the posterior distribution, allocating more bits where uncertainty is high.
  • The approach treats compression as a post-processing step, decoupling model training from rate control.
  • Bayesian inference is used to estimate posterior distributions over latent variables, which inform the coding strategy.
  • The algorithm integrates with any deep latent variable model, such as variational autoencoders, without architectural changes.
  • Rate-distortion optimization is achieved by tuning the trade-off between bit rate and reconstruction quality through the uncertainty-aware coding process.

Experimental results

Research questions

  • RQ1Can continuous latent representations be efficiently compressed using a generalized form of arithmetic coding?
  • RQ2How does incorporating posterior uncertainty improve compression performance across varying bit rates?
  • RQ3Can a single trained model achieve multiple rate-distortion trade-offs without retraining?
  • RQ4How does the method compare to conventional codecs like JPEG across different bit rates?
  • RQ5To what extent is the method transferable to non-image data, such as word embeddings?

Key findings

  • The proposed method achieves superior image compression performance compared to JPEG across a wide range of bit rates, with consistent gains in both rate and distortion.
  • By exploiting posterior uncertainty, the method enables adaptive bit allocation that improves coding efficiency without increasing model complexity.
  • The approach supports variable-bitrate compression using only one model, eliminating the need for training multiple models for different bit rates.
  • Experiments on Bayesian neural word embeddings confirm the method's versatility beyond image data.
  • The results demonstrate that uncertainty-aware coding significantly enhances compression performance, especially at low bit rates.
  • The method maintains high reconstruction quality while achieving competitive bit rates, validating its effectiveness in practical compression scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.