Model comparison
This page compares specific configurations (such as ResNet-50 or BERT-base), not general families; each number is tied to the configuration named at the top of its column. “Unspecified” means the number is not documented in the atlas.
| Property | Stable Diffusion | Latent Diffusion Model |
|---|---|---|
| Family | Diffusion Models | Diffusion Models |
| Year of appearance | 2022 | 2021 |
| Researchers | Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Björn Ommer… | Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Björn Ommer |
| Architecture type | Text-conditioned latent diffusion model | Diffusion in autoencoder latent space with cross-attention conditioning |
| Learning mechanism | self-supervised | unsupervised |
| Compared configuration | Stable Diffusion v1 (512×512, latent 4×64×64) | Latent diffusion model: conceptual diagram |
| Input shape | Text + z_T ∈ ℝ^{4×64×64} | x (training) or y (generation) |
| Output shape | 3×512×512 | 3 × H × W |
| Depth | U-Net with four resolutions (320, 640, 1280, 1280) | Varies with the configuration |
| Parameters (computed) | 1,066,235,307 ≈1.07B | Unspecified |
| Parameters (published) | 860,000,000 ≈860M | Unspecified |
| MACs | 401,636,720,640 ≈401.64B For a single U-Net pass (401.6 billion). Classifier-free guidance doubles it, and 50 steps multiply it by 50; the VAE decoder once ≈ 1257 billion; the text encoder ≈ 6.6 billion. | Unspecified Varies with f and the configuration; see Stable Diffusion for a specific configuration. |
| Complexity | 50 × 2 × U-Net + VAE decoder per image. | Diffusion runs on h·w = HW/f² only. |
| Tasks | Text-to-image generation, Image editing, Image inpainting | Image generation, Text-to-image generation, Super-resolution, Image inpainting |
| Main advantage | Open weights | A large reduction in computation |
| Main limitation | Biases and controversial training data | Quality is limited by the quality of the autoencoder |
| Review status | Needs review | Needs review |
| Calculation assumptions | UNet2DConditionModel with the default configuration and cross_attention_dim = 768, AutoencoderKL with the SD v1 configuration, and CLIPTextModel with the ViT-L/14 configuration; computed on the meta device. | The paper presented many configurations (f = 1…32, and models for different tasks), so the counts are left “unspecified” in this general diagram. |
Recorded relations between the compared models
- Stable Diffusion Variant of Latent Diffusion Model — A direct application of LDM.
