Presented at CVPR 2021 by researchers from iSIZE and University College London, this paper introduces a novel approach to bridging the gap between traditional video compression and modern deep learning through a technique called Deep Perceptual Preprocessing (DPP).
TL;DR
The authors propose Deep Perceptual Preprocessing (DPP), a server-side CNN that optimizes video frames before they are encoded by standard codecs like H.264, AV1, or VVC. By "virtualizing" the encoding process during training, DPP achieves an average 11% bitrate saving while remaining 100% compatible with existing hardware decoders on smartphones and TVs.
The Compatibility Challenge in Video Streaming
Video streaming is a constant battle between bandwidth (bitrate) and visual quality. While "learned" video codecs (end-to-end neural networks) have recently shown impressive compression gains, they face a massive deployment hurdle: they require custom, computationally expensive decoders. Most consumer devices rely on dedicated hardware chips to decode standard formats like AVC/H.264. Replacing these is impossible via software updates alone.
DPP addresses this by asking: How can we use the power of AI to improve video quality and reduce bitrate without breaking compatibility with the billions of standard decoders already in the wild?
Methods: The "Virtual Codec" Pipeline
The authors' solution is a "plug-and-play" preprocessor. Instead of replacing the encoder or decoder, they place a CNN at the very beginning of the pipeline. To make the CNN "aware" of how a codec will eventually affect the video, the authors built a virtual codec—a differentiable approximation of a standard video pipeline. This includes:
- Inter/Intra Prediction: Modeling temporal relationships between frames.
- Transform & Quantization: A differentiable version of the Integer Discrete Cosine Transform (DCT) and rounding operations.
- Entropy Estimation: A model that predicts the final compressed data size.
Training with Three Losses
The DPP model is trained end-to-end using a composite loss function that balances perceptual quality (using No-Reference Image Quality Assessment), fidelity (L1 distance and MS-SSIM), and rate (penalizing large bitstreams).
Key Insights
- Server-Side Only: Because the AI only touches the video before it's encoded, the resulting bitstream is a standard-compliant file. The receiver has no idea AI was involved; it simply sees a very efficiently encoded video.
- Cross-Codec Compatibility: By exposing parameters like the Quantization Parameter (QP) during training, a single trained DPP model works effectively across different codecs (AVC, AV1, VVC) and bitrates.
Key Results
- Bitrate Savings: Across AVC, AV1, and VVC, DPP achieved an average bitrate reduction of 11% for the same visual quality. On the VMAF metric (Netflix’s perceptual quality metric), savings reached as high as 18-25%.
- Real-Time Performance: The authors achieved 1080p processing at 50fps on a single NVIDIA T4 GPU and 60fps on a 12-core Intel CPU.
- Efficiency vs. Complexity: As shown in the performance analysis, DPP consistently shifts the rate-distortion curve downward, providing significant BD-rate savings across various execution time complexities.
Limitations and Future Work
Currently, the model only processes the Y (luminance) channel, as it contains the bulk of structural information. Future work could extend this to chroma (color) channels. Additionally, while the decoder sees no extra load, the encoder side requires a GPU or high-performance CPU to run the CNN in real-time before encoding begins.
Reference: Chadha, A., & Andreopoulos, Y. (2021). Deep Perceptual Preprocessing for Video Coding. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 14852-14861.
Summary updated