[Paper Review] Overfitting for Fun and Profit: Instance-Adaptive Data Compression
The paper proposes full-model instance-adaptive neural data compression by finetuning the entire model on a single video’s I-frames and signaling the quantized model updates, achieving about a 1 dB PSNR improvement at the same bitrate over encoder-only finetuning.
Neural data compression has been shown to outperform classical methods in terms of $RD$ performance, with results still improving rapidly. At a high level, neural compression is based on an autoencoder that tries to reconstruct the input instance from a (quantized) latent representation, coupled with a prior that is used to losslessly compress these latents. Due to limitations on model capacity and imperfect optimization and generalization, such models will suboptimally compress test data in general. However, one of the great strengths of learned compression is that if the test-time data distribution is known and relatively low-entropy (e.g. a camera watching a static scene, a dash cam in an autonomous car, etc.), the model can easily be finetuned or adapted to this distribution, leading to improved $RD$ performance. In this paper we take this concept to the extreme, adapting the full model to a single video, and sending model updates (quantized and compressed using a parameter-space prior) along with the latent representation. Unlike previous work, we finetune not only the encoder/latents but the entire model, and - during finetuning - take into account both the effect of model quantization and the additional costs incurred by sending the model updates. We evaluate an image compression model on I-frames (sampled at 2 fps) from videos of the Xiph dataset, and demonstrate that full-model adaptation improves $RD$ performance by ~1 dB, with respect to encoder-only finetuning.
Motivation & Objective
- Motivate improving rate-distortion performance by adapting the entire compression model to a single data instance.
- Extend the RD loss to include model update costs and quantization overhead.
- Demonstrate that full-model finetuning with spike-and-slab priors reduces bitrate while improving distortion on I-frames.
- Analyze how model updates are distributed across parameters and how quantization affects performance.
Proposed method
- Formulate a combined RD and model-rate loss L_RDM that includes a model-update cost term M derived from a model prior p(delta).
- Use a spike-and-slab prior to encourage sparsity and to reduce the cost of signaling zero updates.
- Quantize model updates delta with a bin width t and Straight-Through Estimation for gradients during finetuning.
- Encode latent variables z and quantized updates delta with entropy coding using priors p_theta(z) and p([delta]).
- Finetune the global model on single I-frames (full-model adaptation) and amortize model-rate costs across multiple frames within a video.
Experimental results
Research questions
- RQ1Can full-model finetuning on a single video instance improve RD performance compared to encoder-only finetuning or latent-only adaptation?
- RQ2How does incorporating a model-update cost and quantization-aware training affect the practicality and gains of instance-adaptive compression?
- RQ3What is the distribution of model updates across parameter groups when adapting to I-frames, and how does the spike-and-slab prior influence signaling costs?
- RQ4What RD gains are achievable across different β settings and how do they evolve during finetuning?
Key findings
- Full-model instance-adaptive finetuning yields about 1 dB RD gain at the same bitrate over encoder-only finetuning on Xiph-5N 2fps I-frames.
- Accounting for model-update costs and quantization is essential; ignoring them can lead to degraded or unbounded bitrate increases.
- The spike-and-slab prior reduces the zero-update signaling cost and promotes sparsity, guiding whether a parameter should be updated.
- Most RD gains come early in finetuning and persist, with higher bitrate regimes showing larger latent-rate reductions due to more effective finetuning.
- Bit allocation analysis shows updates are often quantized and capped by the quantizer, while zero-updates incur small static costs.
- Encoder-only finetuning performs competitively with direct latent optimization, implying a small amortization gap in these experiments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.