DiffPC: Diffusion-based High Perceptual Fidelity Image Compression with Semantic Refinement

Yichong Xia, Yimin Zhou, Jinpeng Wang, Baoyi An, Haoqian Wang, Yaowei Wang, Bin Chen

TL;DR

DiffPC is a novel two-stage image compression framework that leverages pre-trained Stable Diffusion to achieve high-fidelity reconstructions at ultra-low bitrates. By combining a multi-feature compressor for structural details with a semantic refinement module for high-level context, it effectively navigates the "triple trade-off" between bitrate, distortion, and realism, outperforming existing state-of-the-art methods in perceptual and statistical fidelity.

Visual comparison of DiffPC against other state-of-the-art methods at ultra-low bitrates.

The Challenge: Low Bitrates vs. High Fidelity

In the world of image compression, "low bitrate" usually means "ugly artifacts." Traditional standards (like JPEG) and even modern neural codecs often produce blurriness or blocky distortions when forced to squeeze an image into a tiny file size (e.g., $\le 0.1$ bits per pixel).

The core challenge is the triple trade-off: optimizing simultaneously for low bitrate, low distortion (mathematical similarity like MSE), and high realism (perceptual quality) is incredibly difficult. While Diffusion Models have shown promise in generating realistic images, applying them to compression is tricky. Previous attempts often suffered from "condition leakage"—where the model simply reproduces the blurry artifacts of the compressed signal—or failed to effectively use high-level semantic information (like what is actually in the scene) to guide the reconstruction.

The DiffPC Framework

To address these issues, the authors propose DiffPC (Diffusion-based High Perceptual Fidelity Image Compression), which operates in two distinct stages:

The two-stage DiffPC architecture, featuring low-level image control and high-level semantic refinement.

Stage I: Low-Level Image Control

  • Multi-feature Compressor: Instead of just encoding the image latent, this module captures multi-scale features to preserve structural integrity.
  • IC-ControlNet (ICCN): A specialized control module that provides pixel-level precision to the diffusion process, ensuring the output matches the original layout.
  • Time-Aware Decoupling (TAD): A key innovation to prevent "condition leakage." It disentangles the control signal from the denoising process, forcing the model to predict "residual noise" rather than just copying the distorted input.
  • Importance-Weighted MSE: A loss function that intelligently allocates more bits to complex textures and edges while saving bits on flat areas like skies.

Stage II: High-Level Semantic Refinement

  • Hybrid Semantic Module: The model uses a Q-Former to blend visual semantics (from the degraded image) with textual semantics (generated captions). This provides the "prior knowledge" needed to reconstruct fine details like hair or foliage that are physically lost during compression.

Key Insights

  • Residual Noise Prediction: The "Aha!" moment for solving condition leakage was realizing that the diffusion model shouldn't just look at the compressed image as a template. By treating the task as residual noise prediction via the TAD module, the model learns to "hallucinate" clean textures instead of sharpening blurry ones.
  • Text + Vision = Better Priors: Textual captions (e.g., "a penguin on rocks") provide global context but lack spatial precision. By fusing these with the low-frequency spatial data from the compressed image, DiffPC maintains both semantic meaning and structural accuracy.
  • Smart Bit Allocation: Not all pixels are created equal. By using importance weighting, the authors proved that you can achieve much higher perceived quality by spending the "bit budget" on intricate textures rather than uniform backgrounds.

Datasets and Evaluation

The model was trained on LSDIR (a large-scale dataset of ~85,000 high-definition natural images) and evaluated using several industry-standard benchmarks:

  • CLIC2020 & DIV2K: For high-resolution image compression evaluation.
  • Kodak: 24 classic natural images used for testing compression.
  • COCO30K: Used specifically to evaluate "statistical fidelity" (how well the distribution of generated images matches real ones).

Key Results

  • Perceptual Superiority: DiffPC consistently outperformed state-of-the-art models like HiFiC, MS-ILLM, and CDC across metrics like LPIPS (perceptual similarity) and FID (statistical realism).
  • Ultra-Low Bitrates: At bitrates below 0.1 bpp, where other models start to "collapse" or produce significant artifacts, DiffPC maintained sharp edges and realistic textures.
  • Efficiency: Despite being diffusion-based, the model is surprisingly fast. By reducing the number of sampling steps to 5, it achieves a decoding speed of ~0.88s on a Kodak image while maintaining better performance than many non-diffusion baselines.

Limitations and Future Work

While highly effective, the model still struggles with extremely small faces and text, where semantic consistency can break down. Additionally, an optional "3rd-stage" training using LPIPS loss improved some metrics but occasionally introduced subtle grid-like artifacts in intricate regions. Future work will focus on improving semantic consistency for micro-scale objects and further optimizing sampling speed for real-time applications.

Summary updated

BibTeX
@inproceedings{xia2025diffpc,
  author = {Yichong Xia and Yimin Zhou and Jinpeng Wang and Baoyi An and Haoqian Wang and Yaowei Wang and Bin Chen},
  title = {{DiffPC: Diffusion-based High Perceptual Fidelity Image Compression with Semantic Refinement}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=RL7PycCtAO},
}
Figure