Abstract
Lossy compression algorithms are typically designed to achieve the lowest possible distortion at a given bit rate. However, recent studies show that pursuing high perceptual quality would lead to increase of the lowest achievable distortion (e.g., MSE). This paper provides nontrivial results theoretically revealing that, 1) the cost of achieving perfect perception quality is exactly a doubling of the lowest achievable MSE distortion, 2) an optimal encoder for the "classic" rate-distortion problem is also optimal for the perceptual compression problem, 3) distortion loss is unnecessary for training a perceptual decoder. Further, we propose a novel training framework to achieve the lowest MSE distortion under perfect perception constraint at a given bit rate. This framework uses a GAN with discriminator conditioned on an MSE-optimized encoder, which is superior over the traditional framework using distortion plus adversarial loss. Experiments are provided to verify the theoretical finding and demonstrate the superiority of the proposed training framework.
Introduction
In image and video compression, the primary objective has traditionally been the minimization of mathematical distortion, typically Mean Squared Error (MSE), between the original and reconstructed signals. However, it is well-documented that low MSE does not necessarily correlate with high perceptual quality. Optimization for MSE often leads to blurry reconstructions as the model "averages" potential outcomes to play it safe and minimize error.
To address this, researchers have turned to Perceptual Lossy Compression, frequently utilizing Generative Adversarial Networks (GANs) to produce sharp, natural-looking images. This shift introduces a fundamental "perception-distortion tradeoff." While previous work identified the existence of this tradeoff, the exact quantitative cost of perfect perception remained unknown. This paper addresses this gap by proving the exact cost and proposing a definitive training framework that avoids the complexities of balancing multiple loss terms.
Methodology: The Optimal Training Framework
The authors propose a departure from the standard Distortion plus Adversarial Loss (DAL) framework, which attempts to simultaneously balance MSE and GAN losses. Instead, they introduce a two-step "Optimal Training Framework" that simplifies the optimization process.
The framework proceeds as follows:
- Encoder Optimization: A standard encoder ($E$) and decoder ($G_1$) are trained to minimize MSE. The paper theoretically demonstrates that an encoder optimized for classic rate-distortion is also optimal for perceptual compression.
- Perceptual Decoder Optimization: With the encoder ($E$) fixed, a new decoder ($G_2$) is trained using a conditional GAN. Crucially, the discriminator ($J$) is conditioned on the compressed bitstream (the code) produced by the encoder.
A key finding in this second step is that distortion loss is unnecessary. The GAN's objective is solely to ensure the distribution of reconstructed images matches that of natural images, conditioned on the provided code.
Theoretical Insights: The "2x" Rule
The most significant theoretical contribution of this work is the "2x" Rule. For MSE distortion, the cost of transitioning from a standard reconstruction to one with "perfect" perceptual quality is exactly a doubling of the minimum achievable MSE. While prior research suggested this cost was at most 2-fold, this paper provides a rigorous proof for the "exactly" case.
This insight implies that a "universal encoder" exists; one does not need to modify the compression mechanism (the encoder) to achieve superior perceptual results. An encoder optimized for traditional metrics is mathematically sufficient for perceptual tasks.
Experimental Results
The researchers validated their findings using the MNIST dataset. Despite its simplicity, MNIST allowed for precise empirical plotting of rate-distortion curves.
- Theoretical Verification: As shown in the rate-distortion plots, the empirical data for the perceptual framework sits precisely on the curve representing twice the minimum MSE, validating the proposed theorem.
- Visual Performance: The framework demonstrates clear superiority over traditional DAL methods, producing sharper images at equivalent bit rates. At extremely low bit rates (e.g., 2 bits), where standard MSE decoders produce unrecognizable blurs, the $G_2$ decoder generates clear, recognizable digits. While the GAN may synthesize specific stylistic details (like the slant of a digit) to satisfy the perception constraint, the core semantic information remains consistent with the input.
Discussion and Future Work
While the results on MNIST are compelling, extending this framework to high-resolution color datasets like ImageNet or CLIC presents challenges in computational power and GAN stability. The authors noted a "degeneration" issue where the decoder might ignore encoder inputs, which they mitigated with a discriminator pre-training strategy. Furthermore, while the "exactly 2x" result is elegant for MSE, future research is needed to determine if similar constants apply to other metrics such as SSIM or LPIPS.
Summary updated