TL;DR
This paper introduces MobileNVC, the first neural video codec capable of real-time 1080p decoding on a mobile device. By leveraging efficient block-based motion compensation and a novel parallel decoding pipeline, MobileNVC achieves significant compression gains over previous mobile codecs while drastically reducing computational cost.
What Problem Does This Paper Address?
Neural video compression has made impressive strides, even surpassing traditional codecs like HEVC in certain scenarios. However, these advancements often come at a steep computational price. Most state-of-the-art neural codecs rely on complex, floating-point operations, particularly for temporal modeling (like pixel-dense warping), making them impractical for deployment on resource-constrained mobile devices. While some research has shown real-time decoding is possible on mobile, it's typically limited to lower resolutions (720p) and specific color formats (RGB). This paper aims to bridge this gap by developing a neural codec that can efficiently decode high-definition (1080p) YUV video in real-time on a mobile platform.
Methods
The core of MobileNVC's efficiency lies in two key innovations:
- Efficient Block-Based Motion Compensation and Quantization: Instead of computationally expensive pixel-dense warping, MobileNVC utilizes a block-based motion compensation algorithm. This approach leverages a specialized "warping core" found in mobile accelerators, significantly reducing computational load. Furthermore, the authors demonstrate how to quantize this model to 8-bit integer precision, a crucial step for mobile deployment, while mitigating the performance degradation often associated with quantization. They propose specific strategies for quantizing different parts of the network, including a novel approach for the scale parameter of the hyperprior.
- Parallel Decoding Pipeline: To achieve real-time performance, MobileNVC employs a carefully orchestrated parallel decoding pipeline. This pipeline concurrently utilizes different mobile processing units: the neural signal processor (NPU) for neural network computations, the mobile GPU for parallel entropy coding, and the warping core for motion compensation. This parallel execution, combined with efficient data sharing between these units, minimizes latency.
Datasets
- Training: Vimeo90k dataset was used for training.
- Validation/Tuning: Xiph-5N dataset was used for validation and hyperparameter tuning.
- Evaluation: The models were evaluated on several standard video compression benchmarks: HEVC-B test sequences, UVG-1k sequences, and MCL-JVC sequences.
Key Insights and Ideas
- Leveraging Mobile Hardware is Crucial: The paper strongly emphasizes that simply porting desktop-optimized neural codecs to mobile won't work. Success requires designing algorithms that specifically map to the capabilities of mobile hardware, like the dedicated warping core.
- Block-Based Warping is a Sweet Spot: While dense warping offers slightly better compression, the computational cost is prohibitive. Block-based warping, especially with overlap, provides a compelling trade-off between compression efficiency and computational feasibility on mobile.
- Quantization is Not Trivial: Naively quantizing neural networks can lead to significant performance drops. The paper highlights the need for careful quantization strategies, particularly for the mean-scale hyperprior, and demonstrates effective techniques to minimize this loss.
- Parallelism is Key for Real-Time: Achieving real-time decoding on mobile isn't just about making individual components efficient; it's about orchestrating them to work in parallel across different processing units.
Key Results
- Real-time 1080p Decoding: MobileNVC is the first neural codec to achieve real-time (over 30 FPS) decoding of 1080p YUV420 video on a mobile device.
- Compression Efficiency: It achieves up to 48% BD-rate savings compared to the previous on-device codec (MobileCodec int8).
- Computational Reduction: The receiver-side MAC count is reduced by 10x compared to MobileCodec.
- Performance vs. Standard Codecs: While still underperforming H.265 (FFmpeg) in compression, MobileNVC offers a significant leap in efficiency for neural codecs on mobile.
- Warping Strategy Impact: Overlapped block-based warping provides a 19% BD-rate saving over vanilla block warping, with minimal computational overhead compared to dense warping.
- Quantization Impact: Quantizing to 8-bit integers leads to a BD-rate increase, but careful strategies (like specific scale quantization and learned grids) keep this increase manageable (42.5% for QAT).
Limitations and Future Work
- Encoding Speed: The paper notes that the encoding pipeline was not optimized and runs sequentially, resulting in a much lower encoding rate (around 3 FPS) compared to decoding. Future work could focus on optimizing the encoder for faster real-time encoding.
- Compression Gap with Floating-Point: The paper acknowledges that quantized models still have a substantial performance gap compared to their floating-point counterparts, which is an inherent trade-off for on-device deployment.
- Encouraging On-Device Benchmarking: The authors express hope that their work will encourage future research to benchmark neural codecs on actual devices, rather than solely relying on simulated desktop performance.
Summary updated