Compression via Pretrained Generative Foundation Models

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 114 papers20 conceptsfrozen 2026-10-04

Traditional image compression relies on finding a compact representation of data and learning a specific decoder to reconstruct it. However, this approach often requires training a new model for every desired bitrate and struggles to maintain visual realism at extremely low bitrates.

A new research direction suggests that we don't need to train specialized codecs from scratch. Instead, we can leverage the "priors" already embedded in large-scale foundation models—like Stable Diffusion or Large Language Models (LLMs)—to act as off-the-shelf decoders. By using models that already "know" what the world looks like, we can achieve state-of-the-art compression by simply steering these models with a tiny amount of information.

The Generative Prior as a Decoder

The core intuition behind this shift is that compression is fundamentally a problem of prediction and synthesis. If a generative model can synthesize a high-quality image of a "sunset over a mountain" from a short text string, that text string is, in effect, a highly compressed version of the image.

Researchers like Eric Lei, Hamed Hassani, and their colleagues demonstrated this in Text + Sketch: Image Compression at Ultra Low Rates. Instead of sending pixel data, they transmit an optimized text prompt and a sparse edge-map (a "sketch"). A pretrained foundation model then uses these as constraints to reconstruct the image. Because the model already understands textures and lighting, it can fill in the details that traditional codecs would discard, maintaining semantic integrity even at bitrates below 0.01 bits per pixel.

Zero-Shot Compression via Posterior Sampling

A major hurdle in neural compression is the need for task-specific training. The "zero-shot" approach eliminates this by using pretrained diffusion models without any fine-tuning.

In PSC: Posterior Sampling-Based Compression, Noam Elata, Tomer Michaeli, and Michael Elad propose a framework where the encoder and decoder synchronize through shared randomness. By treating compression as a posterior sampling problem—asking the model "what is the most likely image given these few bits of evidence?"—they can reconstruct high-fidelity images.

This is further refined by Jeremy Vonderfecht and Feng Liu in Lossy Compression with Pretrained Diffusion Models. Their method, DiffC, utilizes flagship models like Stable Diffusion and Flux to outperform specialized generative codecs. The insight here is that the deep image distributions learned during broad pretraining are more robust and expressive than those learned by smaller, task-specific models.

In traditional compression, you often have to choose between a small file size (Rate), accuracy to the original pixels (Distortion), and how "real" the image looks to a human (Perception). Usually, improving one requires sacrificing another or retraining the model.

Yuhan Wang and colleagues address this in Training-Free Rate-Distortion-Perception Traversal With Diffusion. By leveraging the "score functions" (the mathematical gradients that guide diffusion models), they can navigate this three-way tradeoff on the fly. This allows a single pretrained model to act as a variable-rate codec, adjusting its behavior at inference time to prioritize either mathematical fidelity or visual realism without ever needing a single gradient update.

Beyond Images: LLMs for Lossless Compression

The power of generative priors isn't limited to diffusion models or lossy compression. Kecheng Chen and their team explored using Large Language Models for lossless compression in $P^2$-LLM.

By treating RGB subpixels as numerical tokens, they use the LLM's next-token prediction capabilities to estimate pixel probabilities. Because LLMs are excellent at capturing complex patterns and long-range dependencies, their predictions are highly accurate. When paired with an arithmetic coder, this allows for lossless compression that generalizes better to out-of-distribution data (like scientific imagery) than traditional algorithms, which often rely on simpler local patterns.

Why It Works: The Universal Prior

The success of these methods suggests that "understanding" a signal is the ultimate form of compressing it. As Ruoyu Feng and others argue in Diff-ICMH, generative priors preserve high-level semantic integrity. This makes the compressed data useful not just for human eyes, but for machine vision tasks like object detection and segmentation. By leveraging foundation models, we are essentially using the collective "knowledge" of the internet to fill in the gaps left by missing data.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_compression_via_pretrained_generative_fo_9ca7cd6b,
  title = {Compression via Pretrained Generative Foundation Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/compression-via-pretrained-generative-foundation-models/rdr_9ca7cd6b1521455fbc3d446309a59fd6},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-03},
}

This exact version (version 1, frozen text):

@misc{lacuna_compression_via_pretrained_generative_fo_9ca7cd6b_v1,
  title = {Compression via Pretrained Generative Foundation Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/compression-via-pretrained-generative-foundation-models/rdr_9ca7cd6b1521455fbc3d446309a59fd6/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-03},
}