Incorporating Convolution Designs into Visual Transformers
Kun Yuan, Shaopeng Guo, Ziwei Liu, Aojun Zhou, Fengwei Yu, Wei Wu
摘要
Motivated by the success of Transformers in natural language processing (NLP) tasks, there emerge some attempts (e.g., ViT and DeiT) to apply Transformers to the vision domain. However, pure Transformer architectures often require a large amount of training data or extra supervision to obtain comparable performance with convolutional neural networks (CNNs). To overcome these limitations, we analyze the potential drawbacks when directly borrowing Transformer architectures from NLP. Then we propose a new Convolution-enhanced image Transformer (CeiT) which combines the advantages of CNNs in extracting lowlevel features, strengthening locality, and the advantages of Transformers in establishing long-range dependencies. Three modifications are made to the original Transformer: 1) instead of the straightforward tokenization from raw input images, we design an Image-to-Tokens (I2T) module that extracts patches from generated low-level features; 2) the feed-froward network in each encoder block is replaced with a Locally-enhanced Feed-Forward (LeFF) layer that promotes the correlation among neighboring tokens in the spatial dimension; 3) a Layer-wise Class token Attention (LCA) is attached at the top of the Transformer that utilizes the multi-level representations. Experimental results on ImageNet and seven downstream tasks show the effectiveness and generalization ability of CeiT compared with previous Transformers and stateof-the-art CNNs, without requiring a large amount of training data and extra CNN teachers. Besides, CeiT models also demonstrate better convergence with 3× fewer training iterations, which can reduce the training cost significantly 1 .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 85 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- CoAtNet: Marrying Convolution and Attention for All Data Sizes 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- CoAtNet: Marrying Convolution and Attention for All Data Sizes 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- CoAtNet: Marrying Convolution and Attention for All Data Sizes 引用了 Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
- Uformer: A General U-Shaped Transformer for Image Restoration 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Uformer: A General U-Shaped Transformer for Image Restoration 引用了 CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windows
- Uformer: A General U-Shaped Transformer for Image Restoration 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 CCNet: Criss-Cross Attention for Semantic Segmentation
- CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windows 引用了 CCNet: Criss-Cross Attention for Semantic Segmentation
- CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windows 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windows 引用了 Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
- CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windows 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 CCNet: Criss-Cross Attention for Semantic Segmentation
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer 引用了 CoAtNet: Marrying Convolution and Attention for All Data Sizes
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer 引用了 Early Convolutions Help Transformers See Better
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer 引用了 Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
- Early Convolutions Help Transformers See Better 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Early Convolutions Help Transformers See Better 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Early Convolutions Help Transformers See Better 引用了 Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
- Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
- Deformable DETR: Deformable Transformers for End-to-End Object Detection 引用了 CCNet: Criss-Cross Attention for Semantic Segmentation
引用它的顶会 Paper85
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision TransformerSachin Mehta, Mohammad RastegariICLR 2022 · 2,162 次引用
- Uformer: A General U-Shaped Transformer for Image RestorationZhendong Wang, Xiaodong Cun, Jianmin Bao, Wengang Zhou 等CVPR 2022 · 1,970 次引用
- CoAtNet: Marrying Convolution and Attention for All Data SizesZihang Dai, Hanxiao Liu, Quoc V. Le, Mingxing TanNeurIPS 2021 · 1,747 次引用
- CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped WindowsXiaoyi Dong, Jianmin Bao, Dongdong Chen, Weiming Zhang 等CVPR 2022 · 1,207 次引用
- Early Convolutions Help Transformers See BetterTete Xiao, Mannat Singh, Eric Mintun, Trevor Darrell 等NeurIPS 2021 · 974 次引用
它引用的 Paper19
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li 等ICLR 2021 · 7,353 次引用
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan 等ICCV 2021 · 4,909 次引用
- CCNet: Criss-Cross Attention for Semantic SegmentationZilong Huang, Xinggang Wang, Lichao Huang, Chang Huang 等ICCV 2019 · 2,972 次引用
- Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetLi Yuan, Yunpeng Chen, Tao Wang, Weihao Yu 等ICCV 2021 · 2,462 次引用
相关 Paper
- Less Is More: Pay Less Attention in Vision TransformersZizheng Pan, Bohan Zhuang, Haoyu He, Jing Liu 等AAAI 2022 · 109 次引用
- CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image ClassificationChun-Fu (Richard) Chen, Quanfu Fan, Rameswar PandaICCV 2021 · 2,072 次引用
- ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive BiasYufei Xu, Qiming Zhang, Jing Zhang, Dacheng TaoNeurIPS 2021 · 429 次引用
- Rethinking Spatial Dimensions of Vision TransformersByeongho Heo, Sangdoo Yun, Dongyoon Han, Sanghyuk Chun 等ICCV 2021 · 733 次引用
- RegionViT: Regional-to-Local Attention for Vision TransformersChun-Fu Chen, Rameswar Panda, Quanfu FanICLR 2022 · 246 次引用
