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 | CLIP (Contrastive Language–Image Pre-training) | Stable Diffusion |
|---|---|---|
| Family | Multimodal Models | Diffusion Models |
| Year of appearance | 2021 | 2022 |
| Researchers | Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel… | Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Björn Ommer… |
| Architecture type | Dual-encoder contrastive model | Text-conditioned latent diffusion model |
| Learning mechanism | self-supervised | self-supervised |
| Compared configuration | CLIP ViT-B/32: 224 image + 77-token text, shared space 512 | Stable Diffusion v1 (512×512, latent 4×64×64) |
| Input shape | A 3×224×224 image and a 77-token text | Text + z_T ∈ ℝ^{4×64×64} |
| Output shape | Two 512 representations + similarity | 3×512×512 |
| Depth | 12 + 12 layers | U-Net with four resolutions (320, 640, 1280, 1280) |
| Parameters (computed) | 151,277,313 ≈151.28M | 1,066,235,307 ≈1.07B |
| Parameters (published) | Unspecified | 860,000,000 ≈860M |
| MACs | 7,388,582,400 ≈7.39B For one image and one text (77 tokens). | 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. |
| Complexity | The two encoders are independent: image and text representations can be precomputed for retrieval. | 50 × 2 × U-Net + VAE decoder per image. |
| Tasks | Zero-shot classification, Image–text retrieval | Text-to-image generation, Image editing, Image inpainting |
| Main advantage | Classification without training examples | Open weights |
| Main limitation | Weak at counting and spatial relationships | Biases and controversial training data |
| Review status | Needs review | Needs review |
| Calculation assumptions | CLIPModel from Hugging Face with the default configuration (openai/clip-vit-base-patch32). | 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. |
Recorded relations between the compared models
- CLIP (Contrastive Language–Image Pre-training) Related Stable Diffusion — The text encoder in Stable Diffusion comes from CLIP.
