TL;DR
This paper introduces a simple yet effective finetuning step to boost the performance of learned image codecs. By retraining the decoder and hypercoder on the actual quantized data used during inference—rather than the smooth approximations used during initial training—the authors achieve up to 2.2% bitrate savings (BD-rate) for free, with zero increase in inference complexity.
What Problem Does This Paper Address?
In the world of learned image compression, Variational Autoencoders (VAEs) are the gold standard. They transform images into "latents," which are then quantized (converted to integers) to be stored efficiently.
The catch? Quantization is a "staircase" function with a derivative of zero almost everywhere, which breaks the backpropagation needed for Deep Learning. To get around this, researchers usually replace quantization during training with "proxies" like adding uniform noise or using "straight-through" estimators.
While these proxies allow the model to train, they don't perfectly match the reality of inference. This mismatch is especially glaring for sophisticated schemes like Trellis-Coded Quantization (TCQ), where quantization decisions are interdependent and based on a complex rate-distortion search. The gap between the training proxy and the inference reality leads to suboptimal reconstruction.
Methods
The authors propose a two-stage training pipeline:
- Initial Training: A standard VAE (based on the popular Minnen/Ballé architectures) is trained end-to-end using smooth approximations for quantization (e.g., adding uniform noise).
- Finetuning on Quantized Latents: Once the model is "converged," the encoder is frozen. The authors then pass the training data through the actual quantizer (Uniform Scalar Quantization or TCQ) to generate a fixed set of quantized latents. They then retrain the decoder (and sometimes the hypercoder) to minimize reconstruction error based on these real-world inputs.
By focusing the second stage only on the decoder and hypercoder, the model learns to "undo" the specific artifacts and errors introduced by the chosen quantization scheme, rather than a generic noise model.
Datasets
- Training: A subset of the ImageNet dataset, using cropped 256x256 luma blocks.
- Evaluation:
- Kodak: 24 images at 768x512 resolution (a standard benchmark in image compression).
- TecNick: Higher resolution images (1200x1200) used to test the model's scaling.
Key Insights and Ideas
- The "Proxy Gap": The core insight is that standard training noise is a poor substitute for the structured error of real quantization. The decoder is essentially "hallucinating" how to fix noise that it will never actually see at runtime.
- TCQ is Harder to Mimic: The paper highlights that TCQ—which uses a trellis search to find the best path through multiple possible quantization levels—is particularly difficult to approximate with simple noise. Consequently, TCQ benefits significantly more from this finetuning step than simple rounding (USQ).
- "Free" Gains: Because the finetuning only adjusts the weights of the existing neural network layers, the resulting model has the exact same architecture and runtime speed as the baseline. It’s a pure optimization of the existing parameters.
Key Results
The authors measured performance using Bjøntegaard-Delta (BD-rate), which represents the average bitrate savings for the same quality level (PSNR).
- Uniform Scalar Quantization (USQ): Retraining the decoder and hypercoder yielded average bitrate savings of 1.14% to 1.73% on the Kodak set.
- Trellis-Coded Quantization (TCQ): The gains were even more impressive here, reaching up to 1.97% savings on Kodak and up to 2.29% on the TecNick set.
- Quality Boost: On average, the PSNR (a measure of reconstruction quality) increased by about 0.07 dB to 0.14 dB across the test sets without changing the bitrate.
Limitations and Future Work
- Offline TCQ Generation: For the TCQ experiments, the quantized latents had to be pre-generated "offline." This is because the TCQ trellis search depends on the entropy model; if the entropy model changes during retraining, the "optimal" quantization path might change too.
- Joint Optimization: The authors note that a truly "on-the-fly" retraining for TCQ (where quantization is re-calculated every iteration) would be ideal but is computationally expensive.
- Scope: The study focused on luma-only versions of the datasets; extending this to full-color (YCbCr or RGB) images and more modern, complex architectures (like Transformers) remains a future step.
Summary updated