Optimization of the Block-level Bit Allocation in Perceptual Video Coding based on MINMAX

Chao Wang, Xuanqin Mou, Lei ZhangarXiv 2015

Introduction

In the field of video compression, the efficient distribution of a limited bit budget is critical for maintaining visual quality. Traditional encoders often focus on frame-level bit allocation or minimize the average Mean Squared Error (MSE). However, human perception is highly sensitive to local "sore spots"—specific regions of low quality within a frame. This paper introduces a novel macroblock-level bit allocation method that prioritizes human perception by employing the MINMAX criterion and an iterative Maximum Distortion Descend (MDD) algorithm. By focusing on minimizing the maximum distortion rather than the average, the proposed method achieves significant bitrate savings while enhancing visual consistency.

The Challenge of Block-Level Dependencies

While block-level (macroblock) bit allocation is theoretically more effective than frame-level approaches, it is notoriously difficult to implement due to complex dependencies within the video stream. The authors identify two primary types of dependencies that complicate the optimization process:

  1. Prediction Dependency: Modern codecs like H.264/AVC use spatial and temporal prediction. The reconstruction of a current block depends on the pixels of its previously encoded neighbors. Consequently, changing the quality (via the Quantization Parameter, or QP) of one block ripples through subsequent blocks in the frame.
  2. Measurement Dependency: Perceptual metrics such as the Structural Similarity (SSIM) index utilize sliding windows for calculation. This means the measured quality of a specific block is influenced by the pixel values of surrounding blocks, creating a localized coupling of distortion measurements.
Spatial prediction dependencies (a) and measurement dependencies (b) in macroblock-level perceptual coding.

These dependencies make traditional optimal solutions, such as Dynamic Programming, computationally prohibitive for real-world applications. Most practical encoders settle for simplified models that often result in distracting quality fluctuations across the frame.

Methodology: MINMAX and Maximum Distortion Descend

To address these challenges, the researchers propose a bit allocation strategy based on the MINMAX criterion. Instead of minimizing the average distortion, the goal is to minimize the maximum distortion across all macroblocks, ensuring a uniform perceptual experience.

The MDD Algorithm

Because direct optimization is infeasible due to the aforementioned dependencies, the authors developed the Maximum Distortion Descend (MDD) algorithm. The process begins by assigning a high QP to all blocks, resulting in low initial quality and minimal bit usage. The algorithm then iteratively identifies the macroblock with the highest distortion and lowers its QP to improve its quality. This process continues until the total bit budget is reached.

Rate-Distortion optimization framework (a) and the influence of quantization and reference frames on distortion (b).

Perceptual Guidance with SSIM

Crucially, the algorithm uses SSIM instead of MSE to guide the allocation. While MSE often over-penalizes noise in bright areas where the human eye is less sensitive, SSIM accurately identifies structural losses that are more visually jarring. The MDD algorithm also accounts for "reachable distortion," focusing its efforts on blocks where quality can actually be improved rather than those limited by poor prediction references.

Experimental Results

The proposed MB-MDD method was evaluated using standard benchmark sequences (CIF and 720P) representing various textures and motion complexities. The results demonstrate significant improvements over standard H.264/AVC fixed-QP encoding:

  • Bitrate Efficiency: The method achieved an average of 13.8% bitrate savings (reaching up to 36.6% in specific sequences) for the same perceptual quality.
  • Quality Consistency: Internal quality fluctuations within frames were reduced by 40% to 60%, effectively eliminating the "sore spot" effect.
  • Subjective Preference: In two-alternative forced-choice (2AFC) tests, human viewers consistently preferred MDD-encoded videos, even when they were compressed at lower bitrates than the standard versions.
  • Computational Viability: A simplified version of the MDD algorithm, which adjusts multiple blocks per iteration, typically converges in fewer than 10 passes, making it suitable for high-quality offline encoding applications like Video-on-Demand (VOD).

Conclusion

By shifting the focus from average mathematical error to the minimization of maximum perceptual distortion, this research provides a robust framework for macroblock-level bit allocation. While the iterative nature of the MDD algorithm currently favors offline applications, it sets a new benchmark for quality consistency in video compression. Future work may extend these principles to inter-frame dependencies and newer standards like HEVC or VVC.

Summary updated

BibTeX
@misc{wang2015optimization,
  author = {Chao Wang and Xuanqin Mou and Lei Zhang},
  title = {{Optimization of the Block-level Bit Allocation in Perceptual Video Coding based on MINMAX}},
  year = {2015},
  eprint = {1511.04691},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.04691},
}
Figure