TL;DR
NN-VVC is a hybrid video codec that achieves state-of-the-art performance for machine vision tasks by combining an end-to-end learned image codec (LIC) for intra-frames with the conventional Versatile Video Coding (VVC) standard for inter-frames. By bridging the gap between neural-network-based compression and traditional motion compensation, the system achieves up to a 43% reduction in bitrate for images and 26.8% for video compared to standard VVC.
What Problem Does This Paper Address?
Most video compression standards, like VVC and HEVC, are designed for human eyes, prioritizing visual aesthetics and psychovisual redundancies. However, an increasing amount of internet traffic is consumed by machines (AI models for object detection, tracking, etc.).
Current research for "Video Coding for Machines" (VCM) has split into two camps:
- End-to-End (E2E) Learned Codecs: These excel at image compression but struggle to match traditional codecs in complex video scenarios due to the difficulty of learning efficient motion compensation.
- Conventional Codecs (CVC) with Pre/Post-processing: These are interoperable but often lose critical semantic information at low bitrates, hurting AI model accuracy.
The authors address this by creating a hybrid system that leverages the high-efficiency semantic compression of neural networks for keyframes (intra-frames) while utilizing the mature, hardware-supported motion prediction of VVC for the frames in between (inter-frames).
Methods
The NN-VVC system consists of four primary neural components integrated into a VVC pipeline:
- Learned Image Codec (LIC): A CNN-based autoencoder used to compress intra-frames. It is trained using a self-supervised "proxy loss" that focuses on preserving features useful for machine tasks rather than just pixel-perfect reconstruction.
- Intra Human Adapter (IHA): A critical bridge component. Learned codecs often produce "checkerboard" artifacts that confuse traditional motion estimation. The IHA filters the LIC-reconstructed intra-frames to make them suitable reference pictures for the VVC encoder.
- Conventional Video Codec (CVC): The system uses a standard VVC encoder to handle inter-frame prediction, treating the IHA-filtered frames as references.
- Inter Machine Adapter (IMA): A post-processing CNN that enhances the VVC-decoded inter-frames, restoring semantic details lost during lossy compression to boost final machine task performance.
The LIC itself (shown below) utilizes a progressive probability model and asymmetric numeral systems (ANS) for efficient entropy coding.
Datasets
The authors utilized several large-scale datasets for different stages of the pipeline:
- Training: Open Images V6 (for LIC and IHA training) and BVI-DVC (for IMA training).
- Evaluation: The system was tested against the MPEG VCM Common Test Conditions (CTC), which include:
- Open Images V6 and TVD (Tencent Video Dataset) for image-based tasks (detection/segmentation).
- TVD and SFU (Simon Fraser University) video sequences for object detection and tracking.
Key Insights and Ideas
- The "Artifact Bridge": The most novel insight is the IHA. The authors realized that you can't just plug a learned codec into VVC because the specific types of noise neural networks make (like aliasing or checkerboarding) break the mathematical assumptions VVC makes during motion search. The IHA "translates" neural noise into something VVC understands.
- Task-Agnostic Training: By using a feature-domain proxy loss (based on a pre-trained ResNet-50 backbone) instead of specific task losses (like bounding box coordinates), the codec generalizes well across different machine vision tasks without needing specialized training for each.
- Fallback Mechanism: The system includes a "fallback mode" that reverts to pure VVC at extremely low bitrates where the learned codec's artifacts become too severe for the adapters to fix.
Key Results
NN-VVC significantly outperforms the VVC anchor across all tested machine vision metrics:
- Bitrate Savings: Achieved an average BD-rate reduction of -43.20% for images and -26.8% for videos. This means the system can maintain the same AI accuracy as VVC while using roughly 25-43% less data.
- Task Accuracy: On the TVD-03 tracking sequence, the system showed a BD-MOTA (Multiple Object Tracking Accuracy) gain of 2.67 over VVC.
- Runtime: Interestingly, the NN-VVC encoder is 2 to 10 times faster than the VVC reference software (VTM). However, the decoder is 17 to 38 times slower due to the complexity of the neural probability models.
Limitations and Future Work
- Decoding Complexity: The massive slowdown in decoding (up to 38x) is a significant barrier to real-time deployment. Future work will likely focus on lightweighting the LIC decoder and probability models.
- Resolution Constraints: The current models were trained on resolutions up to 1080p. For 4K or 8K content, the authors currently rely on spatial downsampling, which may not be optimal. Expanding the training data to higher resolutions is a suggested next step.
- Human-Machine Hybridization: The current system is strictly "for machines." The authors note that future research could aim to optimize the system for simultaneous human viewing and machine analysis.
Summary updated