Accelerating block-level rate control for learned image compression

Muchen Dong, Ming Lu, Zhan Ma · DOI

Abstract

Despite the unprecedented compression efficiency achieved by deep learned image compression (LIC), existing methods usually approximate the desired bitrate by adjusting a single quality factor for a given input image, which may compromise the rate control results. Considering the Rate-Distortion (R - D) characteristics of different spatial content, this work introduces the block-level rate control based on a novel D - λ model specific for LIC. Furthermore, we try to exploit the inter-block correlations and propose a block-wise R - D prediction algorithm which greatly speeds up block-level rate control while still guaranteeing high accuracy. Experimental results show that the proposed rate control achieves up to 100 times speed-up with more than 98% accuracy. Our approach provides an optimal bit allocation for each block and therefore improves the overall compression performance, which offers great potential for block-level LIC.

Introduction

In image compression, rate control is the critical process of adjusting encoding parameters to achieve a target bitrate while minimizing quality loss. Most current Learned Image Compression (LIC) models apply a single global quality factor (λ) to an entire image. However, images are spatially heterogeneous; smooth regions like a clear sky and textured areas like a field of flowers require different bit allocations to be compressed efficiently.

While block-level rate control allows for this optimized allocation, it has traditionally been computationally prohibitive. Previous methods required encoding every block multiple times to map its specific Rate-Distortion (R-D) characteristics. This paper introduces a high-speed acceleration strategy that leverages a novel model and spatial correlations to make block-level rate control practical for real-world LIC applications.

Methodology

1. A Novel D-λ Model for LIC

Traditional codecs typically use exponential or hyperbolic models to describe the relationship between distortion (D) and the Lagrange multiplier (λ). However, LIC models often utilize a normalized λ (typically between 0 and 1). The researchers discovered that a negative logarithmic function, $D = a' \ln \lambda + b'$, fits the empirical behavior of deep-learning-based codecs much more accurately than traditional formulations.

The proposed D-λ model (red line) demonstrates superior fitting accuracy for LIC data points compared to traditional models like Sullivan's or Jia's.

2. Inter-Block Correlation and R-D Prediction

To eliminate the need for exhaustive encoding passes, the authors identified a linear relationship between a block's average gradient ($\nabla_{pp}$), which serves as a proxy for texture complexity, and its R-D model coefficients. This allows for a "sample and predict" workflow:

  • Sampling: The image is divided into blocks, and only a small fraction is sampled and encoded twice to determine their specific R-D coefficients.
  • Prediction: The linear correlation between gradients and coefficients is used to mathematically predict the R-D curves for all unsampled blocks without additional neural network processing.
  • Optimization: A greedy algorithm then iteratively adjusts bit allocation across all blocks based on these predicted curves, prioritizing regions where bit increases yield the greatest distortion reduction.
Linear relationships between block gradients (∇pp) and model coefficients (a, b, a', b') enable the rapid prediction of R-D curves for unsampled regions.

Experimental Results

The proposed method was evaluated using the Kodak and Tecnick datasets to test general performance and scalability.

  • Efficiency: The "Ours(Fast)" variant achieved a 10× speedup on the Kodak dataset and a massive 100× speedup on the high-resolution Tecnick dataset compared to previous state-of-the-art block-level methods.
  • Accuracy: Despite the acceleration, the bitrate error (ΔR) remained extremely low, typically under 1-2%, representing over 98% accuracy in meeting target bitrates.
  • Visual Optimization: Qualitatively, the model successfully allocates more bits to complex, textured areas and fewer to simple regions, resulting in superior perceived quality compared to global image-level rate control.

Conclusion

This research demonstrates that texture complexity is a highly reliable predictor of neural network compression behavior. By combining a specialized logarithmic D-λ model with gradient-based coefficient prediction, the proposed framework achieves significant speedups for block-level rate control without sacrificing precision. Future work will explore utilizing inter-block correlations during the encoding phase to further bridge the performance gap between block-level and global image-level coding.

Summary updated

BibTeX
@inproceedings{dong2024accelerating,
  author = {Muchen Dong and Ming Lu and Zhan Ma},
  title = {{Accelerating block-level rate control for learned image compression}},
  booktitle = {DCC},
  year = {2024},
  doi = {10.1109/dcc58796.2024.00069},
}
Figure