Skip to content

Your Codec, Your Generator: Idempotent Generative Compression without Retraining

Raz Haim, Assaf Shocher

cs.CV

Abstract

We introduce an image compression framework with three properties: (i) adaptation of pretrained codecs without retraining or fine-tuning, (ii) cycle-consistent recompression, even of already-encoded images, and (iii) decoding with independently chosen generative priors. We wrap the frozen encoder with non-learned operations so that every continuous latent has a preimage, yielding a surjective pseudo-invertible neural network. A nonlinear right inverse built from the pretrained decoder satisfies E'(D'(E'(x)))=E'(x). To extend consistency to quantized bitstreams, the receiver searches for a continuous latent that reproduces both the transmitted main symbols and entropy side information. A successful search and an exact correction preserve both streams under deterministic coding; the final reconstruction is checked through the actual coding path. The encoder's pseudo-inverse enables a nonlinear counterpart of back-projection. In the linear case, back-projection has the closed-form solution x'=x+A^\dagger(y-Ax), giving the closest reconstruction to xx satisfying Ax'=y. Our nonlinear formulation enforces the transmitted code on proposals from an independently chosen generative model. Adjusting the starting noise controls the prior's influence without changing that code. Experiments show small first-pass quality changes, higher retained quality than trained consistency codecs over 50 recompressions, also under 8-bit storage, and decoder-side control of the perception-distortion trade-off. Decoupling the codec from its prior lets the receiver adopt future generators without retraining or re-encoding.

Create a lesson