Abstract
The pursuit of higher compression efficiency continuously drives the advances of video coding technologies. Fundamentally, we wish to find better "predictions" or "priors" that are reconstructed previously to remove the signal dependency efficiently and to accurately model the signal distribution for entropy coding. In this work, we propose a neural video compression framework, leveraging the spatial and temporal priors, independently and jointly to exploit the correlations in intra texture, optical flow based temporal motion and residuals. Spatial priors are generated using downscaled low-resolution features, while temporal priors (from previous reference frames and residuals) are captured using a convolutional neural network based long-short term memory (ConvLSTM) structure in a temporal recurrent fashion. All of these parts are connected and trained jointly towards the optimal rate-distortion performance. Compared with the High-Efficiency Video Coding (HEVC) Main Profile (MP), our method has demonstrated averaged 38% Bjontegaard-Delta Rate (BD-Rate) improvement using standard common test sequences, where the distortion is multi-scale structural similarity (MS-SSIM).
Introduction
Video compression is fundamentally the art of prediction. To minimize storage and bandwidth, codecs predict the current frame based on "priors"—information already available from previous frames (temporal) or neighboring pixels (spatial). While traditional standards like HEVC (H.265) rely on handcrafted, block-based algorithms, researchers from Nanjing University have introduced a Neural Video Compression (NVC) framework that leverages deep learning to outperform HEVC by an average of 38% in BD-Rate.
Deep learning has revolutionized image compression, but video remains challenging due to complex motion and long-term temporal dependencies. Existing neural methods often struggle with high-frequency details or fail to effectively exploit statistical correlations between spatial and temporal data. This work bridges that gap with a unified, end-to-end learned framework where spatial and temporal priors are central to the architecture.
Proposed Framework
The NVC framework consists of three primary modules designed to handle different aspects of video data:
- Neural Intra Coding: For I-frames, a Variational Autoencoder (VAE) with embedded hyperpriors is used. A novel Information Compensation Network (ICN) fuses decoded hyperpriors with latent features to enhance reconstruction quality.
- Neural Inter Coding (Motion): Motion is described using Optical Flow (via a FlowNet-style architecture) rather than traditional block-matching. The compressed flow is used at the decoder to "warp" the previous frame into a prediction of the current one.
- Spatio-Temporal Priors: This is the core innovation. Spatial Priors are generated from downscaled, low-resolution versions of the content to model conditional probabilities. Temporal Priors are captured using a ConvLSTM, which maintains a "memory" of features from previous frames to predict high-frequency details often lost during simple motion warping.
The entire system is trained end-to-end using a joint rate-distortion loss function, optimizing for both bitrate and visual quality as measured by MS-SSIM.
Experimental Setup
The model was trained on the Vimeo dataset, utilizing random 192x192 spatial crops across 5-frame sequences to balance temporal learning with memory constraints. Evaluation was performed on standard common test sequences, including high-definition content like KristenAndSara (1080p) and vidyo1 (720p), as well as motion-heavy sequences like BasketballDrive (1080p).
Key Insights and Results
A critical insight of this work is the use of ConvLSTM as a Memory Bank. Simple warping based on optical flow frequently leaves artifacts. The ConvLSTM's hidden state acts as a temporal prior, effectively "filling in" high-frequency components. Furthermore, these temporal priors assist the entropy coder in accurately modeling the probability distribution of residuals, significantly reducing the resulting bitstream size.
The NVC framework achieved an average 38.12% BD-Rate gain over the HEVC Main Profile. In specific sequences like KristenAndSara, gains reached as high as 96.96%. Visually, NVC produces significantly sharper images at lower bitrates. For instance, at an MS-SSIM of ~0.988, NVC required only 0.1691 bpp, whereas HEVC required 0.3145 bpp—nearly double the data for the same quality level.
Limitations and Future Work
Currently, the framework supports only an IPPP structure (low-delay coding where each frame references the past). It does not yet include bidirectional (B-frame) prediction, which is standard in professional broadcasting. Additionally, the computational complexity of running multiple deep neural networks (VAE, FlowNet, ConvLSTM) remains an area for optimization. Future research will focus on bidirectional temporal prediction and adaptive bitrate allocation to further enhance rate-distortion performance.
Summary updated