Compressing image encoders via latent distillation
Caroline Mazini Rodrigues, Nicolas Keriven, Thomas Maugey
TL;DR
The paper tackles the practicality of bulky end-to-end learned image codecs in hardware-constrained settings by introducing latent-space distillation to train compact encoders while preserving the decoder. It employs an asymmetric knowledge distillation framework: a lightweight encoder is trained to mimic the teacher's latent representations, with Factorized Prior distilling only the latent y and Hyperprior distilling both y and z, leaving the decoder fixed. The approach yields better rate-distortion performance than training lightweight encoders from scratch, achieving near-original results at substantial encoder reductions even with limited data, and it delivers significant reductions in MACs and parameter counts. This work enables deployment of learned image codecs on edge devices and IoT contexts, with future work aiming to extend the method to encoder and decoder reductions together.
Abstract
Deep learning models for image compression often face practical limitations in hardware-constrained applications. Although these models achieve high-quality reconstructions, they are typically complex, heavyweight, and require substantial training data and computational resources. We propose a methodology to partially compress these networks by reducing the size of their encoders. Our approach uses a simplified knowledge distillation strategy to approximate the latent space of the original models with less data and shorter training, yielding lightweight encoders from heavyweight ones. We evaluate the resulting lightweight encoders across two different architectures on the image compression task. Experiments show that our method preserves reconstruction quality and statistical fidelity better than training lightweight encoders with the original loss, making it practical for resource-limited environments.
