CLIP / contrastive vision-language
What it is
Jointly embeds images and captions into one space with a contrastive objective, enabling zero-shot classification.
When to use it
Open-vocabulary classification, retrieval, and as the vision tower for nearly every VLM.
Caveats
It matches images to captions as a whole, so it is weak at counting, spatial relations and attribute binding. Zero-shot accuracy depends on prompt wording, it inherits biases from web data, and training needs very large batches.
Key ideas
- Trains an image encoder and a text encoder so that matching pairs score highest
- Learns from hundreds of millions of image-caption pairs from the web
- Zero-shot classification by comparing an image with a text prompt for each class
- Its embeddings are reused in text-to-image and vision-language models
Related architectures
Original paper
Learning Transferable Visual Models From Natural Language Supervision (2021, arXiv)