Augmented Deep Contexts for Spatially Embedded Video Coding

Yifan Bian, Chuanbo Tang, Li Li, Dong Liu

Abstract

Modern neural video compression (NVC) frameworks predominantly rely on temporal references to exploit inter-frame redundancies. However, this "temporal-only" paradigm struggles with rapid motion and occlusions where temporal predictions become unreliable. We present SEVC (Spatially Embedded Video Codec), a novel framework that embeds a low-resolution spatial reference of the current frame to augment high-resolution coding. By leveraging Motion and Feature Co-Augmentation (MFCA) and a spatial-guided latent prior, SEVC achieves an average bitrate reduction of 11.9% over state-of-the-art models, demonstrating superior robustness in challenging visual scenarios.

Introduction: The Limits of Temporal-Only Coding

Most contemporary NVCs operate by estimating motion (optical flow) from previous frames to predict the current frame. While effective for static or slow-moving scenes, this approach encounters significant bottlenecks in two primary scenarios:

  1. Large or Fast Motion: Inaccurate motion estimation leads to "ghosting" artifacts or blurred predictions.
  2. Emerging Objects: New objects entering a scene lack temporal history, forcing the codec to spend excessive bits on residual coding without a useful reference.
Conceptual comparison between traditional temporal-only NVCs and the proposed spatially embedded approach.

To address these issues, SEVC introduces spatial references—information derived from a downsampled version of the current frame itself—to serve as a reliable anchor for high-resolution reconstruction.

Methodology: The SEVC Architecture

The core of SEVC is a two-layer coding structure. A "base layer" compresses a 4x downsampled version of the current frame, which then provides spatial context to the "enhancement layer" responsible for full-resolution reconstruction.

The detailed architecture of SEVC, highlighting the interaction between the base codec, the MFCA module, and the contextual encoder/decoder.

Motion and Feature Co-Augmentation (MFCA)

Rather than simply upscaling the base layer, the MFCA module employs a multi-stage, bottom-up architecture. It integrates low-resolution motion vectors and features from the base layer with temporal features from previous frames. This process progressively refines the context, creating a hybrid spatial-temporal representation that is more robust than either source in isolation.

Spatial-Guided Latent Prior

In entropy coding, the model must predict the distribution of latent representations. SEVC utilizes a Transformer-based module where the low-resolution spatial latent acts as a Query (Q). It interacts with a queue of previous temporal latents (Keys and Values) to align and fuse information. This implicit alignment avoids the errors inherent in explicit optical flow estimation for latent priors, significantly reducing the residual data overhead.

Joint Spatial-Temporal Optimization

Training a dual-layer codec requires balancing the bit allocation between the base and enhancement layers. The authors implemented a joint loss function with an adaptive constraint ($w_l$), allowing the model to dynamically prioritize bits for the base layer in complex scenes where spatial guidance is most critical.

Experimental Evaluation

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

Key Results

  • Efficiency: SEVC achieved an 11.9% bitrate reduction compared to the previous state-of-the-art (DCVC-FM) at equivalent PSNR levels.
  • Robustness to Motion: In high-motion sequences like USTC_BicycleDriving, SEVC demonstrated up to 55.9% bitrate savings over the DCVC-HEM baseline.
  • Visual Fidelity: Qualitative analysis confirms that SEVC maintains sharp edges and intricate textures in moving objects that are typically blurred by temporal-only codecs.

Conclusion and Future Work

SEVC represents a significant shift in neural video coding by demonstrating that spatial embedding can effectively mitigate the failures of temporal prediction. Beyond compression efficiency, the dual-layer nature of SEVC offers a "free" low-resolution bitstream, suitable for low-power previewing or fast skimming.

Future research will focus on reducing the computational overhead of the dual-layer process and developing specialized base codecs optimized specifically for providing spatial references rather than general-purpose low-resolution video.

Summary updated

BibTeX
@inproceedings{bian2025augmented,
  author = {Yifan Bian and Chuanbo Tang and Li Li and Dong Liu},
  title = {{Augmented Deep Contexts for Spatially Embedded Video Coding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00201},
}
Figure