Variable Rate Deep Image Compression With a Conditional Autoencoder

Yoojin Choi, Mostafa El-Khamy, Jungwon LeeICCV 2019 · DOI

Abstract

Traditional deep learning-based image compression models are typically optimized for a single bitrate, necessitating the deployment of multiple networks to cover a range of quality levels. This paper presents a variable-rate conditional autoencoder that utilizes two control parameters—the Lagrange multiplier ($\lambda$) and the quantization bin size ($\Delta$)—to achieve continuous rate-distortion trade-offs within a single model. The proposed framework matches the performance of specialized single-rate networks and outperforms classical codecs such as BPG and JPEG2000.

Introduction

Image compression involves a fundamental trade-off between the transmission rate (file size) and distortion (image quality). While classical codecs like JPEG offer a quality slider, state-of-the-art neural compression models are often "fixed-rate," requiring separate training and storage for each desired bitrate. This lack of flexibility is a significant barrier to practical deployment. We address this by introducing a conditional autoencoder that reconfigures its internal logic based on user-defined quality parameters.

Methodology

The core of the system is a Conditional Autoencoder that takes the desired quality level as an additional input alongside the image data.

Dual Control Mechanism

The model employs two distinct "knobs" for rate control:

  1. Lagrange Multiplier ($\lambda$): Acts as a coarse control. The network is conditioned on a discrete set of $\lambda$ values during training, teaching it to prioritize either low bitrate or high fidelity.
  2. Quantization Bin Size ($\Delta$): Acts as a fine control. By training with mixed bin sizes, the model allows for high-precision rate adjustment during inference without retraining.
Architecture of the conditional autoencoder showing the integration of $\lambda$ and $\Delta$ for variable rate control.

Conditional Convolutions and Universal Quantization

To enable responsiveness to $\lambda$, the authors implemented Conditional Convolutions, where layer weights and biases are scaled based on the input parameter. Furthermore, the model utilizes Universal Quantization (dithering) instead of standard additive noise. This approach provides a more accurate approximation of the rounding process, leading to more stable training and improved rate-distortion performance compared to traditional noise-based simulations.

Experimental Results

The model was trained on ImageNet and CLIC datasets and evaluated on the Kodak image set, a standard benchmark for compression algorithms.

Quantitative and Qualitative Performance

The proposed variable-rate model consistently outperforms classical standards like BPG (4:4:4) and JPEG2000. In objective metrics, it achieved a 0.3 dB PSNR gain over BPG at equivalent bitrates. Qualitatively, the model preserves natural textures—such as hair and fabric—and avoids the "blocking" artifacts common in traditional codecs at low bitrates.

Visual comparison of the proposed model against BPG, JPEG2000, and JPEG, demonstrating superior detail preservation and fewer artifacts at similar bitrates.

Conclusion

This work demonstrates that a single conditional neural network can effectively span the entire rate-distortion curve. By combining coarse $\lambda$ conditioning with fine $\Delta$ adjustment, the model provides a practical, efficient solution for variable-rate image compression. This approach matches the performance of multiple specialized models while significantly reducing storage and deployment overhead, making it a viable candidate for real-world mobile and server applications.

Summary updated

BibTeX
@inproceedings{choi2019variable,
  author = {Yoojin Choi and Mostafa El-Khamy and Jungwon Lee},
  title = {{Variable Rate Deep Image Compression With a Conditional Autoencoder}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00324},
}
Figure