Lossy Image Compression with Conditional Diffusion Models
Ruihan Yang, Stephan Mandt
TL;DR
<3-5 sentence high-level summary>The paper tackles efficient lossy image compression by replacing Gaussian decoders with a conditional diffusion-based decoder within a transform-coding framework. It introduces a diffusion variational autoencoder (DVAE) that uses a discrete content latent $\hat{\mathbf z}$ to condition a conditional diffusion process, while texture latents are synthesized at decode time, enabling a controllable rate-distortion-perception tradeoff. A variational upper bound on the RD objective leads to a diffusion-based distortion term and an entropy term for the content latent, with optional perceptual losses to bias reconstructions toward realism; the $\mathcal{X}$-prediction variant enables fast, high-quality reconstructions with few steps. Empirically, the method achieves state-of-the-art FID among learned codecs and competitive distortion metrics, demonstrates a clear tradeoff controlled by $\rho$, and highlights the practicality of fast decoding via $\mathcal{X}$-prediction, albeit with slower decoding than some baselines.
Abstract
This paper outlines an end-to-end optimized lossy image compression framework using diffusion generative models. The approach relies on the transform coding paradigm, where an image is mapped into a latent space for entropy coding and, from there, mapped back to the data space for reconstruction. In contrast to VAE-based neural compression, where the (mean) decoder is a deterministic neural network, our decoder is a conditional diffusion model. Our approach thus introduces an additional ``content'' latent variable on which the reverse diffusion process is conditioned and uses this variable to store information about the image. The remaining ``texture'' variables characterizing the diffusion process are synthesized at decoding time. We show that the model's performance can be tuned toward perceptual metrics of interest. Our extensive experiments involving multiple datasets and image quality assessment metrics show that our approach yields stronger reported FID scores than the GAN-based model, while also yielding competitive performance with VAE-based models in several distortion metrics. Furthermore, training the diffusion with $\mathcal{X}$-parameterization enables high-quality reconstructions in only a handful of decoding steps, greatly affecting the model's practicality. Our code is available at: \url{https://github.com/buggyyang/CDC_compression}
