Abstract
This research introduces a novel image compression codec that leverages pre-trained "foundation" latent diffusion models, such as Stable Diffusion, to achieve high-realism reconstructions at extremely low bitrates. By treating quantization error as a form of noise and performing only a small fraction of the typical denoising steps, the method outperforms existing generative codecs in visual quality. Crucially, this approach requires significantly less training and inference time than previous diffusion-based compression methods by utilizing frozen model weights.
Introduction
Traditional image compression standards like JPEG and even modern neural image compression (NIC) frameworks struggle with a fundamental "triple tradeoff" between rate (file size), distortion (pixel-wise accuracy), and realism (perceptual naturalness). When bitrates are pushed to extreme lows, models optimized for Mean Squared Error (MSE) tend to produce blurry, unrealistic images.
While Generative Adversarial Networks (GANs) have been employed to mitigate these issues, they often introduce high-frequency artifacts. Diffusion models have emerged as the state-of-the-art for realism, but their application in compression has been limited by high computational costs, slow sampling speeds, and the massive compute requirements for training them from scratch. This paper addresses these challenges by repurposing existing foundation models for the compression task.
Methodology
The proposed pipeline utilizes the power of Stable Diffusion v2.1 without fine-tuning its massive backbone, thereby avoiding the "GPU-years" of compute typically required. The process follows five key stages:
- Latent Encoding: The input image is mapped to a lower-dimensional space using a pre-trained Variational Autoencoder (VAE).
- Parameter Estimation ($P_\phi$): A small, custom-trained network analyzes the latent representation to predict optimal quantization parameters ($\gamma$) and the ideal denoising timestep ($t$).
- Adaptive Quantization: The latent is quantized based on the predicted parameters to meet a target bitrate.
- Partial Denoising: Rather than starting from pure noise, the decoder begins with the quantized (noisy) latent. It performs a small subset of denoising steps—typically only 2% to 7% of the full process—to "repair" the details lost during compression.
- Entropy Coding: A transformer-based model (Entroformer) efficiently compresses the quantized latents into a bitstream.
Key Insights
Quantization Error as Noise
The core innovation of this work is the treatment of errors introduced by data compression as Gaussian noise. This conceptual shift allows a diffusion model—which is fundamentally a denoiser—to treat the compressed data as a starting point for refinement rather than generating an image from scratch.
The "Sweet Spot" of Denoising
The authors identified that the number of diffusion steps is critical: too many steps cause the image to lose its connection to the original source (over-smoothing), while too few leave the image noisy. The $P_\phi$ network is specifically designed to learn the optimal stopping point for each unique image, balancing fidelity and realism.
Zero Fine-Tuning
By keeping the foundation model weights frozen, the method inherits the vast "prior knowledge" of a model trained on billions of images. This allows the codec to synthesize plausible textures, such as skin or grass, even when that information was discarded by the encoder at low bitrates.
Experimental Results
The model was trained on the Vimeo-90k dataset and evaluated using Kodak, CLIC2022, and MS-COCO 30k benchmarks.
- Realism (FID): The method achieved a new state-of-the-art in realism (Fréchet Inception Distance) on the MS-COCO dataset, outperforming both GAN-based (ILLM) and other diffusion-based (CDC) codecs.
- User Preference: In subjective user studies using the Elo rating system, participants significantly preferred the reconstructions from this method over competitors, even when those competitors used twice the bitrate.
- Efficiency: By utilizing partial denoising, the model processes images in approximately 3.49 seconds on an RTX 3090. While slower than GAN-based methods (0.27s), it is nearly twice as fast as previous diffusion codecs like CDC (6.87s).
Limitations and Future Work
Despite the gains in realism, the model can occasionally "hallucinate" or warp fine details, such as altering the boundaries of small objects or bending straight lines. There are also ethical considerations; at extremely low bitrates, the model might inadvertently alter a person's identity or misgenerate text. Future research will focus on integrating more efficient "distilled" diffusion backbones to further reduce inference latency and improve geometric fidelity.
Summary updated