# CLIP (2021)

> Learn images from 400 million captions found on the web, then classify anything you can name.

Page: https://mralbu.github.io/ai-datasets/p/clip

## Key facts

- Title: Learning Transferable Visual Models From Natural Language Supervision
- Authors: Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever
- Venue: ICML 2021
- Category: Vision
- Paper: https://www.alphaxiv.org/abs/2103.00020

## Why it matters

CLIP replaced fixed label sets with free text and showed that web captions are enough supervision for strong, general image features. Its encoders became a building block for text-to-image models and for image search. The paper also reported where zero-shot CLIP is weak, for example on satellite images such as EuroSAT.

## The idea

Train an image encoder and a text encoder together so that each image lands close to its own caption and far from the other captions in the batch. To classify, write each class as a sentence ("a photo of a dog") and pick the one closest to the image.

## The result

76.2% zero-shot top-1 on ImageNet, matching the original ResNet-50 without using any of its 1.28 million labeled training images.

## The data

- [ImageNet (ILSVRC) (2009)](https://mralbu.github.io/ai-datasets/d/imagenet.md): 1.28 million photos across 1,000 classes, the dataset behind the deep learning boom.
- [Flickr30k (2014)](https://mralbu.github.io/ai-datasets/d/flickr30k.md): 31,000 Flickr photos of people and everyday scenes, each with five written captions.
- [EuroSAT (2017)](https://mralbu.github.io/ai-datasets/d/eurosat.md): 27,000 Sentinel-2 satellite tiles of Europe, 64×64 pixels, in 10 land-use classes.

## Builds on

- [ViT (2020)](https://mralbu.github.io/ai-datasets/p/vit.md)
- [Transformer (2017)](https://mralbu.github.io/ai-datasets/p/transformer.md)

## Led to

- [Flamingo (2022)](https://mralbu.github.io/ai-datasets/p/flamingo.md)
- [BLIP-2 (2023)](https://mralbu.github.io/ai-datasets/p/blip-2.md)
- [LLaVA (2023)](https://mralbu.github.io/ai-datasets/p/llava.md)
- [SAM (2023)](https://mralbu.github.io/ai-datasets/p/sam.md)
- [SigLIP (2023)](https://mralbu.github.io/ai-datasets/p/siglip.md)
- [Molmo (2024)](https://mralbu.github.io/ai-datasets/p/molmo.md)

## Part of

- [Modern VLMs](https://mralbu.github.io/ai-datasets/t/modern-vlms.md) (step 1 of 8)
