Learning Transferable Visual Models From Natural Language Supervision
论文信息
标题:Learning Transferable Visual Models From Natural Language Supervision(CLIP)
作者: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(OpenAI)
提交:2021-02-26
正式发表:ICML 2021,PMLR Volume 139
发表组织:PMLR
论文下载地址:
https://pan.quark.cn/s/0fd76e18c970
一句话总结:
提出CLIP,用图文对比学习对齐图像编码器与文本编码器,在共享嵌入空间做相似度匹配,实现开放词汇零样本图像分类,是多模态基础模型的里程碑。
原文摘要
State-of-the-art computer vision systems are trained to predict a fixed set of predetermined object categories. This restricted form of supervision limits their generality and usability since additional labeled data is needed to specify any other visual concept. Learning directly from raw text about images is a promising alternative which leverages a much broader source of supervision. We demonstrate that the simple pre-training task of predicting which caption goes with which image is an efficient and scalable way to learn SOTA image representations from scratch on a dataset of 400 million (image, text) pairs collected from the internet. After pre-training, natural language is used to reference learned visual concepts (or describe new ones) enabling zero-shot transfer of the model to downstream tasks. We study the performance of this approach by benchmarking on over 30 different existing computer vision datasets, spanning tasks such as OCR, action recognition in videos, geo-localization, and many types of fine-grained object classification. The model transfers non-trivially to most tasks and is often competitive with a fully supervised baseline without the need for any dataset specific training. For instance, we match the accuracy of the original ResNet-50 on ImageNet zero-shot without needing to use any of the 1.28 million training examples it was trained on. We release our code and pre-trained model weights at https://github.com/openai/CLIP.
摘要中文翻译
当下顶尖的计算机视觉系统,都是训练用来预测固定预设类别。这种受限监督方式限制了模型通用性,识别新视觉概念时还需要额外标注数据。直接从图像对应的原始文本学习,是一种很有前景的方案,可以利用更海量的监督信息。本文证明,在互联网收集的4亿图文对上,以“匹配图像与对应描述文本”作为预训练任务,能够高效、可扩展地从零学习高质量图像表征。预训练完成后,借助自然语言指代已学习或全新视觉概念,让模型可以零样本迁移到下游任务。我们在30余个视觉数据集上开展评测,覆盖OCR、视频动作识别、地理定位、细粒度分类等任务。模型在大多数任务上具备不错的迁移能力,无需针对数据集训练,就能和全监督基线相当。例如,在ImageNet上零样本精度可以持平原始ResNet-50,完全不使用其训练用的128万标注样本。本文开源代码与预训练权重。
核心贡献
图文对比学习范式 双编码器结构:图像编码器(ResNet/ViT)+文本编码器(Transformer);训练目标是一个batch内,让图像和对应的正文本相似度最高,和其他负文本相似度更低,不需要类别标签。
零样本开放词汇分类 推理时不需要微调,只需要把类别名称写成prompt,编码成文本特征,和图像特征做相似度排序,直接完成分类,跳出固定类别限制。
大规模互联网图文数据集 4亿网页图文对,数据来源广泛,不需要人工标注类别,利用网络自然文本作为监督信号,大幅降低标注成本。
跨任务强迁移能力 在分类、OCR、动作识别、地理定位等多种任务上验证迁移;实验证明语言监督学到的表征泛化性远强于传统单标签分类监督。
prompt template 工程 使用多组提示模板(如“a photo of a {}”)缓解文本编码的分布偏差,提升零样本稳定性。
补充说明
CLIP是后续Stable Diffusion、ALBEF、BLIP、LLaVA等大量多模态模型的重要基础
Learning Transferable Visual Models From Natural Language Supervision
https://www.devpilot.cloud/archives/learning-transferable-visual-models-from-natural-language-supervision
评论