Skip to main content
QUICK REVIEW

[Paper Review] Instance-Adaptive Video Compression: Improving Neural Codecs by Training on the Test Set

Ties van Rozendaal, Johann Brehmer|arXiv (Cornell University)|Nov 19, 2021
Advanced Data Compression TechniquesComputer Science12 citations
TL;DR

This paper proposes Instance-Adaptive (InstA) video compression, where a pretrained neural codec is finetuned on each test video sequence at encoding time. The finetuned model parameters are entropy-coded and transmitted alongside the latent code, enabling up to 27% BD-rate savings over base models and 44% over H.265, while reducing decoder complexity by 70% with smaller models.

ABSTRACT

We introduce a video compression algorithm based on instance-adaptive learning. On each video sequence to be transmitted, we finetune a pretrained compression model. The optimal parameters are transmitted to the receiver along with the latent code. By entropy-coding the parameter updates under a suitable mixture model prior, we ensure that the network parameters can be encoded efficiently. This instance-adaptive compression algorithm is agnostic about the choice of base model and has the potential to improve any neural video codec. On UVG, HEVC, and Xiph datasets, our codec improves the performance of a scale-space flow model by between 21% and 27% BD-rate savings, and that of a state-of-the-art B-frame model by 17 to 20% BD-rate savings. We also demonstrate that instance-adaptive finetuning improves the robustness to domain shift. Finally, our approach reduces the capacity requirements of compression models. We show that it enables a competitive performance even after reducing the network size by 70%.

Motivation & Objective

  • Address the performance gap in neural video codecs under domain shift and limited training data by relaxing generalization requirements.
  • Improve rate-distortion performance of neural codecs without modifying their architecture or training distribution.
  • Reduce decoder-side computational complexity by enabling smaller, instance-optimized models.
  • Enable a trade-off between encoder compute and compression efficiency, analogous to classical codecs with increased encoding time.
  • Demonstrate robustness and efficiency gains across diverse video datasets including UVG, HEVC, and Xiph-5N.

Proposed method

  • Finetune a pretrained neural video codec on each individual video sequence at test time using instance-adaptive learning.
  • Compress and transmit the updated model parameters using entropy coding under a learned mixture model prior to minimize bit cost.
  • Use a variational autoencoder framework with separate encoder, prior, and decoder networks, where the encoder and prior are updated per video instance.
  • Amortize the cost of parameter transmission by sending only the delta updates from the base model, not the full weights.
  • Apply the method to both P-frame (scale-space flow) and B-frame (state-of-the-art) architectures to demonstrate generalizability.
  • Optimize the entropy model for parameter updates to ensure low overhead, even when finetuning for only a few steps.

Experimental results

Research questions

  • RQ1Can instance-adaptive finetuning significantly improve rate-distortion performance of neural video codecs compared to fixed global models?
  • RQ2Does instance-adaptive learning enhance robustness to domain shift, such as between natural and animated video content?
  • RQ3To what extent can model size be reduced in neural codecs while maintaining competitive performance using instance adaptation?
  • RQ4How effective is the trade-off between encoder-side compute and compression efficiency in real-world video compression?
  • RQ5Can the overhead of transmitting finetuned parameters be kept low enough to be amortized across a full video sequence?

Key findings

  • On the UVG-1k, HEVC class-B, and Xiph-5N datasets, InstA achieves 21% to 27% BD-rate savings over the base scale-space flow model.
  • For the state-of-the-art B-frame model, InstA delivers 17% to 20% BD-rate savings over the base model.
  • InstA outperforms the ffmpeg (x265) H.265 implementation by 5% to 44% BD-rate savings across the same datasets.
  • The method improves robustness to domain shift, with significant performance gains when compressing animated sequences using a model trained on natural videos.
  • Even after reducing the network size by 70%, InstA maintains competitive performance, demonstrating reduced expressivity requirements.
  • The decoder-side computational cost is reduced by 70% with smaller models, and the initial parameter decoding delay is below 0.2 seconds on a Tesla V100 GPU.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.