Latent Diffusion Models
The research paper behind Stable Diffusion-style image generation: compress images into a latent space, denoise there instead of in pixel space, then decode the result.
Latent Diffusion Models (LDM) is the research paper behind Stable Diffusion-style image generation. The method learns a compressed latent representation space, runs iterative denoising inside that smaller space instead of on full-resolution pixels, and decodes the finished latent back into a visible image. Consumer-scale systems such as Stable Diffusion follow this recipe.
At a glance
Published
April 2022
Authors
Robin Rombach, Andreas Blattmann, Dominik Lorenz, et al.
Introduces
No introduced records listed yet.
Why It Matters
Pixel-space diffusion models treat every denoising step as a full-resolution image update. Each step must read and rewrite every pixel, so compute and memory grow sharply as width and height increase. Latent Diffusion Models showed that most perceptual structure can form inside a learned latent representation space that holds far fewer values than the pixel grid. Denoising there lowers compute and memory pressure while still delivering strong image quality at resolutions that would be impractical for pure pixel-space diffusion on typical hardware. That tradeoff is why Stable Diffusion-style pipelines compress first, denoise in latent space, and decode only at the end.Method Or Architecture
The pipeline chains four stages. First, an autoencoder compresses an image into a learned latent tensor—a compact code in latent representation space rather than a pixel array. A diffusion model then runs its main generation loop as iterative denoising over that latent tensor: each step removes a little noise until a clean latent remains. Conditioning inputs such as text embeddings steer what the denoising steps should produce; Conditioning is the control signal that tells the generator which content or style to favor. After denoising completes, the autoencoder decoder maps the final latent back into pixels. The encoder and decoder are trained once; generation repeats only the latent denoising loop at inference time.Latent Diffusion ModelsInput imageAutoencoder compressionLatent denoising loopDecode to pixelsConditioning inputsLatent Diffusion Models to Input imageInput image to Autoencoder compressionAutoencoder compression to Latent denoising loopConditioning inputs to Latent denoising loopLatent denoising loop to Decode to pixels