On Perceptual Lossy Compression: The Cost of Perceptual Reconstruction and An Optimal Training Framework

Zeyu Yan, Fei Wen, Rendong Ying, Chao Ma, Peilin Liu

This paper provides a rigorous theoretical foundation for a phenomenon many deep learning practitioners have observed: images that look "perfect" to the human eye often have higher mathematical error (MSE) than their blurry counterparts. The authors quantify this "perception tax" and propose a cleaner way to train compression models.

The Rate-Distortion-Perception Tradeoff

In the world of lossy compression (like JPEG or modern neural codecs), the traditional goal is to achieve the lowest possible distortion (MSE) at a given bit rate. However, minimizing MSE often results in blurry reconstructions because the model "averages" possible outcomes to minimize statistical error.

Recent research into the Rate-Distortion-Perception (RDP) tradeoff has shown that insisting on higher perceptual quality—making the image look "real" and sharp—inevitably causes the MSE to rise. While previous work suggested that the MSE could increase by at most a factor of two, this paper seeks to precisely quantify this increase and build an optimal framework to reach this theoretical limit without the headache of balancing competing loss functions.

Methods: Theory and Framework

The "2-Fold" Theory

By analyzing the joint distribution of source data and reconstructions, the authors prove a striking theorem for squared-error distortion measures: the rate-distortion function under perfect perception is identical to the standard rate-distortion function evaluated at exactly half the distortion. Mathematically, $R(D, 0) = R(D/2, \infty)$. This means the cost of "perfect" perceptual quality is exactly double the minimum MSE.

A Decoupled Training Framework

Most current "perceptual" models use a Distortion plus Adversarial Loss (DAL) approach, where a single loss function tries to minimize MSE and satisfy a GAN discriminator simultaneously. This is notoriously difficult to tune.

Proposed decoupled training framework

Instead, the authors propose a two-step decoupled framework:

  1. Encoder Optimization: Train an encoder ($E$) and a standard decoder ($G_1$) to minimize MSE only. According to their theory, an MSE-optimized encoder is already optimal for the perceptual task.
  2. Decoder Optimization: Fix the encoder. Train a second, separate decoder ($G_2$) using a Conditional GAN. The discriminator ($J$) is conditioned on the compressed bitstream. This decoder also receives random noise to help it "generate" the fine details lost during compression, without needing an MSE loss.

Key Insights and Results

The authors primarily use the MNIST dataset of handwritten digits. While simpler than natural images, it allows the researchers to empirically map out the entire rate-distortion curve and verify their "2-fold" theorem with high precision.

  • Theoretical Verification: The empirical rate-distortion curve for the perceptual model ($G_2$) almost perfectly matches the $R(D/2, \infty)$ curve, validating the 2-fold theorem in practice.
  • The Encoder is Universal: You don't need a special "perceptual encoder." A standard encoder optimized for MSE is theoretically the best possible starting point for a perceptual system, significantly simplifying pipeline design.
Visual comparison of MSE vs. Perceptual decoders
  • Visual Quality: At extremely low bitrates (e.g., 2 bits or 4 bits), the MSE-optimized decoder ($G_1$) produces unrecognizable, blurry blobs. In contrast, the perceptual decoder ($G_2$) produces clear, sharp digits. However, because the perceptual decoder uses noise to generate details, there is a risk of "semantic" hallucinations (e.g., slightly changing the typeface or inclination of a digit).

Limitations and Future Work

  • Scaling to Natural Images: The proof and experiments rely on MSE and simpler data distributions. Extending this to complex color images using metrics like LPIPS is the logical next step.
  • Computational Overhead: The framework requires training two decoders, though only the perceptual one is needed during final deployment. Future work could look at ways to streamline this process for high-resolution video.

Summary updated

BibTeX
@inproceedings{yan2021perceptual,
  author = {Zeyu Yan and Fei Wen and Rendong Ying and Chao Ma and Peilin Liu},
  title = {{On Perceptual Lossy Compression: The Cost of Perceptual Reconstruction and An Optimal Training Framework}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=onbkzkfYbOAr},
}
Figure