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 using a proposal distribution 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 , after which we focus on two of its variants: GRCS and GRCD. We show that for continuous and over with unimodal density ratio , the expected runtime of GRCS is upper bounded by where , 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 . 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 . 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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 3d6554a1-c9f6-4e78-9ae8-027b8871bf52Cited by top-tier papers6
- Greedy Poisson Rejection SamplingGergely FlamichNeurIPS 2023 · 32 citations
- Universal Exact Compression of Differentially Private MechanismsYanxiao Liu, Wei-Ning Chen, Ayfer Özgür, Cheuk Ting LiNeurIPS 2024 · 23 citations
- Fast Channel Simulation via Error-Correcting CodesSharang M. Sriramu, Rochelle Barsz, Elizabeth Polito, Aaron B. WagnerNeurIPS 2024 · 8 citations
- Accelerating Relative Entropy Coding with Space PartitioningJiajun He, Gergely Flamich, José Miguel Hernández-LobatoNeurIPS 2024 · 6 citations
- Channel Simulation and Distributed Compression with Ensemble Rejection SamplingBuu Phan, Ashish KhistiNeurIPS 2025 · 5 citations
Builds on12
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- NVAE: A Deep Hierarchical Variational AutoencoderArash Vahdat, Jan KautzNeurIPS 2020 · 1,141 citations
- High-Fidelity Generative Image CompressionFabian Mentzer, George Toderici, Michael Tschannen, Eirikur AgustssonNeurIPS 2020 · 675 citations
- VCT: A Video Compression TransformerFabian Mentzer, George Toderici, David Minnen, Sergi Caelles et al.NeurIPS 2022 · 155 citations
- Universally Quantized Neural CompressionEirikur Agustsson, Lucas TheisNeurIPS 2020 · 118 citations
Related papers
- Fast Relative Entropy Coding with A* codingGergely Flamich, Stratis Markou, José Miguel Hernández-LobatoICML 2022 · 41 citations
- Compressing Images by Encoding Their Latent Representations with Relative Entropy CodingGergely Flamich, Marton Havasi, José Miguel Hernández-LobatoNeurIPS 2020 · 78 citations
- Efficient Learned Image Compression without Entropy CodingHao Cao, Wenqi Guo, Zhijin Qin, Jungong HanICML 2026
- Entropy-Adaptive Federated Learning with Efficient Bit Allocation over Wireless ChannelsShayan Mohajer Hamidi, Ben LiangINFOCOM 2026
- Differentiable Vector Quantization for Rate-Distortion Optimization of Generative Image CompressionShiyin Jiang, Wei Long, Minghao Han, Zhenghao Chen et al.CVPR 2026 · 3 citations
