Neural Video Compression with Diverse Contexts

Jiahao Li, Bin Li, Yan Lu

Abstract

Recent advancements in Neural Video Compression (NVC) have shown promise in rivaling traditional video coding standards. However, consistently outperforming the most advanced traditional codecs across various color spaces has remained a challenge. This paper introduces DCVC-DC (Deep Contextual Video Compression with Diverse Contexts), a novel framework that significantly enhances compression efficiency by increasing the diversity of spatial and temporal contexts. By employing a hierarchical quality structure, group-based offset diversity, and quadtree partition-based entropy coding, DCVC-DC achieves a 23.5% bitrate saving over previous state-of-the-art neural codecs. Notably, it is the first neural codec to surpass the Enhanced Compression Model (ECM), the prototype successor to H.266/VVC, in both RGB and YUV420 formats.

Introduction

The fundamental objective of video compression is the efficient removal of redundancy. This is typically achieved through predictive coding, where the current frame is predicted using "context" from previously reconstructed frames, and only the residual (the difference) is encoded. While traditional codecs like H.264 (AVC) and H.266 (VVC) utilize a vast array of prediction modes to capture this context, they suffer from high computational complexity during the mode-search process.

Neural Video Codecs (NVCs) offer a more streamlined approach but have historically been limited by a "one-size-fits-all" methodology. Most NVCs rely on a single optical flow for temporal context, which often fails to capture complex motions and leads to error propagation—a phenomenon where small reconstruction errors accumulate over time, degrading the overall video quality. DCVC-DC addresses these limitations by injecting diversity into the context mining process.

Methodology

DCVC-DC introduces three primary innovations designed to maximize the utility of available spatial and temporal information.

1. Hierarchical Quality Structure

In traditional video coding, a hierarchical structure is often used where certain frames (anchors) are encoded at higher quality to serve as superior references for subsequent frames. DCVC-DC integrates this concept into the neural framework by utilizing a weighted loss function during the training phase. This approach forces the model to learn how to effectively utilize high-quality temporal contexts. By training the network to recognize the importance of these "anchor" frames, the system significantly alleviates the issue of error propagation in long sequences.

2. Group-Based Offset Diversity

Standard NVCs often use a single motion vector to align features between frames. DCVC-DC replaces this with a more flexible "offset" mechanism. The feature channels are divided into multiple groups, with each group being warped using different learned offsets. This allows the model to handle complex scenarios such as occlusions or non-rigid motions more effectively. To ensure these diverse contexts are fully utilized, a cross-group fusion module—inspired by the channel shuffling techniques in ShuffleNet—is employed to mix features across groups and maximize information flow.

3. Quadtree Partition-Based Entropy Coding

Spatial context is vital for efficient entropy coding. While many NVCs use a simple "checkerboard" pattern for parallel processing, this method limits the available context. DCVC-DC introduces a quadtree partition-based approach. The latent representation is divided into a quadtree and encoded in four parallel steps. This structure allows each step to access a much richer set of neighboring pixels for probability estimation. This method effectively doubles the available spatial context compared to checkerboard models while maintaining high parallel efficiency, finding a "sweet spot" between slow serial auto-regressive models and context-poor parallel models.

Experimental Results

Datasets and Evaluation

The model was trained on the Vimeo-90k dataset and evaluated using a comprehensive suite of standard benchmarks, including UVG, MCL-JCV, and HEVC (Classes B, C, D, and E). Crucially, testing was conducted in both RGB and YUV420 colorspaces. As traditional codecs are natively optimized for YUV, outperforming them in this space is a significant benchmark for neural models.

Performance Metrics

DCVC-DC demonstrates substantial improvements over existing technologies:

  • Bitrate Savings: It achieved a 23.5% bitrate saving over the previous state-of-the-art, DCVC-HEM.
  • Comparison with Traditional Codecs: The model surpassed ECM-5.0 (the prototype for the successor to VVC) by 6.4% in RGB and 13.1% in YUV420 (relative to the VTM anchor).
  • Computational Efficiency: Despite the increased complexity of the context mining, the authors optimized the architecture using depthwise separable convolutions and unequal channel distributions. This resulted in a 19.4% reduction in total MACs (Multiply-Accumulate operations) compared to its predecessor.

Discussion and Future Work

The success of DCVC-DC highlights that diversity in prediction is more critical than mere model depth. By providing the network with multiple "views" of temporal and spatial data, the model achieves higher compression ratios with better structural integrity.

However, some limitations remain. The hierarchical weights used during training are currently fixed. Future research could explore using reinforcement learning to dynamically adjust these weights based on specific video content. Additionally, while the total operation count is lower, the reliance on depthwise convolutions can sometimes lead to hardware-specific bottlenecks. Expanding the temporal range of the context beyond short-term dependencies also remains a promising avenue for further performance gains.

Conclusion

DCVC-DC represents a major step forward for Neural Video Compression. By prioritizing diverse contexts and structural training, it not only sets a new state-of-the-art for NVCs but also proves that neural models can consistently outperform the most advanced traditional codec prototypes in industry-standard formats.

Summary updated

BibTeX
@inproceedings{li2023neural,
  author = {Jiahao Li and Bin Li and Yan Lu},
  title = {{Neural Video Compression with Diverse Contexts}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure