Attention-Based Neural Networks for Chroma Intra Prediction in Video Coding

Marc Górriz Blanch, Saverio G. Blasi, Alan F. Smeaton, Noel E. O'Connor, Marta Mrak

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.

The proposed attention-based neural network architecture for chroma intra-prediction.

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:

  1. 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.
  2. Scheme 2 (Sparse Autoencoders): A sparse autoencoder compresses high-dimensional cross-component features into a compact 3D representation, further lowering overhead.
  3. 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.

Visualization of the original vs. predicted blocks alongside the learned attention masks for boundary references.

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

Abstract

Neural networks can be successfully used to improve several modules of advanced video coding schemes. In particular, compression of colour components was shown to greatly benefit from usage of machine learning models, thanks to the design of appropriate attention-based architectures that allow the prediction to exploit specific samples in the reference region. However, such architectures tend to be complex and computationally intense, and may be difficult to deploy in a practical video coding pipeline. This work focuses on reducing the complexity of such methodologies, to design a set of simplified and cost-effective attention-based architectures for chroma intra-prediction. A novel size-agnostic multi-model approach is proposed to reduce the complexity of the inference process. The resulting simplified architecture is still capable of outperforming state-of-the-art methods. Moreover, a collection of simplifications is presented in this paper, to further reduce the complexity overhead of the proposed prediction architecture. Thanks to these simplifications, a reduction in the number of parameters of around 90% is achieved with respect to the original attention-based methodologies. Simplifications include a framework for reducing the overhead of the convolutional operations, a simplified cross-component processing model integrated into the original architecture, and a methodology to perform integer-precision approximations with the aim to obtain fast and hardware-aware implementations. The proposed schemes are integrated into the Versatile Video Coding (VVC) prediction pipeline, retaining compression efficiency of state-of-the-art chroma intra-prediction methods based on neural networks, while offering different directions for significantly reducing coding complexity.
BibTeX
@article{blanch2021attention,
  author = {Marc Górriz Blanch and Saverio G. Blasi and Alan F. Smeaton and Noel E. O'Connor and Marta Mrak},
  title = {{Attention-Based Neural Networks for Chroma Intra Prediction in Video Coding}},
  journal = {IEEE J. Sel. Top. Signal Process.},
  year = {2021},
  url = {https://openreview.net/forum?id=7xTXLzUnEn},
}
Figure