Temporal Context Mining for Learned Video Compression

Xihua Sheng, Jiahao Li, Bin Li, Dong Liu, Yan Lu

TL;DR

This paper introduces a novel end-to-end learned video compression scheme that significantly improves how AI models "remember" and use information from previous frames. By propagating high-dimensional features instead of just reconstructed pixels and using a multi-scale "mining and re-filling" strategy, the authors outperform traditional standards like H.265 (HEVC) and H.266 (VVC) while achieving much faster decoding speeds than previous state-of-the-art learned codecs.

What Problem Does This Paper Address?

Video compression is essentially the art of removing redundancy. Most of that redundancy is temporal—the fact that frame $t$ looks a lot like frame $t-1$. Traditional codecs (like H.264 or H.265) use motion estimation and compensation to handle this, but they operate in the pixel domain.

Recent "learned" (AI-based) codecs try to do this using neural networks. However, they face three major hurdles:

  1. Information Loss: Most models only look at the previous reconstructed frame. Because that frame was compressed, it has already lost the fine-grained texture and motion details that could help predict the next frame.
  2. Scale Inflexibility: Standard models often use a single-scale temporal context, which fails to capture the complex, non-uniform ways that motion and texture change across a scene.
  3. The Decoding Bottleneck: To get high compression ratios, many AI models use "auto-regressive" entropy models. These are mathematically powerful but computationally slow because they must process data serially, making them a nightmare for parallel GPU execution.

Methods

The authors propose a framework called Temporal Context Mining (TCM) and Temporal Context Re-filling (TCR).

  • Temporal Context Mining (TCM): Instead of just passing the previous decoded image to the next step, the model propagates the latent feature from the previous frame's reconstruction process. This feature contains 64 channels of information—far richer than a 3-channel RGB image. A hierarchical (3-level) module then "mines" this feature to create multi-scale temporal contexts.
  • Temporal Context Re-filling (TCR): These multi-scale contexts are then "re-filled" (injected) into every major part of the codec: the encoder, the decoder, the frame generator, and the entropy model. This ensures the model has a "multi-resolution memory" of the video's history.
  • Parallel-Friendly Entropy Coding: The authors intentionally discard the slow auto-regressive entropy model. Instead, they rely on their superior temporal contexts to provide the "prior" information needed for efficient entropy coding. This allows the decoding process to be fully parallelized on a GPU.

Datasets

  • Training: The model was trained on the Vimeo-90k dataset, a standard for video restoration and compression tasks.
  • Evaluation: Performance was tested across several benchmark datasets:
  • UVG: High-frame-rate 1080p sequences.
  • MCL-JCV: A dataset focused on human-perceived quality (the authors used a subset, MCL-JCV-26, excluding animation).
  • HEVC Common Test Conditions (Classes B, C, D, E): Standardized sequences used to evaluate traditional codecs.
  • HEVC Class RGB: A newly highlighted evaluation set using 10-bit RGB444 format to test the model's performance on high-fidelity content.

Key Insights and Ideas

  • Features > Pixels: The "aha moment" here is that the neural network's internal representation of a frame is a better reference for the next frame than the final image itself. It’s like remembering the "concept" of a scene rather than just a blurry photo of it.
  • Hierarchical Contexts: The visualization in the paper shows that different scales of the mined context focus on different things—larger scales capture fine textures and colors, while smaller scales focus on regions with high motion.
  • Practicality over Pure Math: By removing the auto-regressive component, the authors show that you can trade a tiny bit of theoretical compression efficiency for a massive gain in real-world speed, provided your temporal prediction is strong enough.

Key Results

The proposed scheme achieves a "milestone result" by outperforming the best traditional reference software in specific scenarios:

  • Compression Efficiency: When optimized for MS-SSIM (a metric for structural similarity), the model outperforms H.266 (VTM)—the current gold standard—by 21.1% in bit rate savings. When optimized for PSNR, it beats H.265 (HM) by 14.4%.
  • Speed: Because it avoids auto-regressive bottlenecks, it is significantly faster than previous learned codecs like DCVC. It can decode a 1080p frame in roughly 0.47 seconds on a V100 GPU—a 98.7% reduction in decoding time compared to models using serial entropy coding.
  • Subjective Quality: Qualitative results show the model preserves significantly more texture and detail in complex areas (like the fabric of a kimono) compared to other learned codecs.

Limitations and Future Work

  • Hardware Gap: While the model is fast on a high-end NVIDIA V100 GPU, it is still not "real-time" for 1080p/60fps video. Traditional codecs still hold a massive advantage in speed when running on dedicated hardware or standard CPUs.
  • Complexity: The model has 10.7 million parameters and requires 2.9 Tera-MACs (multiply-accumulate operations) per 1080p frame. The authors acknowledge that the decoding complexity needs to be further reduced for consumer-grade devices.
  • PSNR vs. VTM: While the model beats VTM on MS-SSIM, it still trails slightly behind VTM in pure PSNR (peak signal-to-noise ratio), which remains a challenging hurdle for AI-based compression.

Summary updated

BibTeX
@article{sheng2023temporal,
  author = {Xihua Sheng and Jiahao Li and Bin Li and Li Li and Dong Liu and Yan Lu},
  title = {{Temporal Context Mining for Learned Video Compression}},
  journal = {IEEE Trans. Multimedia},
  year = {2023},
  url = {https://openreview.net/forum?id=uw2Z3kdZNPy},
}
Figure