Deep Learning Based Spatial-Temporal In-Loop Filtering for Versatile Video Coding

Chi Do-Kim Pham, Chen Fu, Jinjia ZhouWorkshops @ CVPR 2021

Abstract

The Versatile Video Coding (VVC) standard represents the state-of-the-art in video compression, yet it still faces challenges in balancing bitrate reduction with visual quality. This paper introduces STILF (Spatial-Temporal In-Loop Filtering), a deep learning-based framework that integrates coding-aware spatial and temporal information into the in-loop filtering process. By employing two specialized neural networks—a Self-Enhancement CNN (SEC) utilizing Coding Unit (CU) maps and a Reference-based Enhancement CNN (REO) leveraging optical flow—the proposed method achieves up to a 6.34% BD-rate reduction. Experimental results demonstrate that STILF effectively suppresses compression artifacts and preserves fine textures across various test sequences.

Introduction

Video compression is fundamentally a trade-off between data rate and reconstruction quality. Standards like VVC utilize in-loop filters to address artifacts introduced during lossy compression, such as blocking, ringing, and blurring. While recent research has explored Convolutional Neural Networks (CNNs) for image restoration, many existing approaches treat video frames as isolated images, ignoring the rich metadata available in the bitstream.

This paper addresses this gap by proposing a framework that utilizes both spatial partitioning information and temporal correlations. By integrating these "hints" directly into the filtering process, the system can more accurately target and correct compression-induced errors.

The STILF Framework

The STILF framework introduces two novel AI-driven modes into the VVC encoder's filtering stage:

  1. Self-Enhancement CNN with CU Map (SEC): This module focuses on spatial restoration. It utilizes a CU (Coding Unit) map—a binary matrix representing the encoder's block partitioning—as an additional input. This allows the network to precisely identify block boundaries where artifacts are most likely to occur. The architecture employs Recurrent Dense Skip Connection (RDSC) blocks and attention mechanisms to refine visual features.
  2. Reference-based Enhancement CNN with Optical Flow (REO): This module exploits temporal redundancy. By calculating the optical flow between the current frame and reference frames, the network can warp high-quality details from neighboring frames to assist in the reconstruction of the current frame.
The STILF framework integrated into the VVC encoder, featuring SEC and REO modules.

For each Coding Tree Unit (CTU), the encoder performs a Rate-Distortion (RD) cost analysis to select the optimal filtering mode among the VVC default filter, SEC, or REO. This adaptive selection ensures that the most efficient tool is used for different content types and motion characteristics.

Experimental Results

The STILF models were trained on high-quality video sequences from the Xiph.org collection and evaluated using VVC standard test sequences (Classes A-E) under Common Test Conditions (CTC).

Quantitative Performance

The performance was measured using the Bjøntegaard Delta bitrate (BD-rate), where lower values indicate better compression efficiency for the same visual quality:

  • All Intra (AI): 3.78% reduction.
  • Low Delay P (LDP): 6.34% reduction.
  • Random Access (RA): 4.64% reduction.

STILF consistently outperformed other state-of-the-art CNN-based filters, such as DRNLF, often doubling the coding gains in specific scenarios.

Qualitative Analysis

Visual comparisons reveal that STILF significantly improves subjective quality. It effectively removes "ringing" artifacts—ghost-like outlines around sharp edges—and preserves complex textures that are typically smoothed over by standard VVC filters.

Qualitative comparison between VTM 9.3, the proposed STILF method, and the raw video frame.

Conclusion and Future Work

STILF demonstrates the power of integrating coding-aware metadata into deep learning-based video filters. While the framework provides substantial bitrate savings, it introduces significant computational complexity, with decoding times increasing by 8.69x to 73.03x. Future research will focus on optimizing these networks for real-time performance and extending the coding-aware approach to color (chroma) components, which currently show less consistent gains compared to the luma component.

Summary updated

BibTeX
@inproceedings{pham2021deep,
  author = {Chi Do-Kim Pham and Chen Fu and Jinjia Zhou},
  title = {{Deep Learning Based Spatial-Temporal In-Loop Filtering for Versatile Video Coding}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00206},
}
Figure