Coarse-to-fine Deep Video Coding with Hyperprior-guided Mode Prediction

Zhihao Hu, Guo Lu, Jinyang Guo, Shan Liu, Wei Jiang, Dong Xu · DOI

Abstract

This paper introduces a Coarse-to-Fine (C2F) framework for deep video compression designed to handle complex motion through a two-stage refinement process. By leveraging "hyperprior" data—information already generated for entropy coding—the system predicts optimal coding modes, such as block sizes and residual skipping, at zero additional bit cost. The framework achieves state-of-the-art performance that rivals traditional standards like H.265 while running thousands of times faster than the latest H.266 test model.

Problem Statement

Traditional video codecs (like H.264 and H.265) utilize "mode prediction" to decide on-the-fly whether to split a frame into small or large blocks for motion estimation or whether to skip certain data. Implementing these features in Deep Video Compression (DVC) is challenging. Most deep codecs rely on single-scale motion compensation, which struggles with large-scale movements. Furthermore, choosing "modes" in a neural network typically requires expensive Rate-Distortion (RD) optimization and extra bits to signal choices to the decoder. This research aims to implement smart mode selection without the computational or bit-rate overhead.

Proposed Methodology

The authors propose two major innovations to address these challenges:

1. Coarse-to-Fine (C2F) Motion Compensation

Instead of estimating motion in a single pass, the system employs a two-stage approach. At the Coarse Level, the model downsamples features to 1/4 resolution to capture broad, large-scale motion. At the Fine Level, it uses the coarse prediction as a starting point to refine motion at full resolution. This pyramid approach, common in optical flow tasks, is optimized here for an end-to-end compression pipeline.

The proposed Coarse-to-Fine (C2F) framework for deep video compression.

2. Hyperprior-Guided Mode Prediction

Deep codecs use a "hyperprior" network to assist in compressing data by estimating the mean and variance of latent features. The authors realized this hyperprior data already contains a "statistical signature" of video patches. They trained two small sub-networks—HAMC for motion and HARC for residuals—to predict the best coding mode from this hyperprior. Because the decoder generates the same hyperprior during decompression, it can run the same mode prediction networks, eliminating the need to send extra signaling bits.

Experimental Evaluation

The model was trained on the Vimeo-90K dataset and evaluated on industry-standard benchmarks including HEVC (Classes B, C, D, E), UVG, and MCL-JCV.

Key Results

  • State-of-the-Art Performance: The framework outperforms previous learning-based methods like FVC and ELF-VC by a significant margin.
  • Competitive with Standards: It achieves better PSNR than the H.265 (HM) standard on most datasets.
  • Inference Speed: The model runs at 3.41 FPS on a single GPU. While not yet real-time for 1080p, it is approximately 3,000 times faster than the H.266 (VTM) reference software, which often runs at less than 0.001 FPS.
Rate-Distortion (RD) curves comparing the proposed method against traditional standards and other deep learning models across various datasets.

Discussion and Insights

  • Information Reuse: Repurposing the hyperprior as a "free" feature set for decision-making allows the model to mimic the complex logic of traditional codecs without a bit-rate penalty.
  • Differentiable Decisions: Using the Gumbel-Softmax trick allowed the training of networks to make discrete choices (like "Skip" vs. "Don't Skip") via standard backpropagation.
  • Refinement over Raw Power: Ablation studies show that two-stage refinement (C2F) is more effective than simply increasing the depth of a single-scale motion network, providing a 0.3dB boost.

Limitations and Future Work

While 3.41 FPS is fast for a research model, it remains below the 30-60 FPS required for real-time streaming. Future work may involve extending "free" prediction to a wider variety of coding modes beyond block resolutions and residual skips, as well as optimizing neural operations for mobile and edge AI hardware.

Summary updated

BibTeX
@inproceedings{hu2022coarse,
  author = {Zhihao Hu and Guo Lu and Jinyang Guo and Shan Liu and Wei Jiang and Dong Xu},
  title = {{Coarse-to-fine Deep Video Coding with Hyperprior-guided Mode Prediction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00583},
}
Figure