Neural Rate Control for Learned Video Compression

Yiwei Zhang, Guo Lu, Yunuo Chen, Shen Wang, Yibo Shi, Jing Wang, Li Song

Learning-based video compression has made significant strides in recent years, often exhibiting promising compression performance compared to traditional video codecs. However, prior research has primarily focused on advanced compression architectures while neglecting a critical component for practical deployment: rate control.

This paper introduces a significant missing piece in the puzzle of learned video compression by proposing a fully neural, end-to-end rate control system. The framework enables precise bitrate targeting (within ~2% error) while simultaneously improving compression efficiency by nearly 10%. By intelligently allocating bits across frames based on their importance, the system outperforms traditional mathematical models and fixed-parameter neural baselines.

The Rate Control Problem

In video streaming, rate control acts as the thermostat of the encoder. It ensures that the video stream fits within the available bandwidth (the target bitrate) while maintaining the highest possible visual quality.

Traditional codecs like H.264 or HEVC rely on mature rate control algorithms based on hand-crafted mathematical models. Modern "learned" video compression methods, which use deep neural networks to compress data, have largely ignored this mechanism. Most learned codecs are optimized for a fixed trade-off point—a hyperparameter called $\lambda$. To hit a specific bitrate, they often require slow, iterative searches to find the right $\lambda$. Furthermore, they lack a smart way to decide how many bits to "spend" on a complex frame versus a simple one, leading to suboptimal overall quality.

Proposed Neural Architecture

The authors propose a two-component neural architecture that acts as a "plug-and-play" module for existing variable-rate learned codecs.

Framework Overview

The system is divided into two primary modules: one for budgeting bits and another for spending them.

1. Rate Allocation Network

This module decides the bit "budget" and operates at two hierarchical levels:

  • miniGoP Level: It uses a sliding window approach to ensure smooth bitrate transitions over time, allocating a target rate for a small group of pictures (miniGoP).
  • Frame Level: A lightweight Weight Estimation Network analyzes spatiotemporal features to determine an individual frame's importance. Frames that serve as critical references for future frames are allocated more bits, while less important frames receive fewer.

2. Rate Implementation Network

This module handles the "spending." Once a target bitrate for a frame is set by the allocation network, this module predicts the exact coding parameter ($\lambda$) needed to hit that target.

Rate Implementation Network

To handle the vast diversity of video content, the network includes a crucial Normalization Module. Mapping a bitrate to a $\lambda$ value is difficult because a target like "0.1 bits per pixel" requires vastly different parameters for a static shot of a wall versus a high-motion action scene. The normalization module adjusts the rate-to-parameter mapping based on the specific visual features of the current frame, ensuring high precision.

Experimental Setup

The system is trained in a three-step process: first training the underlying codec, then the implementation network, and finally the allocation network.

The researchers used standard benchmarks to ensure robust results:

  • Training: Vimeo-90k (for the implementation network) and BVI-DVC (for the allocation network, as it contains longer sequences necessary for learning temporal dependencies).
  • Evaluation: Standard HEVC test sequences (Classes B, C, D, and E), the UVG dataset, and the MCL_JCV dataset.

Key Results and Insights

  • High Precision: The system achieves a relative bitrate error ($\Delta R$) of only ~2% on average. This is significantly more accurate than previous attempts to adapt traditional mathematical models to neural codecs.
  • Rate Control as a Performance Booster: Usually, rate control is seen as a constraint that might slightly lower quality to hit a target. Here, the authors show that content-adaptive allocation actually improves overall Rate-Distortion (R-D) performance. Compared to encoding with a fixed $\lambda$, the proposed rate control achieved nearly 10% BD-rate savings (providing the same quality using 10% less data).
  • Agnostic Design: The system is "codec-agnostic." The authors demonstrated its effectiveness by successfully integrating it into four different state-of-the-art learned video codecs (DVC, FVC, DCVC, and AlphaVC).
  • Low Overhead: The networks are lightweight. When encoding a 1080p sequence, the rate control modules add only about 5ms of latency per frame, making it highly viable for practical applications.

Limitations and Future Work

While the results are impressive, the authors note a few areas for future growth. The current work primarily focuses on P-frames (frames predicted from one previous frame). Future iterations will aim to extend this framework to handle bidirectional B-frames (predicted from both past and future frames) and more complex multi-reference frame prediction structures. Additionally, while PSNR (a standard mathematical quality metric) improved, further study into the subjective human perception of these neural rate-controlled videos would be valuable.

Summary updated

BibTeX
@inproceedings{zhang2024neural,
  author = {Yiwei Zhang and Guo Lu and Yunuo Chen and Shen Wang and Yibo Shi and Jing Wang and Li Song},
  title = {{Neural Rate Control for Learned Video Compression}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=42lcaojZug},
}
Figure