Deep Learning-Based Intra Mode Derivation for Versatile Video Coding

Linwei Zhu, Yun Zhang, Na Li, Gangyi Jiang, Sam Kwong

TL;DR

The paper introduces Deep Learning-Based Intra Mode Derivation (DLIMD), a novel approach for Versatile Video Coding (VVC) that frames intra-mode selection as a multi-class classification problem. By enabling both the encoder and decoder to independently derive the optimal intra prediction mode, the method eliminates the need to transmit mode signaling bits, achieving an average bitrate reduction of up to 2.28%.

What Problem Does This Paper Address?

In modern video compression standards like Versatile Video Coding (VVC), intra coding exploits spatial redundancies within a single frame to reduce file size. VVC utilizes 67 distinct intra prediction modes (such as Planar, DC, and various angular modes) to capture diverse textures and edges.

To help the decoder know which mode was used, the encoder typically has to signal this choice in the bitstream using a Most Probable Mode (MPM) list. As shown in VVC Intra Mode Signaling, even with optimized prefix codes, signaling these modes consumes a significant portion of the total bitrate—ranging from 8.28% at high qualities up to 20.4% at lower bitrates. The authors address this overhead by asking: Can we derive the intra mode directly at the decoder side using already reconstructed neighboring pixels, thereby skipping mode signaling entirely?

VVC Intra Mode Signaling

Methods

The authors propose Deep Learning-Based Intra Mode Derivation (DLIMD). Instead of relying purely on traditional hand-crafted statistics, DLIMD treats mode selection as a 67-class classification task solved via a hybrid neural network architecture.

The framework integrates into the standard VVC pipeline using a Rate-Distortion Optimization (RDO) cost competition, as illustrated in DLIMD Framework. A single binary flag is added to the bitstream to indicate whether the traditional signaling method or the proposed DLIMD scheme is selected for a given block.

DLIMD Framework

The network architecture consists of two primary components:

  1. Feature Learning Network: A Convolutional Neural Network (CNN) that extracts high-dimensional spatial features from padded reference pixels surrounding the target block. To handle VVC's highly variable and non-square block partitions with a single model, reference pixels are padded to a fixed $64 \times 64$ context size.
  2. Intra Mode Derivation Network: A Fully Connected Network (FCN) that fuses the deep learned features with crucial hand-crafted features. These hand-crafted features include a gradient histogram of the context, the intra modes of five neighboring blocks (Up-Left, Up, Up-Right, Left, Bottom-Left), and the current Quantization Parameter (QP).

By feeding the QP directly into the network as a feature, a single trained model can dynamically adapt to any bitrate setting without requiring separate networks for different quality levels.

Datasets

  • Training: The network was trained using the DIV2K dataset (900 high-resolution images). The images were downsampled, converted to the YCbCr color space, and encoded using the VVC Test Model (VTM 5.0) across four standard QPs (22, 27, 32, 37) to gather a balanced dataset of 50,000 samples per mode/QP combination (totaling ~80 GB of data).
  • Evaluation: The method was evaluated on 22 standard VVC test sequences spanning various resolutions and content categories (Classes A1, A2, B, C, D, and E) under the standard Joint Video Experts Team (JVET) Common Test Conditions.

Key Insights and Ideas

  • The Power of Feature Fusion: A key "aha" moment in the paper is the ablation study comparing learned vs. hand-crafted features. Relying solely on deep features or solely on hand-crafted features yielded a validation classification accuracy of only ~25%. Combining them boosted accuracy to 35%, proving that spatial context from neighboring blocks provides complementary information that CNNs struggle to learn implicitly from pixels alone.
  • Unified Model Design: Rather than training 25 separate networks for different block shapes or multiple networks for different QPs, the authors successfully unified the process. Using a smart reference pixel padding technique and treating QP as an input feature allowed a single model to generalize across the entire VVC configuration space.

Key Results

Evaluated against the VVC Test Model (VTM 5.0), the proposed DLIMD approach demonstrates significant compression gains:

  • Bitrate Savings (BD-BR): Achieved an average bitrate reduction of 2.28% for the Y (luma) component, 1.74% for U, and 2.18% for V, outperforming existing state-of-the-art hand-crafted mode derivation methods.
  • Low Bitrate Excellence: The gains are more pronounced in low-bitrate scenarios (large QP settings), where luma bitrate reductions reached up to 3.64% on average.
  • Mode Bit Reduction: DLIMD successfully saved between 30.4% and 36.2% of the bits explicitly allocated to intra mode signaling.

Limitations and Future Work

The primary bottleneck of DLIMD is its computational complexity. Introducing deep learning inference into both the encoding and decoding loops drastically increases processing times. On a CPU+GPU platform, encoding takes 33.6 times longer, and decoding takes 140.3 times longer than the anchor VVC model. On a pure CPU platform, decoding slows down by a factor of 604.8.

The authors experimented with a lightweight variant (DLIMD-L) that prunes network nodes, successfully reducing decoding complexity by over 100x, but this came at the cost of cutting the compression gains roughly in half (Y BD-BR dropped to -1.17%). Future work will focus on optimizing network architectures and leveraging hardware-level quantization to make the approach viable for real-time deployment.

Summary updated

BibTeX
@article{zhu2023deep,
  author = {Linwei Zhu and Yun Zhang and Na Li and Gangyi Jiang and Sam Kwong},
  title = {{Deep Learning-Based Intra Mode Derivation for Versatile Video Coding}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2023},
  doi = {10.1145/3563699},
}
Figure