Advanced Learning-Based Inter Prediction for Future Video Coding

Yanchen Zhao, Wenhong Duan, Chuanmin Jia, Shanshe Wang, Siwei Ma

Abstract

This paper presents a low-complexity, learning-based approach to inter prediction filtering within the Audio Video coding Standard (AVS4). Traditional inter prediction filters (INTERPF) rely on handcrafted statistical models that often fail to adapt to diverse video content. We propose the Low-complexity Learning-based Inter Prediction (LLIP) method, which replaces traditional mathematical formulas with a lightweight fully connected neural network. To ensure practical deployment, we developed a custom C++ inference engine that eliminates dependencies on heavy deep learning frameworks. Experimental results demonstrate that LLIP achieves measurable coding gains—specifically in chroma components—while providing a 17× speedup over standard Libtorch-based implementations.

1. Introduction

Inter prediction is a cornerstone of modern video compression, leveraging temporal redundancies by predicting current frames from previously decoded ones. However, the prediction process frequently introduces visual artifacts and discontinuities between predicted pixels and their reconstructed neighbors. In the AVS4 standard, the Inter Prediction Filter (INTERPF) is employed to mitigate these issues. While effective, the "one-size-fits-all" nature of handcrafted INTERPF limits its efficiency across varied textures and motion patterns. Deep learning offers a promising alternative, yet the computational overhead and integration challenges of standard deep learning libraries have historically hindered the adoption of neural filters in real-time codecs.

2. Problem Statement

The primary challenge in integrating deep learning into video coding standards is the trade-off between compression efficiency and computational complexity. Most state-of-the-art neural networks for video coding require significant GPU resources and rely on external libraries like Libtorch or TensorFlow. This creates two major bottlenecks:

  1. Latency: The overhead of data transfer between system memory and the GPU often exceeds the actual computation time.
  2. Integration: Dependency on third-party libraries complicates the deployment of standard-compliant decoders across diverse hardware platforms.

3. Proposed Method: LLIP

We propose LLIP (Low-complexity Learning-based Inter Prediction) to address these bottlenecks through architectural simplicity and custom implementation.

3.1 Lightweight Network Architecture

Instead of deep convolutional layers, LLIP utilizes a simple two-layer Fully Connected (FC) network. We evaluated two specific configurations:

  • Scheme 1: Inputs the target pixel ($P$) and four adjacent reconstructed pixels ($R_1$ to $R_4$).
  • Scheme 2: Inputs the same five pixels plus the spatial coordinates ($x, y$) of the target pixel.

The inclusion of spatial coordinates in Scheme 2 allows the model to perform spatial-aware filtering, enabling it to learn position-dependent characteristics of prediction errors.

3.2 Custom C++ Inference Engine

To bypass the overhead of traditional deep learning frameworks, we implemented the inference process in pure C++. By exporting trained weights and biases as floating-point variables, the codec performs neural filtering using basic arithmetic operations. This "module-level substitution" allows LLIP to replace the existing INTERPF math transparently, requiring no additional signaling overhead in the bitstream.

4. Experimental Results

4.1 Setup

The model was trained on the BVI-DVC dataset, encompassing 600 sequences at various resolutions. Evaluation was performed using the AVS4 common test conditions (CTC) on the Exploration Video Model (EVM-0.4) under a Random Access (RA) configuration.

4.2 Compression Efficiency

Scheme 2 demonstrated superior performance, achieving average BD-rate savings of 0.01% for Luma (Y), 0.31% for U, and 0.25% for V components. While the Luma gains are modest, the consistent improvement in Chroma components highlights the model's ability to refine color prediction more effectively than handcrafted filters.

4.3 Complexity and Speed

The model's footprint is exceptionally small, with Scheme 1 utilizing 108 parameters and Scheme 2 utilizing 384. This simplicity, combined with the custom C++ engine, resulted in a 17× encoding speedup and a 3× decoding speedup compared to a Libtorch-based GPU implementation. The results confirm that the primary bottleneck in DL-based coding is often the framework overhead rather than the mathematical operations themselves.

5. Conclusion

LLIP provides a blueprint for the practical integration of neural networks into future video coding standards. By prioritizing lightweight architectures and custom inference paths, we demonstrate that learning-based tools can achieve coding gains without the prohibitive computational costs typically associated with deep learning. Future work will focus on expanding LLIP to additional prediction modes beyond direct inter prediction to further enhance compression performance.

Summary updated

BibTeX
@inproceedings{zhao2024advanced,
  author = {Yanchen Zhao and Wenhong Duan and Chuanmin Jia and Shanshe Wang and Siwei Ma},
  title = {{Advanced Learning-Based Inter Prediction for Future Video Coding}},
  booktitle = {VCIP},
  year = {2024},
  doi = {10.1109/vcip63160.2024.10849787},
}
Figure