High-Fidelity Image Compression with Score-based Generative Models

Emiel Hoogeboom, Eirikur Agustsson, Fabian Mentzer, Luca Versari, George Toderici, Lucas TheisarXiv 2023

Abstract

Despite the tremendous success of diffusion generative models in text-to-image generation, replicating this success in the domain of image compression has proven difficult. In this paper, we demonstrate that diffusion can significantly improve perceptual quality at a given bit-rate, outperforming state-of-the-art approaches PO-ELIC and HiFiC as measured by FID score. This is achieved using a simple but theoretically motivated two-stage approach combining an autoencoder targeting MSE followed by a further score-based decoder. However, as we will show, implementation details matter and the optimal design decisions can differ greatly from typical text-to-image models.

Introduction

While diffusion models have revolutionized image generation, they have struggled to displace Generative Adversarial Networks (GANs) in the field of image compression. Existing attempts often resulted in reconstructions that were either unfaithful to the original image or riddled with artifacts. The core challenge lies in the fact that text-to-image models are designed to create global structure from scratch, whereas compression must preserve specific fine details based on a lossy bitstream. Simply repurposing generative models for upscaling often leads to "hallucinations" that do not match the source.

Methodology: High-Fidelity Diffusion (HFD)

We propose a two-stage framework called High-Fidelity Diffusion (HFD) to address these challenges:

  1. Stage 1: Base Autoencoder. A standard CNN-based autoencoder (ELIC architecture) is optimized for Mean Squared Error (MSE). This stage produces a lossy, slightly blurry version of the image that captures essential global structure.
  2. Stage 2: Score-based Decoder. A diffusion model is applied to the Stage 1 output. Instead of starting from pure noise, this decoder is conditioned on the MSE reconstruction to "fill in" discarded textures and fine details.

The Shifted Noise Schedule

A key innovation is the use of a shifted noise schedule. In text-to-image tasks, high noise levels are necessary to establish global layout. In compression, the global layout is already provided by the MSE stage. By shifting the schedule to use less overall noise ((\eta = 0.5)), the model focuses its capacity entirely on synthesizing high-frequency details like skin pores, fabric textures, and fur.

Experimental Results

The HFD model was evaluated on industry-standard benchmarks including CLIC2020, CLIC22, and MS-COCO 30k. HFD achieved state-of-the-art realism, outperforming previous leaders like HiFiC and PO-ELIC in FID scores across various bit-rates.

Visual comparison of HFD against standard and learned compression methods. HFD (top and center) maintains significantly more realistic texture than MSE (bottom left) or traditional codecs like VVC and HEVC.

As shown in the figure above, HFD produces pleasing results even at extremely low bit-rates (e.g., 0.0562 bpp) where traditional methods like JPEG or HEVC become heavily blurred or blocky. The model successfully synthesizes realistic textures, such as the lion's mane, which are lost in MSE-optimized reconstructions.

Discussion and Future Work

While HFD offers superior perceptual quality, it involves a realism-distortion tradeoff; synthesized details may not perfectly match the original small-scale information. Furthermore, the iterative nature of diffusion models makes them computationally more expensive than standard CNN decoders. Future research will focus on progressive distillation to reduce sampling steps, potentially enabling real-time applications for diffusion-based compression.

Summary updated

BibTeX
@misc{hoogeboom2023high,
  author = {Emiel Hoogeboom and Eirikur Agustsson and Fabian Mentzer and Luca Versari and George Toderici and Lucas Theis},
  title = {{High-Fidelity Image Compression with Score-based Generative Models}},
  year = {2023},
  eprint = {2305.18231},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18231},
}
Figure