Abstract
In this paper, we propose a partition-masked Convolutional Neural Network (CNN) to achieve compressed-video enhancement for the state-of-the-art coding standard, High Efficiency Video Coding (HEVC). Our method utilizes the partition information produced by the encoder to guide the quality enhancement process. In contrast to existing CNN-based approaches, which only take the decoded frame as the input to the CNN, the proposed approach considers the coding unit (CU) size information and combines it with the distorted decoded frame such that the degradation introduced by HEVC is reduced more efficiently. Experimental results show that our approach leads to over 9.76% BD-rate saving on benchmark sequences, achieving state-of-the-art performance.
Introduction
High Efficiency Video Coding (HEVC) is the industry standard for compressing high-definition video into manageable file sizes. However, heavy compression introduces visual artifacts such as "blocking" (visible square edges), "ringing" (ghost-like shadows near edges), and blurring. While many researchers have employed CNNs to "clean up" these videos post-decoding, most existing methods rely solely on the final pixel data. They ignore a crucial piece of metadata generated during the encoding process: partition information.
HEVC divides frames into Coding Units (CUs) of varying sizes, ranging from 64x64 down to 8x8 pixels. Because compression artifacts are a direct result of this block-wise processing, knowing the exact location and size of these blocks is key to fixing them effectively. This paper introduces a network that uses this structural "partition map" as a roadmap for enhancement.
Proposed Method: Double-Input CNN
The core of the proposed system is a double-input CNN architecture. Instead of a single stream of images, the network processes two inputs in parallel: the distorted decoded frame and a partition mask derived from the encoder's metadata.
Partition Mask Generation
The researchers explored two primary ways to represent partition information as a visual mask:
- Boundary-based Mask (BM): A simple grid representing the edges of the CUs.
- Mean-based Mask (MM): Each block is filled with the average pixel value of that block.
Experimental results indicated that the Mean-based Mask (MM) was more effective, as it provides the network with better context regarding the content within each partition, helping it distinguish between different coding modes and content types.
Fusion Strategies
The two input streams are processed through residual blocks and then merged. The authors evaluated three fusion strategies: Add-based (element-wise addition of feature maps), Concatenate-based, and Early fusion. The "Add-based" fusion was found to provide the best balance of performance and training stability.
Experimental Results
To validate the model, a large-scale dataset was established using 600 video clips encoded at various resolutions and Quantization Parameters (QP=22, 27, 32, and 37). The model was tested against 20 standard HEVC benchmark sequences.
- BD-Rate Savings: The proposed method achieved an average 9.76% BD-rate saving over the standard HEVC baseline. This implies that the same visual quality can be achieved with nearly 10% lower file sizes.
- Comparison to State-of-the-Art: The system significantly outperformed existing deep learning enhancement methods like VRCNN (3.81% saving) and QECNN-P (5.71% saving).
- PSNR Improvement: On average, the method improved the Peak Signal-to-Noise Ratio (PSNR) by 0.40 dB at high compression levels (QP=37), representing a noticeable jump in objective video quality.
Conclusion
By leveraging metadata that is already available in the HEVC bitstream, the partition-masked CNN demonstrates that compression artifacts are not random, but structurally tied to the CU partitions. Providing this "roadmap" allows the CNN to target errors more precisely. Future work may involve exploring temporal consistency across multiple frames to prevent flickering and investigating the computational feasibility of real-time implementation on mobile devices.
Summary updated