Towards Real-Time Neural Video Codec for Cross-Platform Application Using Calibration Information

Kuan Tian, Yonghang Guan, Jinxi Xiang, Jun Zhang, Xiao Han, Wei YangACM Multimedia 2023 · DOI

TL;DR

This paper introduces a novel neural video codec designed for real-time, cross-platform applications. It tackles the critical issue of decoding inconsistencies arising from floating-point arithmetic differences across hardware by employing a "calibration information transmitting" strategy. This approach enables accurate decoding of 720P video at 25 FPS on consumer GPUs, outperforming traditional H.265.

What Problem Does This Paper Address?

Neural video codecs (NVCs) have shown impressive rate-distortion (RD) performance, sometimes surpassing traditional codecs like H.265. However, their practical deployment is hindered by two major challenges:

  1. Cross-Platform Inconsistency: Floating-point operations, which are fundamental to NVCs, can yield slightly different results on different hardware (CPUs, GPUs) or software environments. This "non-determinism" leads to decoding errors, corrupting the reconstructed video.
  2. Computational Complexity: The sophisticated neural networks used in NVCs are computationally intensive, making real-time decoding on consumer-grade hardware a significant hurdle.

This paper aims to bridge this gap by developing an NVC that is both robust to cross-platform variations and efficient enough for real-time use.

Methods

The proposed solution addresses the two core problems with distinct strategies:

  • Calibration Information Transmitting (CIT) for Cross-Platform Consistency:
    • Problem: Inconsistent floating-point calculations in entropy models between encoder and decoder lead to incorrect parameter estimations.
  • Solution: The authors identify specific entropy parameters that are prone to "transboundary quantization" (i.e., small floating-point differences causing them to cross an integer boundary during quantization). The coordinates of these error-prone parameters are transmitted as auxiliary bitstream data. The decoder uses this information to ensure consistent parameter quantization, thereby aligning the encoder and decoder's understanding of the bitstream.
  • Piecewise Gaussian Constraint (PGC): To reduce the overhead of transmitting calibration information, a PGC is introduced. This constraint encourages entropy model outputs to stay away from integer boundaries, minimizing the number of parameters that require explicit calibration.
  • Relative Position Coding (RPC): Further reducing the bitstream size, the coordinates of calibration information are transmitted using relative differences rather than absolute values.
  • Lightweight Model for Real-Time Performance:
    • Problem: High computational cost of NVCs.
  • Solution: A combination of efficiency techniques is employed:
  • Model Pruning: Reduces the number of parameters and computations in the neural network.
  • Motion Downsampling: Downsamples input images for motion estimation, reducing its computational load by a factor of four.
  • Arithmetic Coding Skipping: Leverages high-probability entropy model predictions to skip arithmetic coding for certain elements, significantly speeding up the process.

Datasets

  • Training: Vimeo-90k dataset (89800 video clips, 448x256 resolution).
  • Evaluation: UVG dataset (1920x1080 resolution).

Key Insights and Ideas

  • Calibration as a "Patch" for Floating-Point Drift: The core insight is that instead of forcing strict integer-only operations (which can be complex and require retraining), a small amount of transmitted "calibration information" can effectively correct for floating-point inconsistencies. This is a pragmatic approach to achieve cross-platform compatibility without extensive model modifications.
  • Targeted Calibration: Not all parameters need calibration. Identifying and transmitting only the "error-prone" parameters significantly reduces the overhead, making the approach practical.
  • Piecewise Gaussian Constraint as a Bitstream Reducer: The PGC is a clever way to proactively minimize the need for calibration by shaping the entropy model's output distribution, leading to a more compact bitstream.
  • Efficiency Through Targeted Optimization: The combination of pruning, downsampling, and skipping demonstrates a multi-pronged approach to achieving real-time performance without sacrificing too much compression quality.

Key Results

  • Cross-Platform Decoding Success: The proposed method successfully resolves decoding failures that occur in cross-platform scenarios without calibration. Table 2 shows a reduction from 94%-100% failure rates to 0% failure rates across various platform combinations.
  • Real-Time Performance: The model achieves a decoding speed of 25 FPS on an NVIDIA RTX 2080 GPU for 720P video.
  • Rate-Distortion Performance:
    • On the same platform, the model achieves competitive BD-rate savings (e.g., -25.6% for PSNR-BPP, -34.1% for SSIM-BPP) compared to H.265 (medium).
  • In cross-platform scenarios with calibration, the performance drop is minimal (e.g., -24.2% for PSNR-BPP, -33.7% for SSIM-BPP), demonstrating the effectiveness of the calibration strategy.
  • Calibration Bitstream Reduction: The PGC and RPC techniques significantly reduce the amount of calibration information transmitted, with RPC achieving up to a 73.5% reduction in bits.

Limitations and Future Work

  • Error Sensitivity: The paper notes that if cross-platform errors are very large (e.g., 1e-1), the required calibration bitstream can become too large, negatively impacting rate-distortion performance.
  • Future Work: The authors suggest that further engineering optimization and parallel acceleration could lead to real-time decoding of 1080P video on consumer-grade GPUs. They also highlight that their method is theoretically applicable to any video compression algorithm using similar entropy models and arithmetic coding.

Summary updated

BibTeX
@inproceedings{tian2023towards,
  author = {Kuan Tian and Yonghang Guan and Jinxi Xiang and Jun Zhang and Xiao Han and Wei Yang},
  title = {{Towards Real-Time Neural Video Codec for Cross-Platform Application Using Calibration Information}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3611955},
}
Figure