CLIP
Training on images and their captions until both live in one space — the model that connected vision to language, and the reason typing a prompt gets you a picture.
When not to use it
- For composition, counting or spatial relations. "Red cube on blue sphere" and its inverse embed close together.
- For negation. It has essentially no representation of "not."
- As an understanding model. It's a similarity model. Different thing.
- Training your own with small batches. Contrastive learning needs negatives. Use SigLIP.
Reach for something else instead
- SigLIP — better, no huge-batch requirement. The default now.
- A vision-language model — if you need reasoning about the image rather than matching.
- Supervised classification — fixed categories and labels? Still better.
- Captioning + text search — clumsier, more interpretable.
Sources & further reading
- Radford et al. (2021), Learning Transferable Visual Models From Natural Language Supervision — CLIP; zero-shot ImageNet from alt-text.
- Zhai et al. (2023), Sigmoid Loss for Language Image Pre-Training — SigLIP; kills the huge-batch requirement. Use this one.
- Liang et al. (2022), Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learning — the shared space isn't shared.
Primary sources, listed so you can check the claims on this page rather than take them on trust.
Where people go wrong
- Expecting compositional understanding. It was never in the loss.
- Fighting the prompt template. "A photo of a {class}" is free accuracy.
- Assuming image and text embeddings mix. The modality gap says they don't.
- Missing the bias loop — it learned internet associations and now filters the next generation's training data.