Online Meta Adaptation for Variable-Rate Learned Image Compression

Wei Jiang, Wei Wang, Songnan Li, Shan LiuWorkshops @ CVPR 2021

Introduction

End-to-end learned image compression (LIC) has emerged as a powerful alternative to traditional codecs. However, two primary challenges hinder its practical deployment: the variable-rate problem and the quantization gap. Most LIC models are optimized for a single rate-distortion trade-off, requiring multiple large networks for different bitrates. Furthermore, the non-differentiable nature of quantization necessitates approximations during training, leading to a performance mismatch at test time when "hard" quantization is applied.

This paper proposes Online Meta Adaptation (OML) to address these issues. OML enables a single model to support multiple bitrates while bridging the quantization gap by fine-tuning a small set of "meta parameters" for each image during the encoding process.

Methodology

The proposed approach is built upon a Conditional Variational Auto-Encoder (CVAE) framework. The core innovation lies in the introduction of meta parameters that modulate the decoder's internal features.

Architecture of the proposed Variable-rate meta-LIC and its components.

Meta Parameters and Feature Modulation

Instead of using a static quality-control factor $\lambda$, the authors define it as a set of meta parameters. These parameters are processed through a small network to generate scaling factors that adjust the intermediate layers of the decoder. This mechanism allows the decoder to adapt its reconstruction behavior based on the specific characteristics of the input image and the target bitrate.

Online Adaptation

During encoding, the system performs a few steps of Stochastic Gradient Descent (SGD) to optimize the meta parameters for the specific image being compressed. This optimization is conducted using the actual hard-quantized data, allowing the decoder to learn compensations for errors introduced by the quantization process. The updated meta parameters are then transmitted alongside the compressed bitstream with minimal overhead—approximately 0.00025 bits per pixel (bpp).

Experimental Setup

The OML method was evaluated using the JPEG-AI benchmark dataset, which includes high-resolution images ranging from 256x256 to 8K. The approach was integrated into two baseline models: Minnen2018 and Cheng2020. The training set consisted of 5,264 images, with 350 for validation and 40 for testing.

Results and Analysis

The experimental results demonstrate that OML consistently improves compression performance across all bitrates. For the Cheng2020 baseline, PSNR gains between 2% and 8.8% were observed.

PSNR improvement relative to encoding time increase for various lambda values.

Speed vs. Quality Trade-off

A key advantage of OML is its flexibility regarding computational cost. With only 5 iterations, which adds roughly 1% to the encoding time, the model achieves gains of 1.5% to 5%. Increasing the iterations to 99 (~20% encoding time increase) pushes the gains up to 8.8%. This allows for a tunable balance between encoding speed and reconstruction quality.

Key Insights

  • Quantization Compensation: By performing adaptation in the decoder space using quantized latents, the model effectively compensates for real-world distortion.
  • Stability and Efficiency: Updating only a small number of modulation parameters ($K=4$) ensures training stability and keeps the transmission overhead negligible.
  • Metric Flexibility: The online optimization can target different quality metrics (e.g., MS-SSIM) even if the base model was trained for PSNR, providing post-training adaptability.

Conclusion

Online Meta Adaptation provides a robust solution for variable-rate image compression and quantization error mitigation. By leveraging a small set of image-specific meta parameters, the method achieves significant quality improvements with minimal overhead. Future work may explore continuous learning strategies where the base model weights themselves evolve, or further optimize content-adaptive architectures to maximize the benefits of online adaptation.

Summary updated

BibTeX
@inproceedings{jiang2021online,
  author = {Wei Jiang and Wei Wang and Songnan Li and Shan Liu},
  title = {{Online Meta Adaptation for Variable-Rate Learned Image Compression}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw56347.2022.00065},
}
Figure