
BioCLIP
Multimodal913 ops149.6M params
OpenAI's CLIP: an image tower and a text tower trained to match 400 million captions to their images.
Multimodal · 964 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
CLIP learns image representations from scratch by predicting which caption goes with which image, over a dataset of 400 million image and text pairs collected from the internet. The point is to escape the fixed set of predetermined object categories that standard computer vision systems are trained to predict, a restriction that needs new labeled data for every new visual concept. After pre-training, natural language is used to reference learned visual concepts, or describe new ones, enabling zero-shot transfer to downstream tasks.
Given a batch of N image and text pairs, CLIP is trained to predict which of the N by N possible pairings across the batch actually occurred. The members traced here use the ViT-B/32 configuration: a ViT-B/32 Transformer as the image encoder and a masked self-attention Transformer as the text encoder, trained to maximize the similarity of image and text pairs via a contrastive loss. The original implementation had two variants, one with a ResNet image encoder and one with a Vision Transformer.
The paper trained a series of 5 ResNets and 3 Vision Transformers. The Vision Transformers were a ViT-B/32, a ViT-B/16, and a ViT-L/14, all trained for 32 epochs. The model's output is an image-text similarity score per candidate text, and its softmax gives the label probabilities, which is the zero-shot classification the traced members perform.
Benchmarked on over 30 existing computer vision datasets spanning OCR, action recognition in videos, geo-localization and fine-grained object classification, the model transfers non-trivially to most tasks. It matches the accuracy of the original ResNet-50 on ImageNet zero-shot without using any of the 1.28 million training examples that ResNet-50 was trained on. Code and pre-trained model weights are released in the OpenAI CLIP repository.
Key idea. Contrastive pre-training on 400 million web image and text pairs yields image representations that natural language can steer to new tasks zero-shot.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{radford2021learningtransferablevisualmodels,
title={Learning Transferable Visual Models From Natural Language Supervision},
author={Alec Radford and Jong Wook Kim and Chris Hallacy and Aditya Ramesh and Gabriel Goh and Sandhini Agarwal and Girish Sastry and Amanda Askell and Pamela Mishkin and Jack Clark and Gretchen Krueger and Ilya Sutskever},
year={2021},
eprint={2103.00020},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2103.00020},
}