Lune

ICML2022Top-tier venue

Fast Relative Entropy Coding with A* coding

Gergely Flamich, Stratis Markou, José Miguel Hernández-Lobato

Abstract

Relative entropy coding (REC) algorithms encode a sample from a target distribution QQ using a proposal distribution PP, such that the expected codelength is O(DKL[Q ∣∣ P])\mathcal{O}(D_{KL}[Q \,||\, P]). REC can be seamlessly integrated with existing learned compression models since, unlike entropy coding, it does not assume discrete QQ or PP, and does not require quantisation. However, general REC algorithms require an intractable Ω(eDKL[Q ∣∣ P])\Omega(e^{D_{KL}[Q \,||\, P]}) runtime. We introduce AS* and AD* coding, two REC algorithms based on A* sampling. We prove that, for continuous distributions over R\mathbb{R}, if the density ratio is unimodal, AS* has O(D∞[Q ∣∣ P])\mathcal{O}(D_{\infty}[Q \,||\, P]) expected runtime, where D∞[Q ∣∣ P]D_{\infty}[Q \,||\, P] is the Rényi ∞\infty-divergence. We provide experimental evidence that AD* also has O(D∞[Q ∣∣ P])\mathcal{O}(D_{\infty}[Q \,||\, P]) expected runtime. We prove that AS* and AD* achieve an expected codelength of O(DKL[Q ∣∣ P])\mathcal{O}(D_{KL}[Q \,||\, P]). Further, we introduce DAD*, an approximate algorithm based on AD* which retains its favourable runtime and has bias similar to that of alternative methods. Focusing on VAEs, we propose the IsoKL VAE (IKVAE), which can be used with DAD* to further improve compression efficiency. We evaluate A* coding with (IK)VAEs on MNIST, showing that it can losslessly compress images near the theoretically optimal limit.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Compression with Bayesian Implicit Neural Representations cites Universally Quantized Neural Compression
  • Compression with Bayesian Implicit Neural Representations cites Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding
  • Faster Relative Entropy Coding with Greedy Rejection Coding cites HiLLoC: lossless image compression with hierarchical latent variable models
  • Faster Relative Entropy Coding with Greedy Rejection Coding cites Universally Quantized Neural Compression
  • Faster Relative Entropy Coding with Greedy Rejection Coding cites Greedy Poisson Rejection Sampling
  • Greedy Poisson Rejection Sampling cites Faster Relative Entropy Coding with Greedy Rejection Coding
  • Faster Relative Entropy Coding with Greedy Rejection Coding cites Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding
  • Faster Relative Entropy Coding with Greedy Rejection Coding cites iFlow: Numerically Invertible Flows for Efficient Lossless Compression via a Uniform Coder
  • Lossy Image Compression with Conditional Diffusion Models cites Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding
  • Universally Quantized Neural Compression cites Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding
  • IDF++: Analyzing and Improving Integer Discrete Flows for Lossless Compression cites Universally Quantized Neural Compression
  • Universal Exact Compression of Differentially Private Mechanisms cites Faster Relative Entropy Coding with Greedy Rejection Coding
  • Universal Exact Compression of Differentially Private Mechanisms cites Universally Quantized Neural Compression
  • Universal Exact Compression of Differentially Private Mechanisms cites Greedy Poisson Rejection Sampling
  • Universal Exact Compression of Differentially Private Mechanisms cites Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding
  • Greedy Poisson Rejection Sampling cites Compression with Bayesian Implicit Neural Representations
  • Greedy Poisson Rejection Sampling cites Universally Quantized Neural Compression
  • Greedy Poisson Rejection Sampling cites Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding
  • Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding cites HiLLoC: lossless image compression with hierarchical latent variable models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Lossy Image Compression with Conditional Diffusion ModelsRuihan Yang, Stephan MandtNeurIPS 2023 · 268 citations
  2. Compression with Bayesian Implicit Neural RepresentationsZongyu Guo, Gergely Flamich, Jiajun He, Zhibo Chen et al.NeurIPS 2023 · 38 citations
  3. Greedy Poisson Rejection SamplingGergely FlamichNeurIPS 2023 · 32 citations
  4. Universal Exact Compression of Differentially Private MechanismsYanxiao Liu, Wei-Ning Chen, Ayfer Özgür, Cheuk Ting LiNeurIPS 2024 · 23 citations
  5. Faster Relative Entropy Coding with Greedy Rejection CodingGergely Flamich, Stratis Markou, José Miguel Hernández-LobatoNeurIPS 2023 · 17 citations

Builds on6

  1. Universally Quantized Neural CompressionEirikur Agustsson, Lucas TheisNeurIPS 2020 · 118 citations
  2. Compressing Images by Encoding Their Latent Representations with Relative Entropy CodingGergely Flamich, Marton Havasi, José Miguel Hernández-LobatoNeurIPS 2020 · 78 citations
  3. HiLLoC: lossless image compression with hierarchical latent variable modelsJames Townsend, Thomas Bird, Julius Kunze, David BarberICLR 2020 · 60 citations
  4. iFlow: Numerically Invertible Flows for Efficient Lossless Compression via a Uniform CoderShifeng Zhang, Ning Kang, Tom Ryder, Zhenguo LiNeurIPS 2021 · 47 citations
  5. IDF++: Analyzing and Improving Integer Discrete Flows for Lossless CompressionRianne van den Berg, Alexey A. Gritsenko, Mostafa Dehghani, Casper Kaae Sønderby et al.ICLR 2021 · 38 citations

Related papers

  1. Accelerating Relative Entropy Coding with Space PartitioningJiajun He, Gergely Flamich, José Miguel Hernández-LobatoNeurIPS 2024 · 6 citations
  2. Efficient Learned Image Compression without Entropy CodingHao Cao, Wenqi Guo, Zhijin Qin, Jungong HanICML 2026
  3. Asymmetric Gained Deep Image Compression With Continuous Rate AdaptationZe Cui, Jing Wang, Shangyin Gao, Tiansheng Guo et al.CVPR 2021
  4. Differentiable Vector Quantization for Rate-Distortion Optimization of Generative Image CompressionShiyin Jiang, Wei Long, Minghao Han, Zhenghao Chen et al.CVPR 2026 · 3 citations
  5. Evaluating Lossy Compression Rates of Deep Generative ModelsSicong Huang, Alireza Makhzani, Yanshuai Cao, Roger B. GrosseICML 2020 · 30 citations
Dusk over the sea between two cliffs drawn in fine vertical lines