Abstract
This paper presents a novel end-to-end perceptual image compression framework that integrates Relativistic Average Least Squares GANs (RaLSGANs). By combining a hybrid distortion metric—incorporating MSE, LPIPS, and GAN loss—with an enhanced backbone featuring split attention blocks and Gaussian Mixture Models, the proposed method achieves superior subjective visual quality. The approach effectively mitigates common compression artifacts like blurring while maintaining high training stability. Experimental results on benchmark datasets demonstrate that the model outperforms existing state-of-the-art perceptual compression methods, particularly at lower bitrates.
Introduction
Traditional image compression standards, such as JPEG or HEVC, and many early learned models primarily optimize for pixel-level fidelity metrics like Peak Signal-to-Noise Ratio (PSNR) or MS-SSIM. While these metrics are computationally efficient, they often fail to align with human visual perception. High PSNR scores can still result in images that appear blurry or "plastic" to the human eye.
Generative Adversarial Networks (GANs) have emerged as a powerful tool for synthesizing realistic textures in image reconstruction. However, training GANs within a rate-distortion optimization (RDO) framework is notoriously challenging, often leading to training instability or the generation of "hallucinated" artifacts. This research bridges the gap between high-fidelity reconstruction and stable, end-to-end training by introducing a relativistic approach to the adversarial objective.
Proposed Method
The authors build upon the state-of-the-art baseline established by Cheng et al. (2020), introducing several architectural and algorithmic innovations to enhance perceptual quality and stability.
RaLSGAN Loss
A core contribution is the use of the Relativistic Average Least Squares GAN (RaLSGAN) loss. Unlike standard GANs where the discriminator classifies images as "real" or "fake" in isolation, the relativistic approach estimates the probability that a real image is more realistic than the average fake image, and vice versa. When combined with a Least Squares (LS) objective, this formulation provides smoother gradients, significantly improving training stability and preventing the collapses common in GAN-based compression.
Hybrid Distortion Metric and Backbone
The total loss function is a weighted combination of Mean Squared Error (MSE) for pixel accuracy, Learned Perceptual Image Patch Similarity (LPIPS) for deep perceptual alignment, and the GAN loss. To support this, the backbone incorporates split attention blocks and Gaussian Mixture Models (GMMs) for advanced entropy modeling, allowing for more accurate probability distribution estimation of the compressed latent representation.
Specialized Enhancements
The framework also includes a textual region enhancement pipeline. Using an OCR-based detection system, the model identifies text regions and encodes them with higher priority or via a residual enhancement using the VVC codec. Additionally, "fake quantization" is implemented during training to ensure consistency between training and deployment by avoiding floating-point calculation errors.
Experimental Setup
The model was trained using the DIV2K dataset, consisting of 800 high-resolution 2K images, cropped into $192 \times 192$ patches. Evaluation was performed on the standard Kodak benchmark and the CLIC 2021 (Challenge on Learned Image Compression) validation dataset.
Results and Analysis
The experimental results highlight a clear trade-off between traditional distortion metrics and perceptual quality. While incorporating GANs may slightly reduce PSNR, it leads to significantly sharper and more natural-looking images.
Quantitative Performance
As shown in the rate-distortion curves, the proposed models optimized with LPIPS and GAN loss achieve lower (better) LPIPS scores than recent perceptual compression approaches like HiFiC, especially at lower bitrates. In the CLIC 2021 competition, the ANTxNN_SSIM variant ranked 2nd in the MS-SSIM category, while the perceptual ANTxNN model ranked 2nd and 3rd in terms of Fréchet Inception Distance (FID) across various bitrates.
Key Insights
- Stability through Relativism: The choice of RaLSGAN was pivotal. It allowed for joint training of the encoder and decoder without the typical instability seen when MSE is not the dominant loss term.
- Discriminator Design: Comparisons between a standard $4 \times 4$ patch-based discriminator and a more complex Residual Block-based version ($disc_{RB}$) revealed that the simpler $4 \times 4$ version performed slightly better for this specific architecture.
Conclusion
This work demonstrates that integrating relativistic GANs into an end-to-end compression framework can significantly enhance the subjective quality of compressed images. While the current approach introduces some computational complexity due to autoregressive components and attention blocks, it sets a new benchmark for perceptual fidelity. Future work may focus on streamlining the text enhancement pipeline into a single end-to-end network and further optimizing the model for real-time performance on edge devices.
Summary updated