Dec 20, 2021 · Research

Latent diffusion models: Diffusion leaves pixel space

Rombach and collaborators

Rombach's Munich team runs image diffusion in an autoencoder's compressed latent space, not raw pixels. Diffusion gets cheap enough to release openly: the design ships as Stable Diffusion in 2022.

2,078 words10 min readReviewed Sep 10, 2026

The event and the specific claim

On 20 December 2021, five researchers from the Computer Vision group at Ludwig Maximilian University of Munich (Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser and Björn Ommer) submitted High-Resolution Image Synthesis with Latent Diffusion Models, a paper later presented at CVPR 2022. Its narrow, documented claim sounds almost like an engineering note: rather than running a diffusion model directly over raw pixels, run it inside the compressed latent space of a pretrained autoencoder, and feed conditioning signals (text, class labels, bounding boxes, segmentation maps) into the denoiser through cross-attention layers. The authors reported that this "reduces the computational requirements compared to pixel-based" diffusion while retaining quality and flexibility.

The broad historical judgment is that this design, latent diffusion, became the backbone of open image generation: the same architecture and codebase, scaled up and retrained, was released eight months later as Stable Diffusion. Those two claims sit at different altitudes. The paper is a documented efficiency and conditioning result on stated benchmarks; the cultural moment that followed depended on separate decisions about data, licensing and public weights. Keeping the two apart is the whole task of placing this event correctly.

Diffusion before it left pixel space

The generative family latent diffusion belongs to did not begin in 2021. The core idea, gradually destroying data with noise and training a network to reverse the process, was set out in 2015 by Sohl-Dickstein and colleagues in Deep Unsupervised Learning using Nonequilibrium Thermodynamics, which framed generation as reversing a diffusion process borrowed from statistical physics. A parallel line, score-based modeling, arrived with Song and Ermon's Generative Modeling by Estimating Gradients of the Data Distribution in 2019, which learned to estimate the gradient of the data density at many noise levels and sampled with Langevin dynamics.

These ideas became competitive with the best generators in 2020, when Ho, Jain and Abbeel's Denoising Diffusion Probabilistic Models reported a Fréchet Inception Distance of 3.17 and an Inception Score of 9.46 on unconditional CIFAR-10, then a state of the art for that task. A year later, Dhariwal and Nichol's Diffusion Models Beat GANs on Image Synthesis pushed ImageNet FID to 4.59 at 256x256 and 7.72 at 512x512, and introduced classifier guidance to trade diversity for fidelity. Those are task-specific evaluation scores, not measures of general ability, but they established that diffusion could match or beat the reigning GANs on image quality.

The compute wall this work was built to remove

The constraint latent diffusion addressed was cost, and the cost was structural rather than incidental. A diffusion model generates by starting from noise and running the denoiser many times in sequence, often on the order of a few hundred to a thousand steps per image. When the denoiser is a large convolutional U-Net operating on a full-resolution pixel tensor, every one of those steps touches every pixel. Training compounds the problem: Dhariwal and Nichol's high-resolution ImageNet models consumed hundreds of GPU-days, and generation of a single high-resolution batch was slow enough to make interactive use impractical for most researchers.

Rombach and colleagues diagnosed why. They observed that a large share of a pixel-space model's capacity and compute is spent on imperceptible, high-frequency detail, on modeling the exact value of pixels that a human eye barely registers, rather than on the semantic composition of the scene. Their proposal separates those two jobs. A first stage learns "perceptual compression," discarding the imperceptible detail and mapping an image to a much smaller latent representation. A second, generative stage then models only that semantically meaningful latent. The insight is not that pixels are unnecessary but that they are the wrong place to spend the expensive iterative computation.

Two stages: perceptual compression, then generation

The first stage is an autoencoder that maps an image into a lower-resolution latent grid and reconstructs it. Crucially, the encoder was not trained with a simple pixel-reconstruction loss, which produces blurry outputs, but with a combination of a perceptual loss and a patch-based adversarial objective, so that reconstructions stay sharp and realistic. To keep the latent space well behaved, the authors used one of two regularizers: a light Kullback-Leibler penalty toward a standard normal (as in the Auto-Encoding Variational Bayes framework of Kingma and Welling) or vector quantization in the style of van den Oord and colleagues' Neural Discrete Representation Learning.

