Conditional Perceptual Quality Preserving Image Compression

Tongda Xu, Qian Zhang, Yanghao Li, Dailan He, Zhe Wang, Yuanyuan Wang, Hongwei Qin, Yan Wang, Jingjing Liu, Ya-Qin ZhangarXiv 2023 · DOI

Introduction: The Semantic Hallucination Challenge

Modern image compression has evolved beyond minimizing Mean Squared Error (MSE) to optimizing for perceptual quality. Using Generative Adversarial Networks (GANs), these "perceptual" codecs can produce sharp, realistic textures even at extremely low bitrates. However, this advancement introduces a critical flaw: the Rate-Distortion-Perception (RDP) trade-off. To maintain high perceptual quality (realism) when bits are scarce, models often "hallucinate" details.

While these hallucinations might look convincing, they frequently lead to semantic inconsistency. For example, a codec might reconstruct a perfectly realistic image of a handwritten '7' when the original was a '2'. In complex scenes like urban environments, the layout of objects might be completely altered. This paper addresses this gap by introducing the concept of Conditional Perceptual Quality, ensuring that reconstructions are not only realistic but also semantically anchored to the original content.

Conceptual illustration of semantic hallucinations in image compression and the proposed conditional solution.

Methodology: Conditional RDP Framework

The authors extend the traditional RDP trade-off into a Conditional Rate-Distortion-Perception framework. The core innovation lies in the metric used for perceptual quality. Instead of measuring the divergence between the marginal distributions of original ($X$) and reconstructed ($\hat{X}$) images, the framework measures the divergence conditioned on user-defined side information $Y$: $d(p_{X|Y}, p_{\hat{X}|Y})$.

Two-Step Optimization

The researchers demonstrate that an optimal conditional perceptual system can be realized through a two-stage process:

  1. MSE Optimization: First, a standard codec is optimized to minimize pixel-wise distortion.
  2. Conditional Refinement: A conditional generative decoder is then trained to "refine" the MSE-optimized output, restoring perceptual quality while adhering to the constraints provided by the side information $Y$.

The Necessity of Randomness

A significant theoretical contribution of this work is the quantification of the "Common Randomness Lowerbound." The authors prove that to achieve perfect perceptual quality at low bitrates, a specific amount of stochastic noise ($W$) must be injected into the decoder. This randomness accounts for the information lost during the compression stage, explaining why previous deterministic perceptual codecs often failed at very low bitrates.

Experimental Evaluation

The framework was evaluated on two distinct datasets to test semantic preservation across varying levels of complexity:

  • MNIST (Handwritten Digits): Using the digit label as side information $Y$, the model was tested on its ability to preserve the correct digit identity. The proposed model achieved a 31.19% improvement in classification accuracy (BD-acc) compared to standard perceptual methods, which often "flipped" digits to save bits.
  • Cityscapes (Urban Scenes): Using downsampled segmentation maps as side information, the model's ability to preserve scene geometry was tested. The framework achieved a mean Intersection over Union (mIoU) of 40.32, significantly outperforming the 9.87 achieved by HiFiC, a leading unconditioned perceptual codec.

Key Insights and Results

The study yields several critical insights for the future of generative compression:

  • The "Doubling MSE" Rule: Theoretically, perfect conditional perceptual quality can be achieved by doubling the distortion of an optimal MSE codec, establishing a clear "price tag" for realism.
  • Semantic Anchoring: By using side information as an "anchor," the model is prevented from drifting into incorrect reconstructions. It can still synthesize fine textures (like road grain or foliage), but the structural integrity of the scene (e.g., the location of a car) remains intact.
  • Visual Fidelity: Qualitatively, the images remain sharp with low FID scores, successfully avoiding the "wrong object" hallucinations typical of unconditioned GAN-based compression.

Conclusion and Future Work

This research provides a robust mathematical and practical framework for balancing realism with semantic accuracy in image compression. While the current side information (like segmentation maps) is relatively simple, future work could involve more complex conditioning, such as text captions or natural language descriptions. Additionally, scaling the framework to high-resolution images with massive foundation models remains a promising direction for ensuring reliable, high-quality visual communication.

Summary updated

BibTeX
@misc{xu2023conditional,
  author = {Tongda Xu and Qian Zhang and Yanghao Li and Dailan He and Zhe Wang and Yuanyuan Wang and Hongwei Qin and Yan Wang and Jingjing Liu and Ya-Qin Zhang},
  title = {{Conditional Perceptual Quality Preserving Image Compression}},
  year = {2023},
  eprint = {2308.08154},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.08154},
}
Figure