TL;DR
Versatile Video Coding (VVC) offers incredible compression gains over older standards but suffers from massive encoding complexity due to its flexible block partitioning structure. This paper introduces a two-stage framework combining a lightweight convolutional neural network (CNN) for block depth prediction and a probability-based model for partition mode selection. The resulting approach slashes VVC intra-prediction encoding time by over 55% with a negligible impact on video quality.
What Problem Does This Paper Address?
As high-definition (HD) and ultra-high-definition (UHD) video streaming dominates internet bandwidth, efficient video compression is more critical than ever. The latest standard, Versatile Video Coding (VVC/H.266), provides significantly better compression efficiency than its predecessor, HEVC (H.265).
However, these gains come at a steep price: astronomical encoding complexity. VVC introduces a highly flexible QuadTree with nested Multi-type Tree (QTMT) structure. Instead of just splitting blocks into smaller squares, VVC allows Coding Units (CUs) to be split horizontally, vertically, or into asymmetrical ternary structures.
To find the absolute best partition, a standard VVC encoder brute-forces the Rate-Distortion (RD) cost for every single combination. This makes intra-frame prediction incredibly slow, creating a massive bottleneck for real-time applications.
Methods
To bypass this brute-force bottleneck, the authors propose a two-stage fast-partitioning framework:
- Intra Depth Prediction with Deep Feature Fusion (D-DFF): Instead of evaluating every depth level, the encoder predicts the optimal coding depth for 8×8 blocks using spatial-temporal neighbors. The authors designed a lightweight CNN inspired by the Inception architecture. It features a two-path feature extraction mechanism (using parallel 1×1 and 3×3 convolutional kernels) to capture multi-scale spatial-temporal features from a 5×5 neighborhood depth map. To prevent error propagation from incorrect neural network guesses, a conservative depth adjustment strategy calculates a depth offset based on actual neighboring blocks.
- Intra Partition Mode Prediction with Probability Estimation (P-PBE): Once the optimal depth is determined, the encoder still has to choose between five partition shapes (Quadtree, Vertical/Horizontal Binary, and Vertical/Horizontal Ternary). The P-PBE model calculates the statistical probability of each mode based on how frequently they appeared in neighboring, already-coded blocks. The candidate modes are sorted by descending probability, and the encoder early-terminates the search as soon as the current RD cost exceeds the minimum cost found so far.
Datasets
The CNN model was trained and tested on a comprehensive dataset compiled from 58 video sequences across multiple standard benchmarks:
- LIVE dataset
- UVG (Ultra Video Group) dataset
- AVS2 and AVS3 standard sequences
These sequences cover a wide range of spatial and temporal characteristics, resolutions (from 640×360 up to 4K UHD at 3840×2160), frame rates (24 to 60 fps), and bit depths (8-bit and 10-bit). All training data was generated by compressing sequences using the VVC Test Model (VTM 12.0) across four standard Quantization Parameters (QPs: 22, 27, 32, and 37).
Key Insights and Ideas
- Exploiting Spatial-Temporal Coherence: Video frames are highly continuous. The block structure chosen for a specific region is highly correlated with its immediate spatial neighbors and the co-located blocks in the previous frame.
- Lightweight Multi-Scale Fusion: Deep learning models can easily introduce more computational overhead than they save. The authors found that a tiny, two-path network architecture balances accuracy and speed perfectly. Adding more than one 3×3 convolutional layer drastically increases computational overhead while yielding diminishing returns in accuracy.
- Safety Net for Machine Learning: Pure data-driven models inevitably make mistakes. By adding a mathematical adjustment layer (Equation 2 in the paper) that factors in real-world neighbor deviations, the framework ensures that prediction errors don't accumulate and degrade video quality.
Key Results
The proposed framework was evaluated against the standard VTM-12.0 encoder and several state-of-the-art fast-partitioning algorithms:
- Massive Speedups: The combined D-DFF and P-PBE framework achieved an Average Time Saving (ATS) of 55.59% across all test sequences.
- Negligible Quality Loss: This halving of encoding time came at a tiny cost: an average Bjøntegaard Delta Bit Rate (BDBR) increase of just 1.40%.
- UHD Performance: The method shines brightest on HD and UHD sequences (Classes A1, A2, and B), where time savings regularly exceeded 60%.
- Low Overhead: The computational overhead of running the CNN and probability models was virtually negligible, averaging just 0.48% of the total encoding time.
Limitations and Future Work
The primary limitation occurs in video sequences featuring intense, complex motion (such as the BasketballDrill sequence). In these scenarios, the spatial-temporal correlation between neighboring block depth maps weakens. This causes the CNN's prediction accuracy to drop, which slightly increases the bit-rate overhead.
For future work, the authors plan to extend this spatial-temporal depth prediction framework beyond intra-frame prediction and apply it to VVC inter-frame prediction (motion estimation), which could yield even larger cumulative encoding time savings.
Summary updated