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) | Vision Transformer (ViT) |
|---|---|---|
| Family | Multimodal Models | Vision Models |
| Year of appearance | 2021 | 2020 |
| Researchers | Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel… | Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai,… |
| Architecture type | Dual-encoder contrastive model | Encoder-only Transformer on image patches |
| Learning mechanism | self-supervised | supervised |
| Compared configuration | CLIP ViT-B/32: 224 image + 77-token text, shared space 512 | ViT-B/16: 12 layers, D = 768, 12 heads, 16×16 patches, resolution 224 |
| Input shape | A 3×224×224 image and a 77-token text | 3×224×224 |
| Output shape | Two 512 representations + similarity | 1000 |
| Depth | 12 + 12 layers | 12 encoder layers |
| Parameters (computed) | 151,277,313 ≈151.28M | 86,567,656 ≈86.57M |
| Parameters (published) | Unspecified | 86,000,000 ≈86M |
| MACs | 7,388,582,400 ≈7.39B For one image and one text (77 tokens). | 17,563,828,224 ≈17.56B Computed with torch.utils.flop_counter; it matches the 17.56 “GFLOPS” in the torchvision documentation (which are multiply-adds). |
| Complexity | The two encoders are independent: image and text representations can be precomputed for retrieval. | O(L·(N²D + ND²)) with N = 197. |
| Tasks | Zero-shot classification, Image–text retrieval | Image classification, Feature extraction |
| Main advantage | Classification without training examples | Scales well with data and size |
| Main limitation | Weak at counting and spatial relationships | Needs huge data or strong regularisation |
| Review status | Needs review | Needs review |
| Calculation assumptions | CLIPModel from Hugging Face with the default configuration (openai/clip-vit-base-patch32). | torchvision.models.vit_b_16 with a single linear head (the fine-tuning head); pre-training in the paper used an MLP with a hidden layer. |
Recorded relations between the compared models
- CLIP (Contrastive Language–Image Pre-training) Uses a component of Vision Transformer (ViT) — The image encoder in CLIP is a ViT.
