A Convolutional Neural Network Approach for Post-Processing in HEVC Intra Coding

Yuanying Dai, Dong Liu, Feng Wu · DOI

Abstract

Lossy image and video compression algorithms yield visually annoying artifacts including blocking, blurring, and ringing, especially at low bit-rates. To reduce these artifacts, post-processing techniques have been extensively studied. Recently, inspired by the great success of convolutional neural network (CNN) in computer vision, some researches were performed on adopting CNN in post-processing, mostly for JPEG compressed images. In this paper, we present a CNN-based post-processing algorithm for High Efficiency Video Coding (HEVC), the state-of-the-art video coding standard. We redesign a Variable-filter-size Residue-learning CNN (VRCNN) to improve the performance and to accelerate network training. Experimental results show that using our VRCNN as post-processing leads to on average 4.6% bit-rate reduction compared to HEVC baseline. The VRCNN outperforms previously studied networks in achieving higher bit-rate reduction, lower memory cost, and multiplied computational speedup.

Introduction

Video compression is a fundamental trade-off between file size and visual quality. Modern standards like High Efficiency Video Coding (HEVC) utilize lossy compression, which discards high-frequency data to achieve high compression ratios. This process inevitably introduces visual artifacts such as blocking (visible edges between coding units), blurring (loss of fine detail), and ringing (halos around sharp edges). While HEVC includes built-in tools like the Deblocking Filter (DF) and Sample Adaptive Offset (SAO) to mitigate these issues, these hand-engineered solutions have reached their performance limits.

Recent advances in deep learning have shown promise in image restoration. However, most existing Convolutional Neural Networks (CNNs) for post-processing were designed for JPEG, which uses fixed 8x8 blocks. HEVC is significantly more complex, employing variable block sizes from 4x4 to 32x32. This research introduces VRCNN (Variable-filter-size Residue-learning CNN), a lightweight network specifically optimized for the architectural nuances of HEVC.

The VRCNN Architecture

VRCNN is a 4-layer fully convolutional network that introduces two key architectural innovations to improve performance and efficiency:

  1. Variable Filter Sizes: Unlike standard CNNs that use uniform filter sizes, VRCNN’s middle layers employ a combination of different sizes (e.g., 5x5 and 3x3 in Layer 2; 3x3 and 1x1 in Layer 3). This multi-scale approach allows the network to effectively capture features across the various block sizes used in HEVC's flexible partitioning.
  2. Residue Learning: Instead of predicting the clean image directly, the network predicts the residue—the difference between the compressed input and the original source. This "delta" is added back to the input to produce the final reconstruction. This approach makes training significantly faster and more stable.
The VRCNN architecture featuring variable filter sizes and a residue learning path.

By matching the CNN structure to the compression algorithm's variable-sized transforms, VRCNN can "see" and correct artifacts at the different scales they occur. Furthermore, the network is designed to be shallow (4 layers), which is critical for the tight computational budgets of video decoding.

Experimental Results

The model was trained on 400 natural images compressed via HEVC intra coding at four Quantization Parameters (QPs: 22, 27, 32, and 37). Evaluation was conducted on standard HEVC test sequences (Classes A-E) to ensure generalizability.

Bit-rate Savings

Experimental results demonstrate that VRCNN achieves significant coding gains. On average, the model provides a 4.6% BD-rate reduction for the luminance (Y) component compared to the HEVC baseline. In specific high-motion or detailed sequences, such as RaceHorses, savings reached as high as 7.6%.

BD-rate performance of VRCNN across standard HEVC test classes and sequences.

Efficiency and Complexity

Beyond quality improvements, VRCNN was designed for practical deployment:

  • Memory Footprint: The trained model is approximately 214 KB, which is nearly 12x smaller than deeper models like VDSR.
  • Computational Speed: Due to its shallow architecture and optimized filter counts, VRCNN is more than 2x faster than VDSR during the decoding process.
  • Visual Quality: Qualitative analysis shows that VRCNN is particularly effective at removing ringing artifacts around sharp edges that standard HEVC tools often miss.

Conclusion

VRCNN demonstrates that a specialized, shallow CNN can outperform deeper, general-purpose networks for HEVC post-processing. By utilizing variable filter sizes and residue learning, the model achieves a 4.6% average bit-rate reduction with high efficiency. Future work will focus on extending this approach to "Inter" coding (P and B frames), which involves more complex temporal artifacts and motion compensation.

Summary updated

BibTeX
@inproceedings{dai2016convolutional,
  author = {Yuanying Dai and Dong Liu and Feng Wu},
  title = {{A Convolutional Neural Network Approach for Post-Processing in HEVC Intra Coding}},
  booktitle = {MMM},
  year = {2016},
  doi = {10.1007/978-3-319-51811-4\_3},
}
Figure