Learning Transferable Visual Models From Natural Language Supervision
The CLIP paper introduced contrastive language-image pretraining with separate image and text encoders that map paired captions and images into one shared embedding space.
Learning Transferable Visual Models From Natural Language Supervision, usually called CLIP (Contrastive Language-Image Pretraining), trains separate image and text encoders on large collections of image-caption pairs so that matching pairs land close together in one shared embedding space while mismatched pairs are pushed apart.
At a glance
Published
February 2021
Authors
Alec Radford, Jong Wook Kim, Chris Hallacy, et al.
Introduces
Why It Matters
Before CLIP, many vision systems needed task-specific labels or fine-tuning for every new category. CLIP showed that web-scale image-caption pairs already carry useful supervision: the caption names what is in the image. By learning from those pairs with a contrastive objective, one pretrained model can compare images and text directly. That made zero-shot classification through text prompts practical, gave multimodal systems a common representation to build on, and later helped text-conditioned image models route natural-language intent into visual features without retraining the whole stack for every prompt.Method Or Architecture
CLIP keeps two encoders. An image encoder (often a Vision Transformer or ResNet variant) turns each image into a vector. A text encoder (a transformer over the caption tokens) turns each caption into another vector. Both vectors live in the same embedding space with the same dimension. Training samples a batch of image-caption pairs. For each image, the model should score highest against its own caption and lower against every other caption in the batch, and the same rule applies from the text side. That image-text contrastive training pulls true pairs together and pushes unrelated pairs apart. After pretraining, similarity in the shared embedding space becomes a direct measure of whether an image and a phrase belong together, which supports retrieval, open-vocabulary labeling, and later multimodal or conditioning pipelines that need aligned vision-language features.CLIP paperImage-caption pairsImage and text encodersContrastive alignmentShared embedding spaceMultimodal and conditioning useCLIP paper to Image-caption pairsImage-caption pairs to Image and text encodersImage and text encoders to Contrastive alignmentContrastive alignment to Shared embedding spaceShared embedding space to Multimodal and conditioning use