A Universal Encoder Rate Distortion Optimization Framework for Learned Compression

Jing Zhao, Bin Li, Jiahao Li, Ruiqin Xiong, Yan Lu

Introduction

In traditional image compression standards like JPEG or HEVC, the encoder employs Rate-Distortion Optimization (RDO) to find the optimal balance between file size (rate) and image quality (distortion) for each specific input. In contrast, most modern learned (neural) compression models rely on fixed, pre-trained encoders. While powerful, these "one-size-fits-all" encoders cannot perfectly adapt to the unique textures and details of every individual image, leading to sub-optimal compression performance.

Previous attempts to optimize latent representations per-image often struggled with the "rounding effect." Because latent codes must be rounded to integers for entropy coding, standard gradient-based optimizers like Adam encounter mathematical discontinuities at rounding boundaries, which can lead to unstable optimization and unpredictable jumps in reconstruction quality.

Proposed Framework: Universal RDO

This paper introduces a universal "plugin" framework designed to adaptively optimize latent representations and side information for any differentiable neural compression architecture. The framework consists of two primary components: Latent Optimization (L-OPT) and Side Information Optimization (QL-OPT).

The proposed universal RDO framework optimizes latent representations (y, z) and side information to minimize a rate-distortion loss function.

Latent Optimization (L-OPT)

To address the non-differentiable nature of rounding, the authors implement a content-adaptive update mechanism. Instead of using standard noise-based training proxies, they use actual rounding in the forward pass. The optimization process only updates latents that exhibit large gradients and utilizes a fixed step size. This strategy prevents "jittering"—where minor updates push values across rounding boundaries—ensuring a more stable and effective descent toward the optimal rate-distortion trade-off.

Side Information Optimization (QL-OPT)

Drawing inspiration from traditional codecs, the framework introduces two types of per-image optimized side information:

  • Signal Level: A variable quantization step ($q$) is introduced. The encoder searches for an optimal scaling factor for the latents before rounding, rather than defaulting to the nearest integer.
  • Post-processing Level: A modulation scalar ($m$) is added to a post-processing denoiser (such as DRUNet), allowing the encoder to signal the precise amount of enhancement required for the decoded image.

Experimental Results

The framework was evaluated on the standard Kodak image set and validated through the CLIC (Challenge on Learned Image Compression) 2021 competition.

Rate-distortion performance on the Kodak dataset. The proposed framework significantly outperforms standard codecs like VVC and HEVC, as well as existing neural baselines.

Performance Gains

The proposed framework achieved a 6.6% bit rate saving compared to the VVC standard on the Kodak dataset. Furthermore, the "plugin" nature of the framework was demonstrated by applying it to existing neural models:

  • Mean-Scale Hyperprior: Performance improved by 13.9%.
  • Cheng-Anchor: Performance improved by 12.0%.

In the CLIC 2021 validation challenge, the authors' team (DeepMC) secured 1st place across three different bit rate categories (0.075, 0.150, and 0.300 bpp) in terms of Peak Signal-to-Noise Ratio (PSNR).

Conclusion and Future Work

This work successfully bridges the gap between the powerful feature extraction of deep learning and the flexible, per-image optimization of traditional codecs. By treating RDO as a universal enhancement, the framework provides significant gains across various neural architectures without requiring retraining of the decoder.

While effective, per-image RDO increases computational complexity at the encoder side. Future research will focus on optimizing the speed of this process and extending the framework to handle temporal dependencies in video compression.

Summary updated

BibTeX
@inproceedings{zhao2021universal,
  author = {Jing Zhao and Bin Li and Jiahao Li and Ruiqin Xiong and Yan Lu},
  title = {{A Universal Encoder Rate Distortion Optimization Framework for Learned Compression}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00210},
}
Figure