cs.CVNov 23, 2026

Your Codec, Your Generator: Idempotent Generative Compression without Retraining

Authors: Raz Haim, Assaf Shocher

Organizations: Technion – Israel Institute of Technology

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)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†(y−Ax)x'=x+A^\dagger(y-Ax), giving the closest reconstruction to xx satisfying Ax′=yAx'=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.

Figures & tables

Appendix figures & tables24 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Oct 19, 2026

PerQ: Inverse Generative Modeling for Neural Image Compression via Quantization Error Compensation

Neural image codecs face a fundamental trade-off between pixel fidelity and perceptual quality. Distortion-optimized codecs preserve pixel-wise fidelity but produce blurred reconstructions at low bitrates, whereas generative codecs leverage learned priors to improve perceptual quality but tend to exhibit saturating PSNR at higher bitrates and require separate models for different bitrate targets. We propose PerQ, which reframes perceptual reconstruction as inverse generative modeling with bounded support. Specifically, we define the quantization cell as the set of latents that yield the same transmitted symbols and derive a transport bound showing that reconstructions from this cell remain within a rate-determined radius of the codec output. This motivates performing generative reconstruction within the codec-induced quantization cell, rather than sampling from an unconstrained image prior. PerQ implements this principle by attaching a rate-conditioned flow-matching compensator to a frozen, multi-rate distortion-optimized backbone, enabling perceptual enhancement while preserving the backbone's coding performance. Experiments on Kodak and CLIC2020 show that PerQ achieves perceptual performance comparable to generative codecs such as MS-ILLM in LPIPS and FID, while maintaining competitive PSNR relative to distortion-optimized codecs such as ELIC. A single model checkpoint supports a wide bitrate range with fast decoding, and the compensator provides consistent gains across three different backbones. The implementation is available at https://jasminepp.github.io/PerQ/.
Jun 19, 2026

Gen2-IC: Bridging Generative Models and Image Codecs through Latent Transport

Diffusion-based image compression has achieved strong perceptual quality at ultra-low bitrates. However, existing codecs are often tied to specific backbones and specialized components, making diverse, rapidly evolving generative models difficult to reuse. This raises a natural question: Can modern generative foundation models be connected to image compression through a simple and extensible interface? Two insights guide our design: stronger generative priors make a simpler codec interface viable, and generation and compression can be intrinsically linked through latent transport. We therefore propose Gen2-IC with two stages: (1) Latent Compression maps clean image latents to entropy-constrained latents; and (2) Latent Transport refines them with one near-terminal update based on the pretrained model. Gen2-IC requires neither auxiliary conditioning signals nor task-specific backbone modifications. With lightweight adaptation and no distillation, it supports fast encoding and one-step decoding across multiple bitrates. We validate Gen2-IC on SD-2.1, SANA-1.5, FLUX.1-dev, and Qwen-Image-2512, spanning U-Net and Transformer architectures as well as diffusion and flow-matching formulations. With stronger priors, Gen2-IC delivers gains below 0.05 bpp: the Qwen variant leads diffusion-based generative codecs in reconstruction fidelity (PSNR), perceptual similarity (LPIPS and DISTS), and recognizer-based semantic fidelity (OCR CER/WER and face-ROI similarity) across four benchmarks.
Nov 23, 2026

Preserve to Compress: Beyond Low-Dimensional Latents in One-Step Diffusion Codec

Pretrained latent diffusion models bring powerful generative priors to ultra-low-bitrate image compression, but their latent spaces reflect a reconstruction--generation tradeoff. Low-dimensional latents reduce modeling cost but can discard image details, while higher-dimensional latents improve reconstruction yet make diffusion optimization harder under a fixed computational budget. Generative codecs that adopt these pretrained spaces also inherit this compromise, even though compression requires fidelity to a specific source image. In particular, low-dimensional latent interfaces can discard source details before coding and restrict how much decoded information reaches the image decoder. We propose Preserving Information for Compression and Synthesis (PICS), a one-step generative image compression framework that adapts these interfaces to preserve source information. Our Information-Preserving Adaptors (IPAs) expose richer features for coding and retain decoded information throughout reconstruction, while deferred decoder adaptation stabilizes training and helps the image decoder exploit the expanded representations. Experiments on Kodak, DIV2K, and CLIC 2020 show average BD-rate savings of 52.64% and 39.61% over StableCodec at matched LPIPS and DISTS, respectively.