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.

PropertyCLIP (Contrastive Language–Image Pre-training)Vision Transformer (ViT)
FamilyMultimodal ModelsVision Models
Year of appearance20212020
ResearchersAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel…Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai,…
Architecture typeDual-encoder contrastive modelEncoder-only Transformer on image patches
Learning mechanismself-supervisedsupervised
Compared configurationCLIP ViT-B/32: 224 image + 77-token text, shared space 512ViT-B/16: 12 layers, D = 768, 12 heads, 16×16 patches, resolution 224
Input shapeA 3×224×224 image and a 77-token text3×224×224
Output shapeTwo 512 representations + similarity1000
Depth12 + 12 layers12 encoder layers
Parameters (computed)151,277,313
≈151.28M
86,567,656
≈86.57M
Parameters (published)Unspecified86,000,000
≈86M
MACs7,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).
ComplexityThe two encoders are independent: image and text representations can be precomputed for retrieval.O(L·(N²D + ND²)) with N = 197.
TasksZero-shot classification, Image–text retrievalImage classification, Feature extraction
Main advantageClassification without training examplesScales well with data and size
Main limitationWeak at counting and spatial relationshipsNeeds huge data or strong regularisation
Review statusNeeds reviewNeeds review
Calculation assumptionsCLIPModel 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.