Hierarchical B-Frame Video Coding Using Two-Layer CANF Without Motion Coding

David Alexandre, Hsueh-Ming Hang, Wen-Hsiao Peng · DOI

Abstract: Typical video compression systems consist of two main modules: motion coding and residual coding. This general architecture is adopted by classical coding schemes (such as international standards H.265 and H.266) and deep learning-based coding schemes. We propose a novel B-frame coding architecture based on two-layer Conditional Augmented Normalization Flows (CANF). It has the striking feature of not transmitting any motion information. Our proposed idea of video compression without motion coding offers a new direction for learned video coding. Our base layer is a low-resolution image compressor that replaces the full-resolution motion compressor. The low-resolution coded image is merged with the warped high-resolution images to generate a high-quality image as a conditioning signal for the enhancement-layer image coding in full resolution. One advantage of this architecture is significantly reduced computational complexity due to eliminating the motion information compressor. In addition, we adopt a skip-mode coding technique to reduce the transmitted latent samples. The rate-distortion performance of our scheme is slightly lower than that of the state-of-the-art learned B-frame coding scheme, B-CANF, but outperforms other learned B-frame coding schemes. However, compared to B-CANF, our scheme saves 45% of multiply-accumulate operations (MACs) for encoding and 27% of MACs for decoding. The code is available at https://nycu-clab.github.io.

Introduction

Traditional video compression standards like H.265 (HEVC) and H.266 (VVC), as well as many modern deep learning-based codecs, rely on a "hybrid coding" paradigm. This approach typically involves motion estimation and compensation to exploit temporal redundancy, followed by residual coding to handle prediction errors. However, motion coding is computationally intensive and consumes a significant portion of the bitrate. This paper introduces a novel B-frame coding architecture that eliminates explicit motion vector transmission entirely, utilizing a two-layer Conditional Augmented Normalization Flows (CANF) framework instead.

The Proposed Two-Layer Architecture

The core innovation of this work is a two-layer structure that replaces high-resolution motion compensation with a low-resolution "bootstrap" strategy.

Overall architecture of the proposed two-layer CANF video coding scheme, featuring a Base Layer for low-resolution compression and an Enhancement Layer for full-resolution reconstruction.

Base Layer (Low-Resolution)

Instead of transmitting dense motion fields, the base layer encodes a downsampled version of the current frame's unpredictable components. A frame interpolator (RIFE) first generates an initial prediction. A low-resolution CANF compressor then encodes the difference between this prediction and the actual frame at 1/16th of the original pixel count. This significantly reduces the computational burden compared to full-resolution motion estimation.

Enhancement Layer (Full-Resolution)

The enhancement layer reconstructs the full-resolution frame by combining information from the upsampled base layer and warped reference frames. A Multi-Frame Merging Network (MFMN) generates weighting maps to blend these inputs into a high-quality conditioning signal. This signal guides the enhancement-layer CANF codec in reconstructing the final frame.

Adaptive CANF and Skip-Mode

To further optimize bitrate, the system incorporates a Skip-Mask Generator. This module identifies latent samples that do not require explicit transmission because they can be accurately predicted from the context.

Detailed structure of the Skip-Mask Generator, which identifies redundant latent samples to reduce transmitted data.

During decoding, these skipped samples are filled using predicted mean values from a hyperprior module, allowing for significant bit savings without substantial quality loss.

Key Insights and Design Philosophy

The development of this architecture is rooted in the observation that "unpredictable" pixels—those that cannot be easily derived from previous frames—are often sparse. Traditional motion vectors attempt to describe the movement of all pixels, which can be redundant. By sending a low-resolution "rough map" of these unpredictable areas via the base layer, the system provides enough context for the enhancement layer to perform high-quality reconstruction without the overhead of dense motion fields.

Furthermore, the shift from traditional "prediction + residual" math to conditional coding is pivotal. In this framework, previous frames and the base layer act as context that informs the enhancement layer's probability model. This allows the compressor to exploit complex temporal dependencies more effectively than simple subtraction.

Experimental Results

The model was trained on the Vimeo90K septuplet dataset and evaluated on standard benchmarks including UVG and HEVC Class B sequences.

Efficiency and Complexity

The proposed scheme, TLZMC, demonstrates a significant reduction in computational complexity. Compared to the state-of-the-art B-CANF, it achieves a 45% reduction in MACs for encoding and a 27% reduction for decoding. It also recorded the fastest encoding time among compared deep-learning codecs at 0.87 seconds on a GTX 2080Ti.

Rate-Distortion Performance

While the absolute rate-distortion performance is slightly lower than B-CANF, the proposed method outperforms other learned B-frame codecs and classical encoders like x265 (veryslow) and HM (Low Delay P) in terms of PSNR, particularly at lower bitrates. The base layer typically accounts for less than 7% of the total bitrate, indicating that a small amount of low-resolution information can effectively guide high-resolution reconstruction.

Conclusion

By eliminating explicit motion coding, this two-layer CANF architecture offers a promising new direction for efficient video compression. The substantial reduction in computational complexity makes it a strong candidate for practical deployment on power-constrained hardware, maintaining competitive quality while significantly lowering the overhead associated with traditional motion-based prediction. Future work will focus on optimizing the base layer's bitrate flexibility and exploring more advanced frame synthesis techniques to further enhance reconstruction quality.

Summary updated

BibTeX
@misc{alexandre2023hierarchical,
  author = {David Alexandre and Hsueh-Ming Hang and Wen-Hsiao Peng},
  title = {{Hierarchical B-Frame Video Coding Using Two-Layer CANF Without Motion Coding}},
  year = {2023},
  eprint = {2304.02690},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.02690},
}
Figure