Lune

NeurIPS2023Top-tier venue

Faster Relative Entropy Coding with Greedy Rejection 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 using as few bits as possible. Unlike entropy coding, REC does not assume discrete distributions or require quantisation. As such, it can be naturally integrated into communication pipelines such as learnt compression and differentially private federated learning. Unfortunately, despite their practical benefits, REC algorithms have not seen widespread application, due to their prohibitively slow runtimes or restrictive assumptions. In this paper, we make progress towards addressing these issues. We introduce Greedy Rejection Coding (GRC), which generalises the rejection based-algorithm of Harsha et al. (2007) to arbitrary probability spaces and partitioning schemes. We first show that GRC terminates almost surely and returns unbiased samples from QQ, after which we focus on two of its variants: GRCS and GRCD. We show that for continuous QQ and PP over R\mathbb{R} with unimodal density ratio dQ/dPdQ/dP, the expected runtime of GRCS is upper bounded by βDKL[Q∣∣P]+O(1)\beta D_{KL}[Q || P] + O(1) where β≈4.82\beta \approx 4.82, and its expected codelength is optimal. This makes GRCS the first REC algorithm with guaranteed optimal runtime for this class of distributions, up to the multiplicative constant β\beta. This significantly improves upon the previous state-of-the-art method, A* coding (Flamich et al., 2022). Under the same assumptions, we experimentally observe and conjecture that the expected runtime and codelength of GRCD are upper bounded by DKL[Q∣∣P]+O(1)D_{KL}[Q || P] + O(1). Finally, we evaluate GRC in a variational autoencoder-based compression pipeline on MNIST, and show that a modified ELBO and an index-compression method can further improve compression efficiency.

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.

6 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

  • Accelerating Relative Entropy Coding with Space Partitioning cites Greedy Poisson Rejection Sampling
  • Fast Channel Simulation via Error-Correcting Codes cites Universally Quantized Neural Compression
  • Fast Channel Simulation via Error-Correcting Codes cites Greedy Poisson Rejection Sampling
  • Universal Exact Compression of Differentially Private Mechanisms cites Universally Quantized Neural Compression
  • Universal Exact Compression of Differentially Private Mechanisms cites Greedy Poisson Rejection Sampling
  • Greedy Poisson Rejection Sampling cites Universally Quantized Neural Compression
  • Channel Simulation and Distributed Compression with Ensemble Rejection Sampling cites Universally Quantized Neural Compression
  • Channel Simulation and Distributed Compression with Ensemble Rejection Sampling cites Accelerating Relative Entropy Coding with Space Partitioning
  • Channel Simulation and Distributed Compression with Ensemble Rejection Sampling cites Fast Channel Simulation via Error-Correcting Codes
  • Channel Simulation and Distributed Compression with Ensemble Rejection Sampling cites Greedy Poisson Rejection Sampling
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Greedy Poisson Rejection SamplingGergely FlamichNeurIPS 2023 · 32 citations
  2. Universal Exact Compression of Differentially Private MechanismsYanxiao Liu, Wei-Ning Chen, Ayfer Özgür, Cheuk Ting LiNeurIPS 2024 · 23 citations
  3. Fast Channel Simulation via Error-Correcting CodesSharang M. Sriramu, Rochelle Barsz, Elizabeth Polito, Aaron B. WagnerNeurIPS 2024 · 8 citations
  4. Accelerating Relative Entropy Coding with Space PartitioningJiajun He, Gergely Flamich, José Miguel Hernández-LobatoNeurIPS 2024 · 6 citations
  5. Channel Simulation and Distributed Compression with Ensemble Rejection SamplingBuu Phan, Ashish KhistiNeurIPS 2025 · 5 citations

Builds on12

  1. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  2. NVAE: A Deep Hierarchical Variational AutoencoderArash Vahdat, Jan KautzNeurIPS 2020 · 1,141 citations
  3. High-Fidelity Generative Image CompressionFabian Mentzer, George Toderici, Michael Tschannen, Eirikur AgustssonNeurIPS 2020 · 675 citations
  4. VCT: A Video Compression TransformerFabian Mentzer, George Toderici, David Minnen, Sergi Caelles et al.NeurIPS 2022 · 155 citations
  5. Universally Quantized Neural CompressionEirikur Agustsson, Lucas TheisNeurIPS 2020 · 118 citations

Related papers

  1. Fast Relative Entropy Coding with A* codingGergely Flamich, Stratis Markou, José Miguel Hernández-LobatoICML 2022 · 41 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. Efficient Learned Image Compression without Entropy CodingHao Cao, Wenqi Guo, Zhijin Qin, Jungong HanICML 2026
  4. Entropy-Adaptive Federated Learning with Efficient Bit Allocation over Wireless ChannelsShayan Mohajer Hamidi, Ben LiangINFOCOM 2026
  5. Differentiable Vector Quantization for Rate-Distortion Optimization of Generative Image CompressionShiyin Jiang, Wei Long, Minghao Han, Zhenghao Chen et al.CVPR 2026 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines