Abstract
This paper introduces a lightweight hybrid video compression framework that combines the speed of traditional codecs (HEVC/VVC) with the restorative power of deep learning. By transmitting a single losslessly compressed reference frame alongside a standard lossy bitstream, the system uses a two-step "Restoration Network" to recover lost details. The framework utilizes deformable convolutions for efficient feature alignment and a confidence-based fusion mechanism to handle temporal changes. Experimental results demonstrate that the proposed method achieves performance comparable to top-tier neural codecs while being significantly faster and more parameter-efficient, making it suitable for real-time applications on consumer hardware.
Introduction
The video compression landscape is currently divided between two paradigms. Traditional codecs, such as High Efficiency Video Coding (HEVC) and Versatile Video Coding (VVC), are highly optimized for hardware and offer excellent speed. However, they struggle to preserve fine textures and high-frequency details at low bitrates, often resulting in blocking and blurring artifacts. On the other hand, pure neural codecs leverage deep learning to achieve superior compression efficiency but typically require substantial computational resources, including high-end GPUs and significant processing time, which limits their practical utility for real-time consumer use.
The primary challenge in deep-learning-based video enhancement is the complexity of temporal alignment. Existing methods often rely on optical flow or non-local attention mechanisms to align multiple frames, which are both memory-intensive and slow. This paper proposes a "middle ground"—a hybrid framework that is lightweight enough for practical deployment while delivering visual quality on par with state-of-the-art neural methods.
Proposed Hybrid Framework
The proposed framework integrates a conventional video encoder with a targeted neural restoration network. The architecture is divided into three main components: the encoder, the general enhancement stage, and the reference-guided enhancement stage.
Encoder and Reference Selection
The system uses a standard video encoder (HEVC or VVC) to compress the bulk of the video data into a lossy bitstream. Simultaneously, a "reference frame"—typically the first frame of a shot—is compressed losslessly using an image encoder (e.g., JPEG-XL). To handle long videos with multiple scenes, the framework incorporates PySceneDetect to identify shot changes. When a new scene is detected, a new lossless reference frame is transmitted, ensuring the restoration network always has access to high-fidelity local textures.
Two-Step Restoration Network
The decoding process involves a two-stage Restoration Network:
- General Enhancement: A CNN-based network trained to recognize and mitigate common codec artifacts like blocking and blurring. This stage operates independently of the reference frame, providing a baseline improvement.
- Reference-Guided Enhancement: This stage is the core innovation. It uses the lossless reference frame to inject specific high-frequency details back into the current frame. By providing the network with an exact copy of what the scene should look like (at least for the reference frame), the model can restore textures with much higher fidelity than generic generative models.
Key Technical Innovations
- Deformable Convolutions: To avoid the high cost of optical flow, the model employs a single deformable convolution layer to align features between the current frame and the reference frame.
- Confidence Map: The network generates a confidence map to determine the relevance of the reference frame for each pixel. If an object has moved or changed significantly, the confidence map directs the network to rely more on the general enhancement rather than the potentially mismatched reference data.
- Two-Step Training Strategy: The authors utilize a training regimen where the weights of the general enhancement stage are frozen while training the reference-guided stage. This forces the second stage to focus exclusively on effectively utilizing the reference information.
Experimental Results
The model was evaluated on standard high-resolution benchmarks, including the UVG, MCL-JCV, and HEVC Class B datasets, using the Vimeo-90K dataset for training.
Quantitative Performance
As shown in the rate-distortion curves, the proposed method (paired with VVC or HEVC) consistently outperforms the base codecs across all datasets. It achieves significant Bjontegaard Delta Bit-Rate (BDBR) savings, meaning it can maintain the same quality as standard VVC while using substantially less data. Furthermore, it remains competitive with heavy neural codecs like C2F and ELF-VC in terms of both PSNR and MS-SSIM.
Efficiency and Speed
A key advantage of this framework is its efficiency. The restoration network contains only 3.7 million parameters, making it approximately three times smaller than competitive models like ELF-VC. In terms of inference speed, the decoder processes a 2K frame in just 38ms on an NVIDIA 1080 Ti. This represents a 5.4x to 7.7x speedup over the state-of-the-art C2F codec, demonstrating its suitability for real-time applications.
Conclusion
This paper presents a practical and efficient hybrid video compression framework. By combining the strengths of traditional hardware-optimized codecs with a lightweight, reference-guided neural restoration network, the system achieves high-fidelity video reconstruction at a fraction of the computational cost of pure neural approaches. Future work will focus on further optimizing the lossless reference codec and improving temporal stability to reduce inter-frame flicker.
Summary updated