Reducing The Mismatch Between Marginal and Learned Distributions in Neural Video Compression

Muhammet Balcilar, Bharath Bhushan Damodaran, Pierre HellierarXiv 2022

TL;DR

This paper introduces a generic, low-computational method to boost neural video compression efficiency by 2% to 5% without sacrificing reconstruction quality. By identifying and closing the "amortization gap"—the mismatch between a model's learned probability distributions and the actual data it encounters—the authors provide a plug-and-play solution for state-of-the-art neural codecs.

What Problem Does This Paper Address?

While end-to-end neural image compression has recently begun to outperform traditional standards like VVC, neural video compression still lags behind. A major culprit is the amortization gap.

In neural compression, models (typically Variational Autoencoders or VAEs) learn to map video data into a "latent space." To compress these latents, the model must predict their probability distribution. However, a model trained on a massive dataset learns a "global" average distribution. When it encounters a specific, unique video frame at test time, its predictions are often slightly off. This discrepancy means the entropy coder uses more bits than theoretically necessary.

Previous attempts to fix this involved "post-training"—fine-tuning the model for every single video it compresses. While effective, this is computationally expensive and slow, making it impractical for real-world applications. This paper seeks a way to close this gap efficiently without retraining.

Methods

The authors propose a Temporal Re-parameterization framework. Instead of relying solely on the pre-trained probability models, they adjust the parameters of these distributions on the fly to better fit the actual data.

  1. Reparameterization: For each feature band, they replace the learned probability mass functions (pmfs) with parametric distributions:
  2. Truncated Gaussian Mixtures for side information (factorized entropy models).
  3. Truncated Zero-mean Gaussians for main information (hyperprior models).
  4. Fitting: They fit these new parameters to the actual histogram of the latents for the current frame.
  5. Temporal Masking: To avoid the overhead of sending new parameters for every frame, they use an "S-bit temporal mask." This tells the receiver whether to use a new set of parameters or simply reuse the ones from the previous frame, effectively exploiting temporal redundancy in the distribution parameters themselves.
  6. Selective Update: They only update the pmf tables where the bit savings from a better fit outweigh the cost of signaling the new parameters.
Figure 1: Comparison of learned pmfs (green), actual data histograms (blue), and the authors' reparameterized fit (red). The red curves clearly track the actual data more accurately.

Datasets

The researchers evaluated their method using the UVG (Ultra Video Group) dataset, a standard benchmark consisting of 7 high-quality 1080p video sequences. They tested their approach across three different state-of-the-art neural video compression architectures:

  • SSF (Scale-space flow)
  • LHBDC (Learned hierarchical bi-directional compression)
  • AIVC (Artificial intelligence based video codec)

Key Insights and Ideas

  • The Gap is Real and Significant: The authors found that the amortization gap accounts for a 4.1% to 7.7% loss in compression efficiency across different models.
  • Side Information is the Weak Link: Interestingly, the largest gaps were found in the "side information" (the hyperprior). While side info is meant to help model the main data, its own distribution is often poorly captured by the global model.
  • Residuals Dominate: In all tested models, the residual information (the difference between frames) makes up the vast majority of the bitstream (77%–94%). Even small improvements in modeling residual distributions lead to meaningful total savings.
  • Temporal Redundancy of Parameters: Distribution parameters don't change wildly from frame to frame. By reusing parameters temporally, the signaling overhead is drastically reduced, making the reparameterization "profitable" in terms of bitrate.

Key Results

The proposed method consistently improved compression performance across all tested architectures and frame types (I, P, and B frames).

  • Bitrate Savings: On average, the method reduced file sizes by 2% to 5% for the same reconstruction quality.
  • Closing the Gap: The approach successfully closed about half of the total amortization gap.
  • Performance vs. Quality: Savings were most pronounced at lower bitrates (lower PSNR), where the relative cost of the amortization gap is higher. However, even at high quality, the gain remained above 1%.
Figure 2: Bitrate savings vs. PSNR for three SOTA models. The blue line represents the theoretical maximum gap, and the red line shows the actual savings achieved by the proposed method.

Limitations and Future Work

  • Fixed Signaling Cost: The method requires sending extra bits to define the new parameters. If a feature band has very little data (less than 1% of the bitstream), the cost of signaling might exceed the savings, rendering the method ineffective for those specific components.
  • Complexity: While much faster than post-training, it still adds a small amount of computational overhead during encoding to perform the histogram fitting and parameter selection.
  • Future Directions: The authors suggest exploring why certain neural codec architectures are more prone to this gap than others, which could lead to the design of "gap-resistant" entropy models in the future.

Summary updated

BibTeX
@misc{balcilar2022reducing,
  author = {Muhammet Balcilar and Bharath Bhushan Damodaran and Pierre Hellier},
  title = {{Reducing The Mismatch Between Marginal and Learned Distributions in Neural Video Compression}},
  year = {2022},
  eprint = {2210.06596},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.06596},
}
Figure