What is Contrastive Language-Image Pre-training?
In Turkish: CLIP · Topic: Models and training
A model OpenAI introduced in 2021 that learns to place images and text in the same vector space, so it can measure how well an image and a sentence match.
How does it work?
CLIP has two separate encoders, one for images and one for text. It is trained on a large number of image-text pairs collected from the internet: within a batch, the vectors of correct pairs are pulled together and those of mismatched pairs are pushed apart, which is contrastive learning. Once trained, a photo's vector sits close to the vector of a sentence describing it. This lets the model recognize classes it was never specifically trained on, simply by being given their names as text, which is called zero-shot classification.
Why does it matter?
CLIP became widely used as a building block that bridges vision and language. It has served in image search, content classification and some image generation models to link text with images. It is also a good starting point for understanding how multimodal models are trained.
Example
When someone searches a photo archive for a beach at sunset, a CLIP-style model compares each photo's vector with the vector of that phrase and lists the closest images.
FAQ
Does CLIP generate images?
No. CLIP learns to match images with text; it does not produce images. Generation models can use it as a component, though.
What does zero-shot classification mean?
It means recognizing a class without having seen any labeled examples of it. With CLIP, class names are turned into text and the text whose vector is closest to the image is chosen.