This autoencoder is a direct descendant of the same group's earlier Taming Transformers for High-Resolution Image Synthesis, the VQGAN work by Esser, Rombach and Ommer, which had already shown that a perceptually and adversarially trained autoencoder could compress images into a compact code that a powerful second-stage model could then generate. Latent diffusion swaps the autoregressive transformer of that earlier system for a diffusion U-Net operating on the continuous latent.

The compression is governed by a downsampling factor f. The paper swept f over a range from 1 to 32 and found the useful operating band to be roughly f=4 to f=8: below it, the diffusion model still wastes effort on detail; above it, too much information is thrown away and reconstruction quality collapses. In the configuration that later shipped as Stable Diffusion, an f=8 autoencoder maps a 512x512x3 image to a 64x64x4 latent, cutting the number of spatial elements the diffusion model must handle by roughly a factor of forty-eight. Everything expensive then happens on that small grid, and the decoder restores pixels only once, at the end.

Conditioning through cross-attention

The second contribution is how the model is told what to generate. Earlier conditional diffusion work often concatenated the condition to the input or added it to intermediate features. Latent diffusion instead turns the denoising U-Net into a general conditional model by inserting cross-attention layers. A domain-specific encoder maps the conditioning input (a caption, a layout, a semantic map) into a sequence of vectors; the U-Net's own features supply the attention queries while that encoded condition supplies the keys and values. The same mechanism therefore handles text, spatial layouts, and class labels without redesigning the network for each.

This is the part of the paper that generalized furthest. Because the conditioning encoder is modular, a text encoder can be dropped in for text-to-image work. In the paper the authors trained the conditioning transformer themselves; when the architecture was scaled into Stable Diffusion, the text side was replaced by the frozen text encoder from OpenAI's Learning Transferable Visual Models From Natural Language Supervision, better known as CLIP. Cross-attention is what let one generative backbone serve as inpainter, super-resolver, layout-to-image model and text-to-image model at once.

The evidence on the board

The paper's results are specific and were state of the art on several tasks. On unconditional CelebA-HQ at 256x256 it reported an FID of 5.11, a new best for that benchmark. On class-conditional ImageNet, the LDM-4 model with classifier-free guidance reached FID 3.60 with an Inception Score of 247.67, competitive with the much more compute-hungry pixel-space diffusion models that preceded it. For text-to-image, the authors trained a 1.45-billion-parameter latent diffusion model on the LAION-400M image-text dataset. The models in the paper were trained on a single NVIDIA A100 GPU per task, a striking contrast to the multi-GPU clusters that comparable pixel-space results had required.

Two caveats belong with these numbers. First, FID and Inception Score are narrow, task-specific proxies for perceptual quality and diversity on a fixed dataset; they say nothing about correctness, meaning, or capability beyond the evaluated distribution. Second, the headline efficiency claim is a comparison of like with like: latent diffusion is cheaper than pixel-space diffusion for a given output resolution, not cheaper than every generative method ever proposed. The evidence supports a claim about where the compute is spent, not a claim that image generation became free.

The competing approaches of its era

Latent diffusion arrived in a crowded and fast-moving field, and its design choices are clearest when set against the alternatives it beat or sidestepped. Autoregressive token models were one camp: OpenAI's Zero-Shot Text-to-Image Generation, the original DALL-E, used a 12-billion-parameter transformer to generate discrete image tokens one at a time. That approach demonstrated broad text-to-image capability but was expensive to sample and lived in a discrete-token latent rather than a continuous one.

