arXiv:2103.00020 · 中英对照阅读
从自然语言监督中学习可迁移的视觉模型
Learning Transferable Visual Models From Natural Language Supervision
中文速览
传统视觉模型只能识别训练时规定好的类别,想让它认识新概念就得重新收集标注、再训练,这项研究试图摆脱这种限制。研究者收集了4亿组网上图片和配文,让图像编码器和文本编码器学习把相配的图片与文字靠近、把不相配的拉远,从而让模型能用自然语言描述和查找视觉概念。训练后的模型在30多种视觉任务上直接迁移,许多任务不输专门训练的模型;在不看 ImageNet 训练图片的情况下,它也达到了原版 ResNet-50 的 ImageNet 准确率。这说明海量自然语言能成为通用视觉学习的有效教材,让模型不必为每个任务单独准备标签,也能灵活识别新类别。
摘要
最先进的计算机视觉系统经过训练,用于预测一组固定的预定义目标类别。这种受限形式的监督限制了系统的通用性和可用性,因为要指定任何其他视觉概念,都需要额外的标注数据。直接从关于图像的原始文本中学习,是一种前景广阔的替代方案,它利用了范围广得多的监督来源。我们证明,预测哪条标题与哪幅图像相匹配这一简单的预训练任务,是一种高效且可扩展的方法,能够从互联网收集的 4 亿组(图像,文本)图文对中从头学习最先进的图像表征。预训练后,利用自然语言指代已学习的视觉概念(或描述新的概念),从而使模型能够零样本迁移至下游任务。我们通过在 30 多个现有计算机视觉数据集上进行基准测试,研究了这种方法的性能;这些数据集涵盖光学字符识别、视频中的动作识别、地理定位以及多种细粒度目标分类等任务。该模型能够有效迁移至大多数任务,并且往往可与完全监督的基线模型相媲美,无需针对任何特定数据集进行训练。例如,在 ImageNet 上进行零样本评估时,我们达到了原始 ResNet-50 的准确率,且无需使用其训练时所用的 128 万个训练样本中的任何一个。我们在 https://github.com/OpenAI/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.
术语表
- computer vision
- 计算机视觉
- natural language supervision
- 自然语言监督
- image representation learning
- 图像表征学习
- zero-shot transfer
- 零样本迁移
- downstream tasks
- 下游任务
- pre-training
- 预训练
- image-text pairs
- 图文对
- CLIP
- CLIP
- Contrastive Language-Image Pre-training
- 对比式语言—图像预训练
- contrastive objectives
- 对比学习目标
- ConVIRT
- ConVIRT
- VirTex
- VirTex
- ICMLM
- ICMLM
- GPT-3
- GPT-3
- ImageNet
- ImageNet
- YFCC100M
- YFCC100M
- JFT-300M
- JFT-300M
- CNN
- 卷积神经网络
- transformer
- Transformer
- autoregressive language modeling
- 自回归语言建模
- masked language modeling
- 掩码语言建模
- bag-of-words
- 词袋
- multi-label classification
- 多标签分类
- softmax classifier
- Softmax分类器
- fine-grained object classification
- 细粒度目标分类
- OCR
- 光学字符识别
- action recognition
- 动作识别
- geo-localization
- 地理定位
- linear-probe evaluation
- 线性探测评估
- weak supervision
- 弱监督