End-to-End Neural Video Coding Using a Compound Spatiotemporal Representation

Haojie Liu, Ming Lu, Zhiqi Chen, Xun Cao, Zhan Ma, Yao Wang

TL;DR

This paper introduces a novel end-to-end neural video coding framework that moves beyond simple optical flow for motion compensation. By generating a Compound Spatiotemporal Representation (CSTR) through recurrent neural networks, the system adaptively blends traditional vector-based warping with adaptive kernel-based resampling (deformable convolutions), achieving state-of-the-art compression efficiency that outperforms H.265/HEVC in low-delay scenarios.

What Problem Does This Paper Address?

Most existing "learnt" video codecs rely almost exclusively on optical flow to handle motion. In this paradigm, the model estimates how pixels move between frames and "warps" the previous frame to predict the current one.

However, optical flow has significant weaknesses:

  1. Occlusions: When an object moves to reveal a background that wasn't there before, flow has nothing to "warp" from.
  2. Complex Motion: Irregular movements, lighting changes, and fast-moving edges often result in "ghosting" artifacts.
  3. Quantization Noise: Flow maps are sensitive to the compression needed to transmit them, often leading to inaccurate predictions.

The authors aim to create a more robust prediction mechanism that can handle these "difficult" regions while maintaining high compression efficiency.

Methods

The core innovation is the Hybrid Motion Compensation (HMC) system, powered by two main modules:

  • Recurrent Information Aggregation (RIA): Instead of looking only at the immediate previous frame, the model uses a stacked Spatiotemporal LSTM (ST-LSTM). This module aggregates features from multiple past frames into a single "Compound Spatiotemporal Representation" (CSTR). This CSTR acts as a rich "memory" of both what the scene looks like and how it is moving.
  • One-to-Many Decoding: Rather than decoding the CSTR into just a flow map, the framework uses a "one-to-many" pipeline to generate four distinct components:
  • Vector-based Prediction: Standard optical flow for simple, linear motion.
  • Adaptive Kernel-based Prediction: Uses Deformable Convolutions (DCN) to align features. This is much better at handling occlusions and irregular textures.
  • Mode Selection Maps: A learned weight map ($w_1, w_2$) that decides, pixel-by-pixel, whether to trust the flow-based prediction or the kernel-based prediction.
  • Texture Enhancement: A residual component that adds fine spatial details not captured by motion alone.

The entire system is trained end-to-end using a rate-distortion loss function, balancing the number of bits used against the quality of the reconstructed video.

Datasets

  • Training: The model was pre-trained on CLIC and DIV2K (for intra-coding) and then optimized on the Vimeo 90k dataset using 5-frame sequences.
  • Evaluation: The authors benchmarked against standard video coding test sets:
  • UVG (Ultra Video Group): High-resolution 1080p sequences.
  • MCL-JCV: A JND-based (Just Noticeable Difference) dataset.
  • JCT-VC: Standard classes (B, C, D, E) used in traditional codec development.

Key Insights and Ideas

  • Hybrid is Essential: The "aha moment" is that flow and kernels are complementary. Flow is "sharp" and efficient for simple motion, while kernels are "robust" but often blurrier for complex areas. By learning to blend them, the model gets the best of both worlds.
  • The CSTR as a "Latent Workspace": By compressing the spatiotemporal features into a CSTR first, the model ensures that all subsequent predictions (flow, DCN offsets, weights) are derived from the same bit-budgeted information, making the system highly rate-efficient.
  • Implicit Occlusion Handling: The attention maps within the deformable convolutions allow the model to "ignore" invalid reference pixels in occluded regions, significantly reducing the residual error that the codec has to send.

Key Results

  • Compression Efficiency: On the UVG dataset, the proposed method achieved a 55.61% bit rate reduction compared to the H.264/AVC anchor.
  • Vs. HEVC: The model outperformed H.265/HEVC (HM software) by approximately 1dB in PSNR at high bit rates.
  • Visual Quality: Qualitative results show significantly fewer artifacts around moving edges and better preservation of textures in complex scenes compared to flow-only models like DVC.
  • Speed: The encoder runs at roughly 0.832 fps for 1080p video on a Titan XP GPU. While not real-time, it is nearly 50 times faster than the HEVC reference software (HM) in its highest efficiency mode.

Limitations and Future Work

  • Error Propagation: Like most P-frame (predictive) based systems, errors can accumulate over long sequences. The authors suggest that more sophisticated error propagation minimization strategies are needed.
  • Computational Complexity: While faster than some traditional reference encoders, 0.8 fps is still too slow for consumer real-time applications. Further model pruning or hardware-specific optimization is required.
  • Multi-scale Representation: The authors note that applying multi-scale representations within the HMC module could further improve performance across different video resolutions.

Summary updated

BibTeX
@article{liu2022end,
  author = {Haojie Liu and Ming Lu and Zhiqi Chen and Xun Cao and Zhan Ma and Yao Wang},
  title = {{End-to-End Neural Video Coding Using a Compound Spatiotemporal Representation}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2022},
  url = {https://openreview.net/forum?id=4Jy3a91b42},
}
Figure