MetaFormer is Actually What You Need for Vision
Weihao Yu, Mi Luo, Pan Zhou, Chenyang Si, Yichen Zhou, Xinchao Wang, Jiashi Feng, Shuicheng Yan
摘要
Transformers have shown great potential in computer vision tasks. A common belief is their attention-based token mixer module contributes most to their competence. However, recent works show the attention-based module in transformers can be replaced by spatial MLPs and the resulted models still perform quite well. Based on this observation, we hypothesize that the general architecture of the transformers, instead of the specific token mixer module, is more essential to the model's performance. To verify this, we deliberately replace the attention module in transformers with an embarrassingly simple spatial pooling operator to conduct only basic token mixing. Surprisingly, we observe that the derived model, termed as PoolFormer, achieves competitive performance on multiple computer vision tasks. For example, on ImageNet-1K, PoolFormer achieves 82.1 % top-1 accuracy, surpassing well-tuned vision transformer/MLP-like baselines DeiT-B/ResMLP-B24 by 0.3%/1.1% accuracy with 35%/52% fewer parameters and 49%/61% fewer MACs. The effectiveness of Pool-Former verifies our hypothesis and urges us to initiate the concept of “MetaFormer”, a general architecture abstracted from transformers without specifying the token mixer. Based on the extensive experiments, we argue that MetaFormer is the key player in achieving superior results for recent transformer and MLP-like models on vision tasks. This work calls for more future research dedicated to improving MetaFormer instead of focusing on the token mixer modules. Additionally, our proposed PoolFormer could serve as a starting baseline for future MetaFormer architecture design.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 214 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Vision GNN: An Image is Worth Graph of Nodes 引用了 CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Vision GNN: An Image is Worth Graph of Nodes 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Vision GNN: An Image is Worth Graph of Nodes 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Vision GNN: An Image is Worth Graph of Nodes 引用了 Training data-efficient image transformers & distillation through attention
- Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs 引用了 CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs 引用了 Training data-efficient image transformers & distillation through attention
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
- Large Selective Kernel Network for Remote Sensing Object Detection 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
- How Do Vision Transformers Work? 引用了 CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- How Do Vision Transformers Work? 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- How Do Vision Transformers Work? 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- How Do Vision Transformers Work? 引用了 Training data-efficient image transformers & distillation through attention
- Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- EfficientFormer: Vision Transformers at MobileNet Speed 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- EfficientFormer: Vision Transformers at MobileNet Speed 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- EfficientFormer: Vision Transformers at MobileNet Speed 引用了 Training data-efficient image transformers & distillation through attention
引用它的顶会 Paper214
- Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNsXiaohan Ding, Xiangyu Zhang, Jungong Han, Guiguang DingCVPR 2022 · 1,298 次引用
- EfficientFormer: Vision Transformers at MobileNet SpeedYanyu Li, Geng Yuan, Yang Wen, Ju Hu 等NeurIPS 2022 · 742 次引用
- Vision GNN: An Image is Worth Graph of NodesKai Han, Yunhe Wang, Jianyuan Guo, Yehui Tang 等NeurIPS 2022 · 668 次引用
- How Do Vision Transformers Work?Namuk Park, Songkuk KimICLR 2022 · 653 次引用
- Large Selective Kernel Network for Remote Sensing Object DetectionYuxuan Li, Qibin Hou, Zhaohui Zheng, Ming-Ming Cheng 等ICCV 2023 · 535 次引用
它引用的 Paper24
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
- CutMix: Regularization Strategy to Train Strong Classifiers With Localizable FeaturesSangdoo Yun, Dongyoon Han, Sanghyuk Chun, Seong Joon Oh 等ICCV 2019 · 5,843 次引用
相关 Paper
- UniNeXt: Exploring A Unified Architecture for Vision RecognitionFangjian Lin, Jianlong Yuan, Sitong Wu, Fan Wang 等ACM MM 2023 · 15 次引用
- RIFormer: Keep Your Vision Backbone Effective But Removing Token MixerJiahao Wang, Songyang Zhang, Yong Liu, Taiqiang Wu 等CVPR 2023
- Sparse MLP for Image Recognition: Is Self-Attention Really Necessary?Chuanxin Tang, Yucheng Zhao, Guangting Wang, Chong Luo 等AAAI 2022 · 125 次引用
- Searching for BurgerFormer with Micro-Meso-Macro Space DesignLongxing Yang, Yu Hu, Shun Lu, Zihao Sun 等ICML 2022 · 14 次引用
- Inception TransformerChenyang Si, Weihao Yu, Pan Zhou, Yichen Zhou 等NeurIPS 2022 · 24 次引用
