Versatile Learned Video Compression

Runsen Feng, Zongyu Guo, Zhizheng Zhang, Zhibo Chen

TL;DR

Existing learned video compression models hard-code specific prediction modes (like purely unidirectional P-frames or fixed bidirectional interpolation), requiring separate architectures for different streaming scenarios. Versatile Learned Video Compression (VLVC) introduces a single unified model capable of handling arbitrary inter-frame prediction settings by combining multiple 3D voxel flows (spatio-temporal motion vectors) with polynomial motion trajectory prediction. As a result, it achieves rate-distortion performance on par with the latest traditional standard, VVC/H.266, in terms of MS-SSIM across both low-delay and random-access configurations.

What Problem Does This Paper Address?

Traditional video codecs like HEVC (H.265) and VVC (H.266) dynamically support versatile inter-prediction modes (single- or multi-reference, forward, backward, or bidirectional prediction) to handle everything from real-time video calls (low delay) to streaming stored movies (random access).

In contrast, deep learning–based video codecs typically hardwire their network architectures to a specific mode—such as low-delay unidirectional 2D optical flow or fixed-stride bidirectional frame interpolation. If you change the reference structure or frame distance, the model breaks or performs poorly. Developing a separate deep network for every coding configuration is impractical. The authors aim to design a single, flexible neural codec that seamlessly adapts to arbitrary prediction structures while staying competitive with next-generation hand-engineered codecs.

Methods

VLVC achieves mode-agnostic compression through two core innovations:

  1. Multi-Voxel Flow Motion Compensation:
  2. Instead of standard 2D optical flow (which only searches in $x, y$), VLVC predicts 3D voxel flows $(g_x, g_y, g_z)$ along with a per-flow confidence weight $g_w$.
  3. By stacking available reference frames into a spatio-temporal volume $X_t$, the temporal component ($g_z$) allows the network to continuously sample across time.
  4. The authors extend this to $M$ multiple voxel flows (default $M = 25$) combined via weighted trilinear warping, enabling the network to reconstruct complex, blurred, or occluded areas by pulling and blending pixels from multiple spatial and temporal reference locations.
  5. Generalized Optical Flow Prediction with Polynomial Trajectories:
  6. When multiple reference frames are present, transmitting motion information can become a bitrate bottleneck.
  7. To reduce motion entropy, the decoder predicts motion trajectories using a $k$-order polynomial function: $$f_{t_j \to t} = a_1 (t - t_j) + a_2 (t - t_j)^2 + \dots + a_k (t - t_j)^k$$
  8. Polynomial coefficients are analytically solved using flows estimated among already-decoded reference frames (via an off-the-shelf PWC-Net).
  9. A flow reversal layer using softmax splatting maps forward flows into backward flows ($f_{t \to t_j}$) to produce initial frame predictions, leaving only a compact motion latent to be transmitted.
  10. Feature Residual Coding & GOP Loss:
  11. The framework uses autoencoder-based hyperprior entropy models and encodes residuals in latent feature space rather than pixel space.
  12. Models are trained using a Group of Pictures (GOP) rate-distortion loss spanning up to 7 frames to expose the model to diverse reference combinations during training.

Datasets

  • Training: The Vimeo-90k septuplet dataset (89,800 video clips, randomly cropped to $128 \times 128$ during pre-training and $256 \times 256$ during fine-tuning).
  • Evaluation:
  • HEVC Common Test Sequences (Classes B, C, D, and E; 16 videos of varying resolutions).
  • UVG Dataset (seven 1080p high-frame-rate sequences, 3,900 frames total).
  • No new datasets or benchmarks were introduced.

Key Insights and Ideas

  • Decoupling prediction modes from architecture: Treating motion compensation as 3D continuous sampling over a spatio-temporal volume cleanly decouples the reference frame structure from the neural network topology. The exact same weights execute unidirectional low-delay prediction or bidirectional random access.
  • Multiple flows provide large gains with minor overhead: Moving from 1 voxel flow to 25 flows yields an impressive ~1.0 dB gain. Surprisingly, this does not explode the motion bitrate—the model naturally learns to prune unnecessary flows, and the reduction in residual error heavily outweighs the slight increase in motion bits.
  • Polynomial physics as an inductive bias: Instead of training a monolithic, black-box recurrent network to predict motion across arbitrary frames, fitting a closed-form polynomial trajectory provides a robust geometric constraint that works regardless of frame timestamps.

Key Results

  • Matches VVC/H.266: VLVC is the first learned video compression method to achieve rate-distortion performance comparable to the official VVC reference software (VTM 12.0) in MS-SSIM under both Low-Delay (LD) and Random Access (RA) configurations.
  • Outperforms Existing Learned Codecs: VLVC clearly surpasses earlier deep learning codecs (such as DVC, Lu et al., and M-LVC) across PSNR and MS-SSIM.
  • Ablation Performance:
  • Running in Random Access (bidirectional) mode gains ~0.4 dB over Low-Delay mode using the exact same trained model.
  • The generalized flow prediction module (GFP) reduces the bitrate of transmitted voxel flows by approximately 1/6 (a ~16.7% reduction) and improves overall R-D performance by 0.1–0.3 dB.

Limitations and Future Work

  • Computational and Decoding Complexity: The framework relies on running an optical flow network (PWC-Net), multi-order matrix inversions, softmax splatting, and 25-flow trilinear interpolations on the decoder side, which may pose latency challenges for resource-constrained client devices.
  • Metric Sensitivity: While VLVC reaches VVC parity on perceptual structural metrics (MS-SSIM), traditional codecs like VTM still maintain an edge in strict RGB/YUV PSNR.
  • Explicit Limitations Noted by Authors: The paper's checklist notes that the authors did not provide an explicit standalone limitations section or error bars across seeds.

Summary updated

BibTeX
@inproceedings{feng2021versatile,
  author = {Runsen Feng and Zongyu Guo and Zhizheng Zhang and Zhibo Chen},
  title = {{Versatile Learned Video Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=pLk9yRbRRtF},
}
Figure