NeurIPS2024

Accelerating Relative Entropy Coding with Space Partitioning

Jiajun He, Gergely Flamich, José Miguel Hernández-Lobato

Abstract

Relative entropy coding (REC) algorithms encode a random sample following a target distribution Q, using a coding distribution P shared between the sender and receiver. Sadly, general REC algorithms suffer from prohibitive encoding times, at least on the order of 2 DKLrQ||P s , and faster algorithms are limited to very specific settings. This work addresses this issue by introducing a REC scheme utilizing space partitioning to reduce runtime in practical scenarios. We provide theoretical analyses of our method and demonstrate its effectiveness with both toy examples and practical applications. Notably, our method successfully handles REC tasks with D KL rQ||P s about three times greater than what previous methods can manage, and reduces the bitrate by approximately 5-15% in VAE-based lossless compression on MNIST and INR-based lossy compression on CIFAR-10, compared to previous methods, significantly improving the practicality of REC for neural compression. 1 To avoid notation overload, we will use Q for the posterior, omitting its dependence on X unless needed. 2 Throughout this paper, unless otherwise stated, we use log 2 to calculate the log density ratio, the Kullback-Leibler (KL) divergence DKL, the mutual information I and the Rényi-8 divergence D8. We use upper-case letters (e.g., Q and P ) to represent probability measures and lower-case letters (e.g., q and p) for their densities. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).