A high accuracy and low complexity quality control method for image compression

Xiao Yan, Zhangxin Gong, Wenqiang Wang, Xiaoyang Zeng, Yibo FanarXiv 2022 · DOI

Introduction

Large-scale digital platforms, such as e-commerce sites and social networks, process millions of images daily. To optimize storage and bandwidth, these platforms must compress images aggressively while maintaining a consistent visual quality threshold. However, achieving a target quality level—typically measured by Peak Signal-to-Noise Ratio (PSNR)—is computationally expensive because the optimal compression settings vary significantly depending on image content.

The Quality Control Challenge

The primary difficulty in image quality control lies in the diversity of visual data. A simple image of a clear sky requires a different Quantization Parameter (QP) than a high-frequency texture like a forest to reach the same PSNR. Current industry practices often fall into three suboptimal categories:

  1. Iterative Encoding: Repeatedly encoding an image with different QPs until the target is met. This is too slow for real-time production.
  2. Video-Based Heuristics: Relying on temporal redundancy, which is unavailable for standalone images.
  3. Fixed Settings: Using a "safe" conservative QP, which wastes bits on simple images and produces artifacts in complex ones.
Comparison of PSNR-QP curves for different image types (bear vs. jet) across multiple encoders.

Proposed Method: One-Shot Quality Prediction

The researchers propose a "one-shot" algorithm that predicts the optimal QP without trial-and-error encoding. The method is built on a linear $D-\lambda$ (Distortion-Lagrange multiplier) model, where PSNR is modeled as a linear function of the Lagrange multiplier ($\lambda$) in the logarithmic domain: $$PSNR = a \cdot \log_{10}(\lambda) + b$$

To estimate the image-specific parameters $a$ and $b$, the authors introduced a metric called Logarithmic Error (LE). The process involves:

  • DCT Analysis: Performing a single Discrete Cosine Transform (DCT) on the original image blocks.
  • LE Calculation: Computing the quantization distortion of the original data at three specific steps.
  • Inference: Using pre-trained linear models to map LE values to (PSNR, QP) pairs, which then define the final $D-\lambda$ model.

This approach is entirely decoupled from the internal logic of the encoder (such as partitioning or prediction), making it "encoder-agnostic" and extremely fast.

Experimental Evaluation

The model was validated using the DIV2K, Kodak, and Alibaba E-commerce datasets.

Accuracy and Speed

The proposed method achieved a control deviation from the target PSNR of only 0.18% to 0.23%, significantly outperforming previous state-of-the-art (SOTA) methods which typically range from 2.6% to 5.3%. Crucially, the algorithm determines the optimal QP in just 29ms, making it at least two orders of magnitude faster than iterative SOTA approaches.

Real-World Production Impact

When deployed on Alibaba's e-commerce platform with a target PSNR of 40dB, the method demonstrated substantial gains:

  • Quality Consistency: The "bad case ratio" (images failing to meet the quality target) dropped from 7.3% to 1.6%.
  • Efficiency: It achieved a 7.22% bitrate reduction compared to a fixed-QP strategy.

Conclusion

By analyzing raw pixel data through DCT coefficients, this method provides a highly accurate and computationally efficient solution for image quality control. While currently focused on hitting PSNR targets, future extensions could adapt this "original data analysis" framework for direct bitrate control, potentially leading to a unified one-shot Rate-Distortion optimization system.

Summary updated

BibTeX
@misc{yan2022high,
  author = {Xiao Yan and Zhangxin Gong and Wenqiang Wang and Xiaoyang Zeng and Yibo Fan},
  title = {{A high accuracy and low complexity quality control method for image compression}},
  year = {2022},
  eprint = {2210.00821},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00821},
}
Figure