CLIP (Contrastive Language-Image Pre-training)
A model that learns to match images and text. After training, an image and its description end up in the same vector space: semantically similar ones are close.
How It Is Trained
CLIP is trained on pairs of 'image — caption' using contrastive learning:
- the image embedding and its caption embedding should be close;
- embeddings of other pairs should be far.
After training, the model can search for images by text and vice versa without further fine-tuning.
Why It Is Needed
- image search by description;
- zero-shot classification: compare an image with textual descriptions without knowing the classes in advance;
- foundation for image generation (e.g., in Stable Diffusion).