Region-of-Interest Based Neural Video Compression

Yura Perugachi-Diaz, Guillaume Sautière, Davide Abati, Yang Yang, Amirhossein Habibian, Taco S. Cohen

Abstract

Neural video compression typically treats all pixels with equal importance, leading to bit-rate inefficiencies in scenarios where specific objects are of primary interest. This paper introduces the first neural video compression models capable of prioritizing Regions of Interest (ROIs) using an explicit latent scaling mechanism. By spatially adjusting quantization precision through a gain hyperprior, the proposed model achieves a 69.3% BD-rate gain in ROI quality compared to standard neural codecs.

Introduction

Traditional video codecs, such as H.264, have long utilized object-based coding to allocate more bits to important parts of a frame while allowing the background to remain less detailed. Modern neural video codecs, which leverage deep learning to outperform traditional math-based methods, typically treat every pixel as equally important. This approach is computationally fair but biologically inefficient, as human vision naturally focuses on specific objects rather than background details.

The primary challenge in neural video compression has been the lack of a robust method to direct the bit budget toward arbitrary shapes and moving objects within a global Rate-Distortion (R-D) objective. This research addresses this gap by introducing mechanisms to prioritize specific regions without sacrificing the overall efficiency of the neural backbone.

Methodology

The authors build their solution on the Scale Space Flow (SSF) neural video backbone, proposing two distinct approaches for ROI prioritization:

  1. Implicit ROI SSF: This model incorporates a binary ROI mask alongside the video frame. The prioritization is handled via the loss function, which is modified to penalize distortion in the background significantly less than in the ROI.
  2. Latent-scaling ROI SSF: This more advanced model utilizes a "gain hyperprior" network. It processes the ROI mask to produce a spatial gain tensor that explicitly scales the latent variables—the compressed representation of the video—before they undergo quantization.
The latent scaling mechanism (a) and the resulting shift in quantized distributions (b), allowing for spatial control over bit allocation.

As illustrated in the mechanism above, scaling the latents is mathematically equivalent to adjusting the quantization binwidth. By scaling ROI latents upward, the model achieves finer quantization (higher detail); conversely, scaling background latents downward results in coarser quantization, effectively saving bits.

Experimental Setup

To evaluate the models, the researchers adapted several datasets to include ROI labels:

  • DAVIS: A dataset for video object segmentation consisting of 90 short sequences.
  • Cityscapes: Dashcam footage of urban environments.
  • Synthetic Masks: The models were also trained using Perlin noise (randomly generated blobs) as "fake" ROIs. This allowed the researchers to determine if the model could learn the mechanism of spatial prioritization without relying on perfect human-labeled data.

Results and Discussion

The Latent-scaling model proved to be the superior approach, offering explicit control over the bit-rate allocation.

Rate-Distortion curves showing the PSNR improvement of the Latent-Scaling ROI SSF over the baseline Scale-Space Flow.

Key Findings:

  • Efficiency: The Latent-scaling model achieved a 69.3% BD-rate gain on the DAVIS dataset. This indicates that to reach the same visual quality within the ROI, the new model requires significantly fewer bits than the standard SSF baseline.
  • Generalization: One of the most significant findings was that training on synthetic Perlin noise resulted in almost no performance degradation. This suggests the model learns the general concept of spatial bit allocation, which can be applied to any real-world mask at inference time. Furthermore, models trained on DAVIS performed well on the urban scenes of Cityscapes, demonstrating strong generalization.
  • Performance Trade-offs: The ROI capabilities add minor overhead. The Latent-scaling model experiences a 6-17% drop in frames-per-second (FPS) due to the additional gain-hyperprior network, while the Implicit model has a negligible impact on speed.

Conclusion and Future Work

This work demonstrates that neural video codecs can be effectively tuned to prioritize specific regions of interest, providing a massive leap in bit-rate efficiency for object-focused video. However, limitations remain, including occasional boundary artifacts at the edge of ROI masks and potential temporal inconsistency if masks flicker between frames. Future research will focus on smoothing these transitions and developing "one-size-fits-all" models that cover a broader spectrum of quality levels without performance loss.

Summary updated

BibTeX
@inproceedings{perugachidiaz2022region,
  author = {Yura Perugachi-Diaz and Guillaume Sautière and Davide Abati and Yang Yang and Amirhossein Habibian and Taco S. Cohen},
  title = {{Region-of-Interest Based Neural Video Compression}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=PVrs8D9awO},
}

Loading related content...

Figure