Video compression with CNN-based postprocessing

Di Ma, Fan Zhang, Chen Feng, David BullOpenReview 2024

TL;DR

This paper introduces a novel Convolutional Neural Network (CNN)-based post-processing technique to enhance the quality of compressed video, specifically for the latest VVC and AV1 codecs. By training the network with perceptually-inspired loss functions, they achieve significant improvements in visual quality, leading to substantial bitrate savings without compromising compression efficiency.

What Problem Does This Paper Address?

The ever-increasing demand for high-quality video content, especially in immersive formats, puts immense pressure on video compression technologies. While advanced codecs like VVC and AV1 offer improved compression efficiency, they can still introduce visible artifacts (like blocking, banding, and blurring) when dealing with challenging content or aggressive compression settings. Post-processing, applied after decoding, is a crucial step to mitigate these artifacts and enhance the overall perceptual quality of the reconstructed video. Existing deep learning-based post-processing methods often focus on simple pixel-wise error minimization, which can lead to oversmoothed results and may not fully capture human perception of quality. Furthermore, these methods often show limited gains for more efficient coding configurations. This paper aims to bridge this gap by developing a post-processing approach that specifically targets perceptual quality improvements for state-of-the-art codecs.

Methods

The core of this work is a novel CNN-based post-processing approach built upon the Generative Adversarial Network (GAN) paradigm. The proposed architecture features a generator network, a modified version of SRResNet, which takes compressed image blocks as input and aims to reconstruct them to their original, uncompressed counterparts. This generator is composed of multiple residual blocks (RBs), each containing convolutional layers and a PReLU activation function, with skip connections to facilitate information flow.

A key innovation lies in the training strategy. The authors explore two methodologies:

  1. l1 loss training: The generator is trained solely using a mean absolute difference (l1 loss) between the reconstructed and original image blocks. This is a standard approach for pixel-wise optimization.
  2. Perceptually-inspired loss training: This involves jointly training the generator and a discriminator using a combined loss function. This includes a multi-scale structural similarity index (MS-SSIM) loss for the generator, an l1 loss, and an adversarial loss derived from the discriminator. The discriminator is trained to distinguish between real (original) and fake (generated) image blocks. This approach is designed to optimize for perceptual quality rather than just pixel accuracy.

The network is designed to process image blocks of 96x96 pixels. For evaluation, only the generator network is used, as the discriminator is primarily for training.

Datasets

The authors utilized a publicly available training database called BVI-DVC for training their CNN models. This database contains 432 uncompressed video sequences. For evaluation, they used standard JVET test sequences. The VVC compressed content was generated using VVC VTM 4.0.1, and AV1 compressed content was produced using AV1 libaom 1.0.0. The sequences were encoded at various spatial resolutions (up to 3840x2160) and different Quantization Parameter (QP) values.

Key Insights and Ideas

  • Perceptual Loss is Key for Quality: Training the CNN with perceptually-inspired loss functions (like MS-SSIM and adversarial loss) yields significantly better results in terms of perceived visual quality (measured by VMAF) compared to traditional l1 loss training. This highlights the importance of aligning objective metrics with human perception.
  • GANs Enhance Detail and Contrast: The GAN-based training, particularly with perceptual losses, leads to reconstructed frames that exhibit more textural detail and higher contrast, making them appear more natural and less "oversmoothed" than those produced by l1-trained models.
  • Consistent Gains Across Codecs and Resolutions: The proposed post-processing approach demonstrates consistent coding gains for both VVC and AV1 across various QP values and spatial resolutions, indicating its robustness.
  • Residual Block Count Matters: The number of residual blocks in the generator network impacts both coding gains and computational complexity. The authors found an optimal selection for their experiments, suggesting a trade-off to be managed.

Key Results

  • Bitrate Savings (PSNR-based):
    • Average savings of 4.0% over original VVC.
  • Average savings of 5.8% over original AV1.
  • Bitrate Savings (VMAF-based, Perceptual Loss):
    • Average savings of 13.9% over VVC.
  • Average savings of 10.5% over AV1.
  • Comparison with JVET Proposals: The l1-trained CNN model provided superior enhancement performance compared to two existing JVET proposals (JVET-N0254 and JVET-00079) for VVC, according to PSNR.
  • Qualitative Improvements: Subjective comparisons (Figures 3 and 4) show that the perceptual loss trained models produce fewer blocking artifacts and more natural details compared to the anchor codecs and l1-trained models.
  • Computational Complexity: The proposed method adds significant computational complexity at the decoder. For instance, it is approximately 56.3x and 70.0x more complex than the original VVC and AV1 decoders, respectively, for a configuration with 16 residual blocks.

Limitations and Future Work

  • Computational Complexity: The primary limitation acknowledged is the increased computational complexity introduced by the CNN-based post-processing at the decoder. This could be a barrier for real-time applications on resource-constrained devices.
  • Future Work Suggestions: The authors suggest future research focusing on:
  • Computational Complexity Reduction: Developing more efficient CNN architectures or optimization techniques to reduce the computational overhead.
  • Further Improvement on Training Methodology: Exploring advanced training strategies to potentially achieve even greater coding gains or further enhance perceptual quality.

Summary updated

BibTeX
@misc{ma2024video,
  author = {Di Ma and Fan Zhang and CHEN FENG and David Bull},
  title = {{Video compression with CNN-based postprocessing}},
  year = {2024},
  url = {https://openreview.net/forum?id=yEorfh07Ph},
  howpublished = {OpenReview},
}
Figure