Latent Diffusion Models — Talks, Press, and Discussion
Press & Blog Coverage
-
Stable Diffusion Public Release, Stability AI, August 2022. The announcement of the public release of Stable Diffusion.
-
Stable Diffusion 2.0 Release, Stability AI. Says the CompVis group at LMU Munich led the original Stable Diffusion V1 release, building on their Latent Diffusion Models work, and that version 2.0 uses a new OpenCLIP text encoder.
-
Stable Diffusion with 🧨 Diffusers, Hugging Face blog. How to run Stable Diffusion with the Diffusers library.
-
What are Diffusion Models?, Lilian Weng’s blog. A tutorial on diffusion models, updated on 31 August 2022 with a section on latent diffusion.
-
CompVis/latent-diffusion and CompVis/stable-diffusion, GitHub. The paper’s code and models, and the Stable Diffusion v1 code. The paper also has a page on Hugging Face Papers.
Q&A (answers from the paper)
Q1: Why is diffusion in pixel space so expensive? A: Training and sampling need many evaluations of the network on full-size RGB images. The paper’s example: the strongest diffusion models took 150 to 1,000 V100 GPU-days to train, and making 50,000 samples took about 5 days on one A100 GPU (Section 1).
Q2: Why not compress the image as much as possible? A: Too much compression loses information. With the same compute, small factors (f = 1, 2) trained slowly and large ones (f = 32) stopped improving early. f = 4 to 16 struck a good balance, and f = 4 and 8 gave the best results (Section 4.1). The f = 4 autoencoder reconstructs images with PSNR 27.4 and reconstruction FID 0.58 (Figure 1, Table 8).
Q3: What does cross-attention add? A: A domain-specific encoder turns the condition, such as a text prompt, into a sequence of vectors. Cross-attention layers in the U-Net then use the U-Net’s features as queries and the condition’s vectors as keys and values. This lets one design handle text, semantic maps and other inputs (Section 3.3).
Q4: How does this relate to Stable Diffusion? A: The paper’s own text-to-image model is a 1.45B-parameter KL-regularised LDM trained on LAION-400M, with a BERT tokenizer and a transformer text encoder (Section 4.3.1). Stable Diffusion v1 is a latent diffusion model that uses a frozen CLIP ViT-L/14 text encoder instead (CompVis/stable-diffusion).
Q5: Which autoencoder does it use? A: An autoencoder trained with a perceptual loss and a patch-based adversarial loss. To keep the latent from having very high variance, it is regularised either with a small KL penalty (KL-reg.) or with a vector-quantisation layer (VQ-reg.) (Section 3.1). For the KL-regularised latent, the paper rescales the latent by its component-wise standard deviation (Section 4.3.2, Appendix D.1).
Q6: What are the limitations? A: Sampling is still sequential and slower than with GANs, and the autoencoder’s reconstruction can become a bottleneck for tasks that need fine pixel accuracy (Section 5).
Common Misconceptions
-
“Latent Diffusion Models invented diffusion models.” Diffusion models came earlier, for example DDPM (Ho et al., 2020). The paper’s contribution is training them in a learned latent space and adding cross-attention conditioning (Sections 3.2 and 3.3).
-
“The autoencoder and the diffusion model are trained together.” Training has two separate phases: the autoencoder is trained first, and the diffusion model is then trained in its fixed latent space, so one autoencoder can be reused for many diffusion models (Section 1, Section 4.2).
-
“Working in latent space must lower quality.” The paper reports a new best FID of 5.11 on CelebA-HQ (Section 4.2) and FID 3.60 on class-conditional ImageNet with guidance (Table 3), with much less compute than pixel diffusion.
-
“The paper’s text-to-image model is Stable Diffusion.” The paper’s model used a BERT tokenizer and a transformer text encoder trained on LAION-400M (Section 4.3.1); Stable Diffusion v1 uses a frozen CLIP ViT-L/14 text encoder.
-
“A latent model is always faster in practice.” In this repo’s notebook, latent diffusion trained about 4 times faster than pixel diffusion, but sampling 16 tiny images took about the same time for both. See its Summary.
Real Citations
-
Rombach, R., Blattmann, A., Lorenz, D., Esser, P., & Ommer, B. (2022). High-Resolution Image Synthesis with Latent Diffusion Models. CVPR 2022. arXiv:2112.10752
-
Ho, J., Jain, A., & Abbeel, P. (2020). Denoising Diffusion Probabilistic Models. NeurIPS 2020. arXiv:2006.11239 The diffusion model formulation LDMs build on.
-
Esser, P., Rombach, R., & Ommer, B. (2021). Taming Transformers for High-Resolution Image Synthesis. CVPR 2021. arXiv:2012.09841 VQGAN; the paper’s compression model is based on this work (Section 3.1).
-
Ramesh, A., et al. (2021). Zero-Shot Text-to-Image Generation (DALL-E). ICML 2021. arXiv:2102.12092 Its f = 8 autoencoder is compared with the paper’s in Figure 1 and Table 8.
-
Radford, A., et al. (2021). Learning Transferable Visual Models From Natural Language Supervision (CLIP). ICML 2021. arXiv:2103.00020 The text encoder family used in Stable Diffusion v1.
Citation count: about 38,800 (OpenAlex, 38,783 when checked on 3 December 2026).