Perceptual Friendly Variable Rate Image Compression

Yixin Gao, Yaojun Wu, Zongyu Guo, Zhizheng Zhang, Zhibo ChenWorkshops @ CVPR 2021

Abstract

In this paper, we study a high-fidelity variable rate compression framework. Both conventional and learned codecs in prior works are optimized for objective quality commonly measured by PSNR or SSIM, leaving perceptual quality optimization underexplored. Besides, to circumvent the need for training separate models under different rate conditions, we design a novel coding framework to support variable rate compression. Aside from the variable rate functionality, we propose an adaptive bit allocation unit to strengthen rate-distortion optimization across different rates. Extensive experimental results demonstrate that our proposed approach achieves better subjective quality than methods optimized by objective metrics such as MSE and MS-SSIM on the CLIC 2021 validation dataset.

Introduction

Most image compression algorithms—both traditional standards like JPEG and modern AI-based codecs—are optimized for "objective" metrics such as Mean Squared Error (MSE) or Peak Signal-to-Noise Ratio (PSNR). While these metrics are mathematically convenient, they often fail to capture the nuances of human visual perception. Images with high PSNR can still appear blurry or lose the fine textures that the human eye craves.

Furthermore, most Variational Autoencoder (VAE)-based learned codecs are "fixed-rate," requiring separate models to be trained and deployed for different quality levels. This paper addresses these challenges by introducing a single, variable-rate model that prioritizes perceptual quality—sharpness and texture—over simple pixel-wise error minimization.

Proposed Methodology

The proposed framework builds upon a state-of-the-art 3D context entropy model and introduces two primary innovations:

1. Adaptive Spatial Bit Allocation (The Gain Unit)

To support variable bitrates without the overhead of multiple models, the framework generates a spatial scale map. This map acts as a "gain unit" that scales latent features before quantization, allowing the model to allocate more bits to complex regions where distortion is more noticeable. Crucially, this map is derived from the "hyper-prior" (information already sent to the decoder), meaning it adds zero extra communication overhead.

2. Perceptual Hybrid Loss

To move beyond the characteristic blurriness of MSE-optimized images, the authors utilize a weighted combination of three metrics:

  • MS-SSIM: To maintain structural integrity.
  • LPIPS (Learned Perceptual Image Patch Similarity): A deep-feature-based metric that mimics human judgment.
  • Adversarial Loss (GAN): To "hallucinate" realistic textures, such as skin pores or fabric weaves, that are often lost during high-ratio compression.
Overview of the proposed variable rate image compression framework.

Experimental Results

The model was trained using the CLIC 2021 training set and evaluated on the Kodak and CLIC 2021 validation sets. The results highlight a critical "Rate-Distortion-Perception" trade-off: while optimizing for perception (via GANs and LPIPS) may result in lower PSNR scores, the subjective gain for human viewers is substantial.

Subjective and Qualitative Performance

In blind tests with experts, the proposed Variable Rate (VBR) method was preferred 72.2% of the time compared to a version without adaptive bit allocation, despite nearly identical objective scores. Qualitative results demonstrate that while MSE-optimized models produce clean but blurry reconstructions, the proposed MS-SSIM+LPIPS+GAN optimization retains sharp details like eyelashes and realistic skin textures.

Qualitative comparison of image reconstruction using different optimization metrics. The proposed method (rightmost) maintains significantly better texture and sharpness.

Conclusion

This research demonstrates that a single learned codec can effectively handle variable bitrates while delivering superior perceptual fidelity. By leveraging the hyper-prior for bit allocation and employing a hybrid perceptual loss, the framework achieves reconstructions that are more aligned with human visual preferences. Future work will address the computational complexity of GAN-based decoders and the ongoing challenge of balancing realism with pixel-wise accuracy.

Summary updated

BibTeX
@inproceedings{gao2021perceptual,
  author = {Yixin Gao and Yaojun Wu and Zongyu Guo and Zhizheng Zhang and Zhibo Chen},
  title = {{Perceptual Friendly Variable Rate Image Compression}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  url = {https://openreview.net/forum?id=xoxPKc52bX},
}
Figure