Lune

NeurIPS2023Top-tier venue

Faster Relative Entropy Coding with Greedy Rejection Coding

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

2023Year
17Citations
6Top-tier citations

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 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.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 3d6554a1-c9f6-4e78-9ae8-027b8871bf52

Cited by top-tier papers6

Ask how each one uses it

Builds on12

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines