Compressing Images by Encoding Their Latent Representations with Relative Entropy Coding
Gergely Flamich, Marton Havasi, José Miguel Hernández-Lobato
Abstract
Variational Autoencoders (VAEs) have seen widespread use in learned image compression. They are used to learn expressive latent representations on which downstream compression methods can operate with high efficiency. Recently proposed 'bits-back' methods can indirectly encode the latent representation of images with codelength close to the relative entropy between the latent posterior and the prior. However, due to the underlying algorithm, these methods can only be used for lossless compression, and they only achieve their nominal efficiency when compressing multiple images simultaneously; they are inefficient for compressing single images. As an alternative, we propose a novel method, Relative Entropy Coding (REC), that can directly encode the latent representation with codelength close to the relative entropy for single images, supported by our empirical results obtained on the Cifar10, ImageNet32 and Kodak datasets. Moreover, unlike previous bits-back methods, REC is immediately applicable to lossy compression, where it is competitive with the state-of-the-art on the Kodak dataset.
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.
21 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers21
- Lossy Image Compression with Conditional Diffusion ModelsRuihan Yang, Stephan MandtNeurIPS 2023 · 268 citations
- Universally Quantized Neural CompressionEirikur Agustsson, Lucas TheisNeurIPS 2020 · 118 citations
- Soft then Hard: Rethinking the Quantization in Neural Image CompressionZongyu Guo, Zhizheng Zhang, Runsen Feng, Zhibo ChenICML 2021 · 94 citations
- Lossy Compression for Lossless PredictionYann Dubois, Benjamin Bloem-Reddy, Karen Ullrich, Chris J. MaddisonNeurIPS 2021 · 82 citations
- Computationally-Efficient Neural Image Compression with Shallow DecodersYibo Yang, Stephan MandtICCV 2023 · 43 citations
Builds on1
Related papers
- Improving Inference for Neural Image CompressionYibo Yang, Robert Bamler, Stephan MandtNeurIPS 2020 · 151 citations
- Accelerating Relative Entropy Coding with Space PartitioningJiajun He, Gergely Flamich, José Miguel Hernández-LobatoNeurIPS 2024 · 6 citations
- Fast Relative Entropy Coding with A* codingGergely Flamich, Stratis Markou, José Miguel Hernández-LobatoICML 2022 · 41 citations
- Efficient Learned Image Compression without Entropy CodingHao Cao, Wenqi Guo, Zhijin Qin, Jungong HanICML 2026
- Enhanced Invertible Encoding for Learned Image CompressionYueqi Xie, Ka Leong Cheng, Qifeng ChenACM MM 2021 · 195 citations