Pixel-space diffusion was the other main camp, and remarkably its most direct rival was posted on the very same day. OpenAI's GLIDE, submitted on 20 December 2021 alongside the latent diffusion paper, generated text-conditioned images by diffusing directly in pixel space with a cascade of models. Google's later Imagen took a similar pixel-space, cascaded route, pairing a large frozen language model text encoder with a base diffusion model and two super-resolution stages. Both produced excellent images; both paid the full pixel-space compute bill at every step. Latent diffusion's wager was that moving the iterative work into a compressed space would capture most of the quality at a fraction of the cost, and that the modular cross-attention conditioning would keep it flexible. The classifier-free guidance technique that all of these systems came to rely on was formalized separately in Ho and Salimans' Classifier-Free Diffusion Guidance.

From a CVPR paper to Stable Diffusion

The most consequential downstream fact is that latent diffusion was cheap enough to open up. The grounding for this report treats the public model as a distinct event, and it should be: in August 2022 the Munich group, the startup Stability AI and the nonprofit LAION collaborated to train and release Stable Diffusion, a latent diffusion model of the kind described in the paper, with its weights made publicly downloadable under a permissive-use license. That release, not the paper, is what put text-to-image generation on ordinary consumer GPUs and triggered an explosion of fine-tunes, interfaces and derivative tools. The training data came from the LAION-5B family of web-scraped image-text pairs, and the reference implementation remained the group's public latent-diffusion codebase.

The causal chain here is worth stating carefully. The architecture made open release feasible because it lowered both training and inference cost; the actual release was a separate choice by specific organizations, with its own data, its own license and its own consequences. Attributing the entire cultural shift to the December 2021 paper would overclaim; attributing none of it to the architecture would miss why this particular method, rather than the equally capable pixel-space systems from better-funded labs, became the one that ran everywhere.

The honest limits and open questions

Several caveats are intrinsic to the method. Compression is lossy by construction, so the autoencoder sets a hard ceiling on fidelity: fine, high-frequency detail (small text, intricate textures, faces at small scale) can be smeared or reconstructed imperfectly no matter how good the diffusion stage is, because that information was discarded in stage one. The two-stage design also means failures can originate in either stage, and the latent space itself can introduce artifacts that pixel-space models do not share.

The harder questions are not architectural. Training on web-scraped datasets such as the LAION collections raised unresolved issues of copyright, consent and the presence of harmful or private material in the corpus, concerns that grew louder as the released models were used at scale. Those are properties of the data and the release, not of the equations in the paper, but they are inseparable from the technology's real-world story. Finally, the paper did not invent diffusion, latent representations, autoencoders or attention; each was established earlier, as the sections above show. Its contribution was a productive arrangement of existing ideas that changed which experiments, and which products, were affordable.

How to place latent diffusion in AI history

The defensible reading is that latent diffusion was a decisive efficiency and conditioning result rather than a first discovery. Its narrow claim, documented on stated benchmarks, is that moving diffusion into a learned latent space and conditioning it through cross-attention preserves image quality while cutting compute, with CelebA-HQ FID 5.11, class-conditional ImageNet FID 3.60, and a 1.45-billion-parameter text-to-image model trainable on a single A100. Its broad significance comes from what that affordability enabled: an open, widely reproduced text-to-image system that pixel-space rivals, for all their quality, were too expensive to democratize in the same way.

A reader navigating outward from this event can follow three questions. Which earlier idea supplied a component (the diffusion process from 2015, the score-based view from 2019, the perceptual autoencoder from VQGAN)? Which later system reused the architecture while changing an ingredient (Stable Diffusion swapping in CLIP text conditioning and public weights, Imagen keeping pixel space but adding a large language model encoder)? And which limitation demanded further work (the compression ceiling, the data-provenance questions)? Answered honestly, those questions place latent diffusion where it belongs: as the point at which high-quality image diffusion became cheap enough to leave the lab, without pretending it was the point at which any of the underlying ideas were born.

References

Cite this report

Chronicle. (2026, September 10). Latent diffusion models (2021): Diffusion leaves pixel space. https://epoch.founden.co/events/latent-diffusion

Connected developments

Follow the timeline

The history of AI is still being written. Get an email when a new event is added to Chronicle. No noise, one-click unsubscribe.