Aha.
正在载入中英对照阅读…

arXiv:2010.11929 · 中英对照阅读

一张图像相当于 16×16 个词:用于大规模图像识别的 Transformer

An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

Alexey Dosovitskiy, Lucas Beyer*, Alexander Kolesnikov*, Dirk Weissenborn*, Xiaohua Zhai*, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer,、Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, Neil Houlsby *equal technical contribution, †equal advising Google Research, Brain Team

中文速览

传统视觉模型依赖卷积神经网络(CNN),而直接把 Transformer 用于图像时,常受训练数据不足影响;这项研究想弄清楚,能不能只靠 Transformer 做好图像分类。作者把图片切成小块,将每块当作一个词的表示输入标准 Transformer,再用大规模图像数据预训练、迁移到较小的任务上。结果显示,数据足够多时,视觉 Transformer(ViT)在 ImageNet、CIFAR-100 和多种视觉基准上达到或超过先进卷积模型,训练所需计算资源也更少。它说明图像模型不一定非要依赖卷积结构,也为用统一的 Transformer 处理文字与图像开辟了道路。

摘要

尽管Transformer架构已成为自然语言处理任务事实上的标准,但其在计算机视觉中的应用仍然有限。在视觉领域,注意力要么与卷积网络结合使用,要么在保留卷积网络整体结构的同时,用于替换其中某些组件。我们证明,对卷积神经网络(CNN)的这种依赖并非必要:直接将纯Transformer应用于图像块序列,就能在图像分类任务中取得出色表现。在大量数据上进行预训练,并迁移至多个中型或小型图像识别基准(ImageNet、CIFAR-100、VTAB等)后,视觉Transformer(ViT)取得了优异的结果,表现优于最先进的卷积神经网络,同时训练所需的计算资源大幅减少。¹¹ ¹ 微调代码和预训练模型可在 https://github.com/google-research/vision_transformer 获取。

While the Transformer architecture has become the de-facto standard for natural language processing tasks, its applications to computer vision remain limited. In vision, attention is either applied in conjunction with convolutional networks, or used to replace certain components of convolutional networks while keeping their overall structure in place. We show that this reliance on CNNs is not necessary and a pure transformer applied directly to sequences of image patches can perform very well on image classification tasks. When pre-trained on large amounts of data and transferred to multiple mid-sized or small image recognition benchmarks (ImageNet, CIFAR-100, VTAB, etc.), Vision Transformer (ViT) attains excellent results compared to state-of-the-art convolutional networks while requiring substantially fewer computational resources to train.11 1 Fine-tuning code and pre-trained models are available at https://github.com/google-research/vision_transformer

术语表

Transformer
Transformer
Vision Transformer (ViT)
视觉Transformer(ViT)
self-attention
自注意力
multi-head dot-product self-attention
多头点积自注意力
convolutional neural network (CNN)
卷积神经网络(CNN)
image patches
图像块
patch embeddings
图像块嵌入
token embeddings
词元嵌入
linear projection
线性投影
Transformer encoder
Transformer编码器
pre-training
预训练
fine-tuning
微调
transfer learning
迁移学习
supervised learning
监督学习
unsupervised learning
无监督学习
self-supervised learning
自监督学习
inductive bias
归纳偏置
translation equivariance
平移等变性
locality
局部性
image classification
图像分类
image recognition benchmark
图像识别基准
ImageNet
ImageNet
ImageNet-21k
ImageNet-21k
ImageNet-ReaL
ImageNet-ReaL
CIFAR-100
CIFAR-100
VTAB
VTAB
JFT-300M
JFT-300M
BERT
BERT
GPT
GPT
image GPT (iGPT)
图像GPT(iGPT)