AN IMAGE I S WORT H 1 6X1 6 WORDS: TRANS F ORMERS F OR IMAGE RECOGNI T I ON AT SCALE
标题:An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale(ViT)
作者:Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, Neil Houlsby(Google Brain)
发表时间:预印本 2020-10-22;会议正式发表 ICLR 2021(Oral)
论文下载地址:
链接:https://pan.quark.cn/s/bc0e74ad773c
提取码:LUSp
原文摘要
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.arXiv
摘要翻译
Transformer架构已经成为自然语言处理领域的事实标准,但在计算机视觉中的应用仍很有限。在视觉任务里,注意力机制大多和卷积网络结合使用,或是仅替换卷积网络的部分组件、保留整体卷积结构。本文证明,并不必须依赖CNN;将纯Transformer直接作用于图像分块构成的序列,就可以在图像分类任务上取得很好效果。在大规模数据上预训练后迁移到ImageNet、CIFAR-100、VTAB等中/小规模图像识别基准上,Vision Transformer(ViT)可以媲美甚至超过当时SOTA卷积网络,同时训练所需计算资源显著更少。
关键贡献
首次提出纯Transformer视觉主干ViT:抛弃卷积,图像切16×16的Patch、线性投影为Patch Embedding,加入位置编码、CLS分类Token,送入标准Transformer编码器,用CLS特征做分类,打通NLP Transformer到视觉的通用范式。
验证“规模胜过CNN归纳偏置”核心结论:小数据集(ImageNet-1k)上ViT弱于CNN;当预训练数据足够大(ImageNet-21k、JFT-300M),ViT可以反超CNN,说明CNN的局部平移不变归纳偏置在海量数据下不再是必需。
统一NLP与视觉模型基座:复用成熟的Transformer代码、优化方案,不需要为视觉定制复杂卷积模块,降低大模型工程落地成本。
开启视觉Transformer浪潮:奠定后续Swin、DETR、CLIP等大量视觉基础模型、多模态模型的主干基础,是CV领域里程碑论文。
AN IMAGE I S WORT H 1 6X1 6 WORDS: TRANS F ORMERS F OR IMAGE RECOGNI T I ON AT SCALE
https://www.devpilot.cloud/archives/wei-ming-ming-wen-zhang-aOn5uwe3
评论