Effortless Cross-Platform Video Codec: A Codebook-Based Method

Kuan Tian, Yonghang Guan, Jinxi Xiang, Jun Zhang, Xiao Han, Wei Yang · DOI

Introduction

Neural Video Codecs (NVCs) have demonstrated superior performance over traditional standards like H.265. However, a significant barrier to their real-world deployment is the issue of non-deterministic computation across different hardware platforms. Most NVCs rely on entropy models that estimate probability distributions using floating-point operations. Minor discrepancies in these calculations—caused by different GPU architectures or software versions—can lead to catastrophic decoding failures. Even a difference in the sixth decimal place of a probability estimate can render a bitstream unreadable, resulting in garbled images or system crashes.

Figure 1: Illustration of decoding failure due to floating-point discrepancies across different platforms.

Proposed Framework: Codebook-Based Compression

To address the challenge of cross-platform inconsistency, this paper introduces a framework that bypasses probability estimation entirely. Instead of transmitting data based on estimated distributions, the model utilizes a Vector Quantization (VQ) approach.

Core Architecture

The system maps latent features to the nearest entry in a learned "codebook" and transmits the corresponding integer index. Because integers are platform-invariant, the decoder can perfectly reconstruct the indices regardless of the underlying hardware.

Figure 2: Overview of the proposed codebook-based video compression framework.

Key components of the framework include:

  1. Multi-Stage Multi-Codebook VQ: A hierarchical approach where low-frequency details are quantized first, followed by successive quantization of residuals to capture fine details.
  2. Window-based Cross-Attention (WCA): Rather than using computationally expensive optical flow for temporal alignment, the model employs a cross-attention mechanism. By treating the previous frame as the "Key" and "Value" and the current frame as the "Query," the model identifies temporal correlations without explicit motion vectors.
  3. Streamlined Design: The removal of autoregressive entropy modeling and optical flow modules results in a minimalist architecture that enhances computational efficiency.

Experimental Evaluation

The model was trained on the Vimeo-90k dataset and evaluated across standard benchmarks including UVG, HEVC Class B, and MCL-JCV.

Performance and Consistency

The proposed method outperforms the H.265 (medium) standard by an average of 33.7% in SSIM BD-rate. Crucially, the authors demonstrated perfect intrinsic consistency: a video encoded on an NVIDIA V100 and decoded on an older NVIDIA P40 showed a 0% BD-rate difference, confirming bit-for-bit identical reconstruction across architectures.

Efficiency

The WCA-based context model proved highly effective, saving approximately 40% more bitrate compared to simpler residual block-based approaches. Furthermore, a "light-decoder" variant achieved real-time 1080p decoding at approximately 35.8ms per frame on a V100 GPU.

Conclusion and Future Work

By shifting from probability estimation to integer index transmission, this framework provides a robust solution to the cross-platform deployment of neural video codecs. While the current model uses a fixed number of indices per frame—which can be inefficient for high-redundancy content like static security footage—future research will focus on developing entropy constraints for the indices themselves to enable content-adaptive compression without sacrificing platform stability.

Summary updated

BibTeX
@misc{tian2023effortless,
  author = {Kuan Tian and Yonghang Guan and Jinxi Xiang and Jun Zhang and Xiao Han and Wei Yang},
  title = {{Effortless Cross-Platform Video Codec: A Codebook-Based Method}},
  year = {2023},
  eprint = {2310.10292},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.10292},
}
Figure