Fast Relative Entropy Coding with A* coding
Abstract
Relative entropy coding (REC) algorithms encode a sample from a target distribution using a proposal distribution , such that the expected codelength is . REC can be seamlessly integrated with existing learned compression models since, unlike entropy coding, it does not assume discrete or , and does not require quantisation. However, general REC algorithms require an intractable runtime. We introduce AS* and AD* coding, two REC algorithms based on A* sampling. We prove that, for continuous distributions over , if the density ratio is unimodal, AS* has expected runtime, where is the R\'enyi -divergence. We provide experimental evidence that AD* also has expected runtime. We prove that AS* and AD* achieve an expected codelength of . 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.
Keywords
Cite
@article{arxiv.2201.12857,
title = {Fast Relative Entropy Coding with A* coding},
author = {Gergely Flamich and Stratis Markou and José Miguel Hernández-Lobato},
journal= {arXiv preprint arXiv:2201.12857},
year = {2022}
}