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:
- 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.
- 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.
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.
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