StableCodec: Taming One-Step Diffusion for Extreme Image Compression

Tianyu Zhang, Xin Luo, Li Li, Dong Liu

TL;DR

This paper introduces StableCodec, a novel image compression method that leverages one-step diffusion models for ultra-low bitrate compression. By combining a specialized latent codec with a dual-branch structure and efficient training, StableCodec achieves state-of-the-art perceptual quality and fidelity at bitrates as low as 0.005 bpp, while maintaining competitive inference speeds.

What Problem Does This Paper Address?

Traditional image compression methods (like JPEG, H.266/VVC) excel at rate-distortion but often produce blurry or artifact-ridden images, especially at very low bitrates. More recently, generative image compression methods have emerged, promising higher perceptual quality. Diffusion models, in particular, have shown great potential due to their powerful generative priors, allowing for realistic image synthesis. However, existing diffusion-based compression methods suffer from two major drawbacks: they require a large number of denoising steps at the decoder, making them too slow for real-time applications, and they often struggle to maintain pixel-level consistency, leading to fidelity issues. StableCodec aims to bridge this gap by enabling high-fidelity, high-realism compression at ultra-low bitrates using a single-step diffusion process.

Methods

StableCodec builds upon recent advancements in diffusion models, specifically SD-Turbo, which allows for image generation in just 1-4 denoising steps. The core innovations include:

  • Deep Compression Latent Codec: To achieve ultra-low bitrates, the authors propose a latent codec that compresses a noisy latent representation of the image. This codec utilizes deep compression transform networks for its analysis ($g_a$) and synthesis ($g_s$) components, achieving a spatial compression ratio of 64x. This allows for transmitting a highly compressed latent that can be effectively denoised in a single step.
  • Dual-Branch Coding Structure: To enhance reconstruction fidelity, StableCodec employs a dual-branch approach:
  • Auxiliary Encoder ($E_{Aux}$): This branch uses a pre-trained, high-bitrate encoder (from ELIC) to extract rich, entropy-aware semantic information. This information is then concatenated with the main latent representation.
  • Auxiliary Decoder ($D_{Aux}$): This branch helps apportion structure during decoding. It routes structural information directly from the bitstream, allowing the main synthesis network ($g_s$) to focus on generating realistic details, thereby improving denoising guidance.
  • One-Step Diffusion: By adapting SD-Turbo, StableCodec enables a single-step denoising process at the decoder, drastically improving inference speed compared to multi-step diffusion methods.
  • End-to-End Optimization: The entire model is trained end-to-end with a joint objective that balances bitrate, pixel-level distortion (MSE, LPIPS, CLIP distance), and an adversarial loss (GAN loss) to further improve perceptual quality. A two-stage training strategy (Implicit Bitrate Pruning) is used for stable and efficient training.

Datasets

  • Training: DF2K and CLIC 2020 Professional datasets were used for training.
  • Evaluation: The models were evaluated on the CLIC 2020 Test set, DIV2K Val set, and the Kodak dataset.

Key Insights and Ideas

  • One-Step Diffusion is Feasible for Compression: The paper demonstrates that the powerful generative capabilities of diffusion models can be harnessed for image compression even with a single denoising step, a significant leap for real-time applications.
  • Latent Compression is Key for Ultra-Low Bitrates: Compressing a noisy latent representation rather than the raw image or a clean latent is crucial for achieving extremely low bitrates while still allowing for effective reconstruction via diffusion.
  • Dual-Branch Structure for Fidelity: Separating structural information (via $D_{Aux}$) from detailed generation (via $g_s$ and the diffusion Unet) is an effective strategy to improve reconstruction fidelity, especially under severe compression.
  • Perceptual Metrics are Crucial: For ultra-low bitrate compression, traditional metrics like PSNR and MS-SSIM are insufficient. FID, KID, and DISTS provide a more accurate assessment of perceptual quality, which is the primary goal of StableCodec.

Key Results

  • State-of-the-Art Perception: StableCodec significantly outperforms existing methods (including H.266/VVC, ELIC, HiFiC, PerCo, DiffEIC, TACO, GLC) in terms of FID, KID, and DISTS metrics, even at bitrates as low as 0.005 bpp.
  • High Fidelity: Despite achieving extreme bitrates, StableCodec maintains strong fidelity, outperforming previous generative methods.
  • Competitive Inference Speed: StableCodec achieves encoding and decoding speeds comparable to mainstream transform coding schemes, a significant advantage over other diffusion-based methods that require dozens of denoising steps.
  • Memory Efficiency: The model can be run at arbitrary resolutions with less than 9 GB VRAM, making it practical for deployment.
  • Qualitative Improvements: Visual comparisons show StableCodec generating more realistic and consistent details (e.g., teeth, murals) compared to other methods, which often produce blurry or inconsistent results.

Limitations and Future Work

  • Limitations: The paper notes that while the VAE in SD-Turbo is pre-trained for perceptual compression, it doesn't preserve pixel-level fidelity as well as rate-distortion-oriented autoencoders. The authors also mention that for larger LoRA ranks, performance degradation can occur.
  • Future Work: The paper's success with one-step diffusion suggests future work could explore further optimizing the latent codec and diffusion process for even greater efficiency and quality. The authors also mention the potential for real-time coding scenarios.

Summary updated

BibTeX
@inproceedings{zhang2025stablecodec,
  author = {Tianyu Zhang and Xin Luo and Li Li and Dong Liu},
  title = {{StableCodec: Taming One-Step Diffusion for Extreme Image Compression}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=Jovg1iFTdb},
}
Figure