TL;DR
This paper introduces RRNet, a novel in-loop filter for video coding that leverages both the reconstructed video frame and its corresponding prediction residual as inputs. By treating these two components with specialized neural network sub-modules, RRNet significantly improves video quality and coding efficiency beyond existing methods.
What Problem Does This Paper Address?
Modern video codecs like HEVC (H.265) employ block-based coding structures, which, while efficient and hardware-friendly, inevitably introduce visual artifacts such as blocking and ringing, especially at block boundaries. To combat these, in-loop filters are used to enhance the quality of reconstructed frames. While deep learning-based filters have shown promise, they often fail to fully utilize the rich information available within the video compression pipeline. Specifically, the prediction residual, which contains information about block partitions and detailed textures, has been largely overlooked as a direct input to these filters. This paper aims to bridge this gap by proposing a method that effectively incorporates this residual information to achieve superior reconstruction quality.
Methods
The core of the proposed solution is the Residual-Reconstruction-based Convolutional Neural Network (RRNet). RRNet is designed with two distinct sub-networks:
- Residual Network: This sub-network takes the prediction residual as input. It utilizes residual blocks, a common technique in deep learning for image recognition, to effectively learn and preserve the detailed features and gradient information present in the residual. This is crucial for capturing fine textures and accurate block partition information.
- Reconstruction Network: This sub-network processes the reconstructed video frame. It employs an autoencoder-like architecture with downsampling and upsampling layers, enhanced by skip connections. This design allows it to learn both local details and global context from the reconstructed frame.
These two sub-networks process their respective inputs independently, and their feature maps are then concatenated. This combined feature representation is fed into a final convolutional layer to produce the enhanced reconstruction. The network is trained using a Mean Squared Error (MSE) loss function and incorporates residual learning to accelerate training.
Datasets
The authors utilized the DIV2K dataset for training and validation. The original PNG images from DIV2K were converted to YUV video format using FFMPEG. These videos were then encoded using a modified HEVC reference software to generate reconstructed frames and their corresponding residuals at various Quantization Parameters (QPs: 22, 27, 32, 37). Finally, 64x64 blocks were extracted from the Luma component of these frames to serve as inputs and labels for training the RRNet.
Key Insights and Ideas
- The Residual is Rich: The prediction residual, often seen as just error information, actually contains valuable structural information (like block partitions) and detailed texture information that is lost in the reconstructed frame.
- Specialized Networks for Specialized Data: Treating the residual and the reconstructed frame with separate, tailored neural network architectures (Residual Network for residual, Reconstruction Network for frame) allows for more effective feature extraction from each input type.
- Dual-Input Synergy: Combining the features learned from both the residual and the reconstructed frame leads to a synergistic effect, significantly improving reconstruction quality beyond what either input could achieve alone.
- Residual Learning Accelerates Training: The inclusion of residual learning in the Residual Network helps to speed up the training process by allowing the network to focus on learning the differences rather than the entire output.
Key Results
The proposed RRNet achieved significant improvements in coding efficiency, measured by BD-rate savings, compared to HEVC and state-of-the-art CNN-based methods.
- All Intra Case: RRNet outperformed VRCNN, EDSR Residual Blocks, and Partition-aware CNN by an average of 2.1%, 2.0%, and 1.7% BD-rate savings, respectively. In some sequences, like BasketballDrill, the savings reached up to -13.8%.
- Random Access Case: RRNet achieved an average BD-rate gain of -0.7% and -3.8% compared to VRCNN and HEVC, respectively.
- Multiple Inputs Benefit: The dual-input approach (residual + reconstruction) showed an average BD-rate saving of -1.0% compared to using only the reconstruction input. It also outperformed a partition-aware dual-input method by -0.6%.
- Subjective Quality: Visual comparisons (Fig. 7) demonstrated that RRNet produced smoother and more abundant textures with fewer artifacts compared to HEVC and VRCNN, especially in challenging sequences.
Limitations and Future Work
- Computational Complexity: While effective, RRNet introduces increased computational complexity, particularly on the encoder side, compared to HEVC. The authors acknowledge this and suggest future work on model compression and acceleration techniques (e.g., parameter pruning, quantization, low-rank factorization) to mitigate this.
- QP-Specific Models: The current models are trained for specific QP values. While a QP32 model can be reused for a limited range of QPs (-2 to +2 AQP), the authors suggest that developing more advanced in-loop methods and exploring complexity reduction for inference time models are important future directions.
- Generalization: The paper focuses on HEVC. Future work could explore adapting these techniques to other video coding standards like VVC.
Summary updated