Encoder-Decoder-Based Intra-Frame Block Partitioning Decision

Yucheng Jiang, Han Peng, Yan Song, Jie Yu, Peng Zhang, Songping MaiarXiv 2023 · DOI

Introduction

Modern video coding standards, such as AVS3 and VVC, achieve superior compression efficiency through sophisticated coding tools. However, this efficiency comes at the cost of extreme computational complexity. A primary contributor to this complexity is intra-frame block partitioning, where the encoder recursively evaluates numerous splitting configurations to find the optimal Rate-Distortion (RD) path. In the AVS3 standard, this exhaustive search can account for over 97% of total encoding time, creating a significant bottleneck for real-time applications.

To address this challenge, researchers have proposed a sequence-to-sequence (seq2seq) neural network framework that predicts block partitioning directly, bypassing the recursive search process and significantly accelerating the encoding pipeline.

Methodology

The proposed architecture treats block partitioning as a translation task, converting raw pixel data into a structured partition tree. The system is composed of three primary components: a CNN encoder, a Transformer decoder, and a constraint module.

CNN Encoder

The encoder utilizes a ResNet-18-based architecture to extract spatial features from a 66x66 pixel block (comprising a 64x64 Largest Coding Unit (LCU) and surrounding reference pixels). Crucially, the Quantization Parameter (QP) is incorporated as an input feature, as it dictates the balance between quality and file size, which directly influences partitioning depth. The encoder outputs a fixed-length vector representing the probabilities of "basic edges" (4-pixel segments) serving as boundaries.

Transformer Decoder

To capture the hierarchical dependencies inherent in block splitting—where a child node's split depends on its parent—a 4-layer Transformer decoder is employed. The fixed-length vector from the encoder is reshaped into a (30, 16) matrix to preserve spatial correlations before being processed. The decoder generates a variable-length integer sequence that represents the final partition tree.

The proposed encoder-decoder architecture featuring a CNN encoder and Transformer decoder.

Block Partitioning Constraint (BPC)

Because neural networks do not inherently understand codec syntax, a BPC module acts as a legal filter. It ensures that predicted sequences adhere to the AVS3 standard's constraints, such as maximum depth limits and valid aspect ratios, ensuring the resulting bitstream remains decodable.

Experimental Results

The framework was evaluated using the AVS3 reference software (HPM4.0). The model was trained on 19,200 frames from high-definition datasets, with data balancing used to ensure robustness across both simple and complex textures.

Performance Metrics

The framework achieves a massive reduction in computational overhead. Experimental results indicate an average time saving (TS) of 87.84% compared to the standard HPM4.0 anchor. This speedup is accompanied by an average BDBR increase of 8.09%, representing a manageable trade-off for the dramatic gain in throughput.

Performance comparison of the proposed method against state-of-the-art approaches in AVS3 and VVC standards.

Comparative Analysis

As shown in the performance data, the proposed method offers a superior balance of speed and efficiency compared to previous state-of-the-art (SOTA) methods. By utilizing a Transformer-based decoder, the model achieves over 80% validation accuracy, significantly outperforming traditional decision-tree-based classifiers.

Conclusion

By reframing block partitioning as a sequence-to-sequence prediction task, this research demonstrates that deep learning can drastically reduce video encoding latency. While the 8% BDBR loss is a factor for professional broadcasting, the nearly 88% reduction in encoding time provides a viable path for real-time high-definition video applications. Future work will focus on further minimizing the efficiency gap and extending the model's capabilities to 4K and 8K resolutions.

Summary updated

BibTeX
@misc{jiang2023encoder,
  author = {Yucheng Jiang and Han Peng and Yan Song and Jie Yu and Peng Zhang and Songping Mai},
  title = {{Encoder-Decoder-Based Intra-Frame Block Partitioning Decision}},
  year = {2023},
  eprint = {2310.06412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.06412},
}
Figure