Deep Contextual Video Compression

Jiahao Li, Bin Li, Yan Lu

For over three decades, video compression standards—from H.261 to the modern H.266—have relied heavily on a predictive coding paradigm. The logic is straightforward: predict the next frame based on previous ones, subtract that prediction from the actual frame to obtain a "residue," and compress only that residue.

However, simple subtraction is a handcrafted, linear operation that struggles to fully capture complex temporal correlations in video. When a prediction is slightly off due to complex motion or lighting changes, the resulting residue becomes large and difficult to compress.

To address this, researchers propose Deep Contextual Video Compression (DCVC), a framework that abandons traditional residue coding in favor of conditional coding.

Comparison between traditional residue coding and the proposed conditional coding framework.

The Shift to Conditional Coding

Theoretically, conditional coding—where the network learns to compress the current frame given previous information—has a lower entropy bound than residue coding ($H(x_t | \text{context}) \leq H(x_t - \text{prediction})$). The challenge has historically been how to effectively define, learn, and use this "condition" within a deep learning framework.

DCVC solves this by shifting the condition from the pixel domain (RGB frames) to the feature domain.

Detailed architecture of the Deep Contextual Video Compression (DCVC) framework.

Core Mechanisms of DCVC

  1. Feature-Domain Context: Instead of generating a simple predicted RGB frame, the model generates a high-dimensional "context" feature map. This allows the network to carry much richer information, such as specific textures or color components, across different channels.
  2. Context Learning via MEMC: To handle motion, the model uses Motion Estimation and Motion Compensation (MEMC). It calculates optical flow, but instead of warping pixels, it warps features extracted from the previously decoded frame. A "Context Refinement" network then cleans up any spatial discontinuities caused by the warping.
  3. Conditional Framework: Both the encoder and decoder are conditioned on this learned context, allowing them to adaptively decide what information to keep or discard. Furthermore, the entropy model uses the context to create a "temporal prior," making probability estimation more accurate and reducing the bits required.
  4. Parallelism: Unlike many deep image/video models that rely on slow, serial spatial auto-regressive models, DCVC’s reliance on temporal context allows for highly parallel operations, keeping inference times practical.

Key Insights

  • Channel Specialization: By moving to a high-dimensional feature space, different channels can "specialize." For example, one channel might focus on high-frequency edges while another focuses on specific color information. This level of specialization is impossible in standard 3-channel RGB residue coding.
  • Handling "New" Content: Residue coding struggles when new objects enter a frame because there is no good reference to subtract. DCVC’s conditional model can adaptively switch to a mode resembling "intra-coding" (compressing from scratch) for those specific regions, while still leveraging temporal context for the rest of the frame.

Performance and Results

The DCVC framework was trained on the Vimeo-90k dataset and evaluated across standard benchmarks including HEVC Common Test Conditions, MCL-JCV, and UVG datasets.

  • State-of-the-Art Efficiency: DCVC achieved a 26.0% bitrate saving over the traditional x265 (veryslow) codec for 1080p videos, and a 16.4% saving over DVCPro, a previous state-of-the-art neural video codec.
  • High-Resolution Advantage: The model performs exceptionally well on high-resolution (1080p) video compared to lower resolutions, as the high-dimensional context excels at preserving complex textures and high-frequency details.
  • Practical Inference Speed: Despite its architectural complexity, inference time on a P40 GPU is only about 1% slower than DVCPro (857ms vs. 849ms per 1080p frame) due to its highly parallelizable design.

Limitations and Future Directions

While DCVC represents a significant leap forward, the authors note several areas for future improvement:

  • Channel Redundancy: The context channels are not currently supervised to prevent redundancy. Future work could focus on eliminating this overlap to maximize efficiency.
  • Multiple Reference Frames: The current iteration uses only a single previous frame as context. Extending DCVC to utilize multiple reference frames—a standard practice in traditional codecs—is a promising next step.
  • Temporal Stability: The current model optimizes for rate-distortion (compression efficiency) but does not explicitly optimize for temporal stability to prevent inter-frame flickering.

By moving beyond the simple subtraction of residue coding, DCVC opens a new, highly efficient pathway for the future of neural video compression.

Summary updated

BibTeX
@inproceedings{li2021deep,
  author = {Jiahao Li and Bin Li and Yan Lu},
  title = {{Deep Contextual Video Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=evqzNxmXsl3},
}
Figure