Abstract
This paper presents a size-agnostic, attention-based neural network designed for chroma intra-prediction in the Versatile Video Coding (VVC) standard. By leveraging a multi-model training approach and architectural optimizations—such as layer folding and sparse autoencoders—the proposed model achieves a 90% reduction in parameters compared to previous state-of-the-art deep learning models. Experimental results demonstrate significant compression gains, with average BD-rate reductions of up to -2.38% for chroma components, while substantially lowering decoding complexity and memory footprint.
Introduction
Intra-prediction is a fundamental component of modern video codecs, reducing spatial redundancy by predicting current block pixels from neighboring reconstructed samples. In the Versatile Video Coding (VVC) standard, the Cross-Component Linear Model (CCLM) is typically used for chroma prediction, exploiting the correlation between luminance (luma) and chrominance (chroma) channels. While Deep Learning (DL) models have shown potential to surpass these linear methods, their practical adoption is hindered by high computational complexity and the need for multiple models tailored to specific block sizes.
Proposed Methodology
The authors propose a unified, size-agnostic architecture that utilizes an attention mechanism to dynamically weight the influence of boundary reference samples on each predicted pixel.
Architecture and Attention Module
The core of the system is an attention module that processes both boundary references and luma inputs. Unlike traditional convolutional neural networks (CNNs) that act as "black boxes," this attention-based approach learns to track spatial dependencies, effectively mimicking the directional logic of traditional intra-prediction modes but with greater flexibility.
To address the scalability issue, the model is trained using a multi-model strategy where it is exposed to various block sizes (4x4, 8x8, and 16x16) simultaneously. This allows a single set of weights to be used across different coding unit dimensions, significantly reducing the memory required to store model weights.
Optimization Schemes
Three schemes were introduced to further reduce complexity:
- Scheme 1 (Layer Folding): By removing non-linear activations (ReLU) between specific 1x1 and 3x3 convolutions, layers can be mathematically merged during inference, reducing the parameter count by approximately 90% compared to the original attention-based SOTA.
- Scheme 2 (Sparse Autoencoders): A sparse autoencoder compresses high-dimensional cross-component features into a compact 3D representation, further lowering overhead.
- Scheme 3 (Integer Precision): Floating-point operations are converted to fixed-point integer arithmetic using bit-shifts and lookup tables for the Softmax function, facilitating hardware-friendly implementation.
Experimental Results and Discussion
The models were integrated into the VVC Test Model (VTM 7.0) and evaluated under Common Test Conditions (CTC) using the DIV2K dataset for training and validation.
As shown in Figure 4, the attention masks reveal how the network prioritizes specific boundary samples for different regions of the block. Scheme 1 emerged as the most effective balance of performance and complexity, yielding average BD-rate reductions of -0.25% (Y), -2.38% (Cb), and -1.80% (Cr). While decoding time remains higher than the VVC anchor, the proposed optimizations reduced the overhead from over 2000% in previous SOTA models to as low as 512% in Scheme 3.
Conclusion
This work demonstrates that attention-based neural networks can be made efficient enough for practical video coding through strategic architectural simplifications and size-agnostic training. The transition to a "one model" approach is a critical step toward the deployment of deep learning in real-time codecs. Future research will focus on extending the model to non-square block sizes and further refining integer-precision performance to mitigate the efficiency drop seen in fixed-point implementations.
Summary updated