Abstract
Traditional neural video codecs often treat B-frames as extensions of P-frames, applying identical compression tools to both. This approach fails to account for the unique bi-directional dependencies and motion characteristics inherent in B-frames. This paper introduces a specialized neural B-frame codec that employs an interactive dual-branch motion encoder and a selective temporal fusion mechanism. By leveraging geometric consistency between forward and backward motion vectors and adaptively weighting temporal contexts, the proposed architecture achieves a significant 10% BD-rate reduction over previous state-of-the-art neural codecs, matching or exceeding the performance of the H.266/VVC reference software.
Introduction
In the realm of video compression, B-frames (bi-directional frames) are essential for achieving high efficiency by referencing both preceding and succeeding frames. While traditional standards like H.264/AVC and H.265/HEVC have long optimized B-frame coding, many emerging neural video codecs simply adapt P-frame tools for bi-directional prediction. This "fancy P-frame" approach ignores two critical aspects of B-frame dynamics:
- Motion Asymmetry: Forward and backward motion vectors often exhibit different levels of correlation and quality requirements. Uniform treatment leads to suboptimal bitrate allocation.
- Blind Fusion: Existing models typically fuse temporal information from both directions uniformly, regardless of whether one reference is noisier or less relevant due to occlusions or rapid scene changes.
To address these gaps, we propose a novel architecture focused on fine-grained motion compression and selective temporal fusion.
Methodology
Fine-Grained Motion Compression
Rather than treating bi-directional motion vectors as a single concatenated input, we utilize an Interactive Dual-Branch Motion Encoder. This design allows for more nuanced handling of the distinct motion paths.
- Motion Information Interaction (MII): At the heart of the motion encoder is the MII module, which employs an attention mechanism. This allows the forward and backward branches to exchange information, exploiting the underlying geometric consistency of physical movement viewed from two temporal directions.
- Per-Branch Adaptive Quantization: Recognizing that one motion direction may be more critical for reconstruction than the other, the model learns independent quantization steps for each branch. This enables the codec to prioritize bits for the more informative motion direction.
- Interactive Motion Entropy Model: This component predicts the probability distribution of motion data by utilizing previously encoded segments from both directions as priors, effectively reducing statistical redundancy.
Selective Temporal Fusion
To maximize the utility of predicted temporal contexts, we introduce mechanisms that move beyond simple averaging or concatenation.
- Bi-directional Weighting Fusion (BWF): The network dynamically predicts weights for forward and backward contexts. If a future reference is occluded or blurred, the BWF automatically down-weights it, favoring the more reliable past reference.
- Hyperprior-based Implicit Alignment (HIA): Temporal priors are frequently spatially misaligned with the current frame. The HIA module uses the "hyperprior" (a small piece of side information) as a surrogate to help align these features before they are used for entropy modeling, avoiding the need for additional alignment bits.
Experimental Evaluation
The model was trained on the Vimeo-90k dataset and evaluated across several standard benchmarks, including MCL-JCV (1080p sequences), UVG (high-motion sequences), and the HEVC Common Test Sequences (Classes B through E).
Key Results
- Efficiency Gains: The proposed codec achieved an average 10% BD-rate reduction compared to DCVC-B, the previous leading neural B-frame codec.
- Standard Comparison: The system delivered performance comparable to or better than the H.266/VVC (VTM-13.2) reference software under random-access configurations.
- Visual Fidelity: Qualitative analysis demonstrates superior preservation of fine textures, such as wood grain and intricate biological patterns, which are often smoothed out by earlier neural models at similar bitrates.
Conclusion and Future Work
While the proposed codec sets a new benchmark for neural B-frame efficiency, it comes with increased computational complexity (~26M parameters compared to ~21M for DCVC-B). Future research will focus on reducing this overhead. One promising direction is a hybrid approach that uses lightweight interpolation for frames with high temporal correlation while reserving the full motion compression pipeline for more complex "anchor" B-frames.
Summary updated