CPGA: Coding Priors-Guided Aggregation Network for Compressed Video Quality Enhancement

Qiang Zhu, Jinhua Hao, Yukang Ding, Yu Liu, Qiao Mo, Ming Sun, Chao Zhou, Shuyuan Zhu

Abstract

Compressed Video Quality Enhancement (VQE) is essential for restoring high-quality visuals from bitstreams degraded by compression artifacts. Traditional methods often rely on computationally expensive optical flow or deformable convolutions for temporal alignment, which are prone to inaccuracies. This paper introduces the Coding Priors-Guided Aggregation (CPGA) network, a novel framework that leverages existing metadata within the video bitstream—such as motion vectors and residual frames—to guide spatial and temporal feature aggregation. By utilizing these "coding priors," CPGA achieves state-of-the-art restoration performance with superior computational efficiency. Additionally, we introduce the Video Coding Priors (VCP) dataset, a comprehensive benchmark for evaluating prior-guided enhancement techniques.

Introduction

Video compression is a fundamental technology for modern digital communication, yet it inevitably introduces artifacts such as blocking, blurring, and ringing. The field of Compressed Video Quality Enhancement (VQE) seeks to mitigate these issues by restoring low-quality (LQ) frames to their high-quality (HQ) counterparts.

Existing multi-frame VQE approaches typically utilize neighboring frames to provide additional information for the restoration of a target frame. However, the effectiveness of these methods hinges on accurate temporal alignment. Most current models employ optical flow estimation or deformable convolutions (DCN) to align features. These techniques are not only computationally intensive but also susceptible to "hallucination" errors when motion estimation fails, potentially leading to further degradation of the video quality.

CPGA addresses these challenges by recognizing that the video encoder has already performed significant motion and error analysis. By extracting and utilizing coding priors—specifically Motion Vectors (MVs), Predictive Frames, and Residual Frames—directly from the bitstream, the network can perform alignment and enhancement more accurately and efficiently than methods that attempt to recalculate these values from scratch.

Methodology

The CPGA architecture is designed around three core modules that exploit different aspects of the video bitstream's metadata.

1. Inter-frame Temporal Aggregation (ITA)

The ITA module replaces traditional flow-based alignment. It utilizes the Motion Vectors (MVs) and Predictive Frames already present in the HEVC bitstream to align features from adjacent frames with the target frame. By using an element-wise attention mechanism, the module fuses these aligned features, effectively compensating for temporal gaps without the overhead of independent motion estimation.

2. Multi-scale Non-local Aggregation (MNA)

While ITA handles temporal alignment, the MNA module focuses on spatial restoration. It leverages Residual Frames—which represent the difference between the predicted and actual frames—as guidance. Because residuals naturally highlight areas of high complexity and potential compression error, they serve as an ideal map for a non-local attention mechanism. Operating across three scales, MNA captures global spatial dependencies, allowing the model to prioritize restoration in areas where artifacts are most prominent.

3. Quality Enhancement (QE) Module

The final stage of the network employs Shift Channel Attention Blocks (SCAB). This component enhances the model's receptive field by shifting a subset of feature channels along horizontal and vertical axes. This approach allows the network to incorporate broader spatial context without increasing parameter counts or computational complexity, maintaining the model's efficiency.

The Video Coding Priors (VCP) Dataset

To support research into prior-guided enhancement, the authors developed the Video Coding Priors (VCP) dataset. This benchmark consists of 300 videos compressed via the HEVC (H.265) standard at four Quantization Parameters (QP 22, 27, 32, and 37). Crucially, the dataset includes the extracted MVs, predictive frames, and residuals, providing a standardized environment for testing models that utilize bitstream metadata.

Experimental Results

Quantitative Performance

CPGA demonstrates consistent improvements over existing state-of-the-art (SOTA) models. In evaluations using the JCT-VC testing sequences under the Low Delay B (LDB) configuration, CPGA achieved a 0.03dB PSNR gain over the previous leading model, STDR, at QP37.

Efficiency and Stability

Beyond restoration quality, CPGA offers significant practical advantages:

  • Inference Speed: By bypassing expensive optical flow calculations, CPGA is approximately 10% faster than STDR during inference.
  • Visual Consistency: Qualitative analysis indicates that CPGA reduces quality fluctuations between frames (flicker), resulting in a more stable and visually pleasing output compared to standard HEVC or other enhancement frameworks.

Conclusion and Future Work

CPGA represents a shift in VQE research by demonstrating that the "free" information contained within video bitstreams can significantly improve both the quality and efficiency of neural restoration. While the current implementation is optimized for HEVC, the underlying principles are applicable to other codecs such as AV1 or VVC. Future research will focus on adapting the CPGA framework for real-time 4K processing and exploring the utility of coding priors in related tasks like compressed video super-resolution.

Summary updated

BibTeX
@inproceedings{zhu2024cpga,
  author = {Qiang Zhu and Jinhua Hao and Yukang Ding and Yu Liu and Qiao Mo and Ming Sun and Chao Zhou and Shuyuan Zhu},
  title = {{CPGA: Coding Priors-Guided Aggregation Network for Compressed Video Quality Enhancement}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure