A Generalized Rate-Distortion-λ Model Based HEVC Rate Control Algorithm

Minhao Tang, Jiangtao Wen, Yuxing HanarXiv 2019

Abstract

Standard Rate Control (RC) algorithms in High Efficiency Video Coding (HEVC) often suffer from inaccuracies at extreme bitrates due to unrealistic boundary assumptions in their underlying Rate-Distortion (R-D) models. This paper presents a generalized R-D-λ model that incorporates rate and distortion intercepts to better reflect physical constraints. Combined with a hierarchical initialization scheme and a smooth bit-debt amortization strategy, the proposed algorithm achieves up to a 6% improvement in coding efficiency with negligible computational overhead.

Introduction

In video compression, Rate Control (RC) is essential for optimizing visual quality within a fixed bit budget. Most HEVC implementations rely on an R-λ model to determine the Lagrangian multiplier (λ) for bit allocation. However, traditional models assume that zero distortion requires infinite bits and zero bits result in infinite distortion. In practice, video has a "lossless" floor (minimum bits for zero distortion) and a "zero-rate" ceiling (maximum distortion is the image variance). Ignoring these boundaries leads to poor bit allocation at high and low bitrates, causing quality fluctuations and lower overall coding efficiency.

Methodology: The Generalized R-D-λ Model

To address the "boundary problem," we propose a generalized model that accounts for real-world intercepts: $$D \approx C(R+B)^{-K} - T$$ In this equation, $B$ and $T$ act as intercepts for the rate and distortion axes, respectively. This modification allows the model to accurately fit empirical data across the entire bitrate spectrum, particularly at the extremes where standard models typically diverge.

Comparison of R-D curve fitting between the proposed generalized model and the traditional model across various resolutions.

Beyond the core model, the algorithm employs two additional strategies to stabilize the encoding process:

  1. Hierarchical Initialization: Unique initial model coefficients are assigned to different frame types (I-frames vs. hierarchical B-frames). This recognizes that different temporal levels have distinct coding efficiencies and "importance" to the overall sequence.
  2. Bit Amortization: Instead of aggressive compensation for the high bit cost of I-frames, the "debt" is spread over the entire Group of Pictures (GOP). This prevents the rate controller from "panicking" and lowering the quality of subsequent frames too aggressively, ensuring temporal quality smoothness.

Experimental Results

The algorithm was evaluated using the HEVC Common Test Conditions (CTC) across 20 sequences ranging from 240p to 1600p resolutions.

Model Accuracy

The generalized model significantly outperforms the standard R-λ model in fitting accuracy. As shown in the table below, the proposed model achieves a higher coefficient of determination ($r^2$) and a substantial reduction in Root Mean Square Error (RMSE). On average, model fitting accuracy improved by approximately 56% compared to the reference software (HM).

Extracted table from page 4 of A Generalized Rate-Distortion-λ Model Based HEVC Rate Control Algorithm

Coding Efficiency and Rate Accuracy

Implementation in HM-16.9 demonstrated average BDBR savings of 6.09% for Random Access (RA), 3.15% for Low Delay P (LDP), and 4.03% for Low Delay B (LDB) configurations. Furthermore, the algorithm maintained high rate accuracy, with an average bit rate error ($\Delta R$) between 0.7% and 0.9%. These gains were achieved with a negligible 0.5% increase in encoding time, making the approach highly practical for real-world deployment.

Conclusion

By refining the mathematical foundations of the R-D relationship and improving bit allocation logic through hierarchical initialization and amortization, the proposed generalized RC algorithm offers superior coding efficiency and stability. Future work will explore the model's performance on 4K/8K content and its adaptation for Constant Bit Rate (CBR) scenarios.

Summary updated

BibTeX
@misc{tang2019generalized,
  author = {Minhao Tang and Jiangtao Wen and Yuxing Han},
  title = {{A Generalized Rate-Distortion-λ Model Based HEVC Rate Control Algorithm}},
  year = {2019},
  eprint = {1911.00639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.00639},
}
Figure