Pay Attention to MLPs
Hanxiao Liu, Zihang Dai, David R. So, Quoc V. Le
摘要
Transformers [1] have become one of the most important architectural innovations in deep learning and have enabled many breakthroughs over the past few years. Here we propose a simple network architecture, gMLP, based on MLPs with gating, and show that it can perform as well as Transformers in key language and vision applications. Our comparisons show that self-attention is not critical for Vision Transformers, as gMLP can achieve the same accuracy. For BERT, our model achieves parity with Transformers on pretraining perplexity and is better on some downstream NLP tasks. On finetuning tasks where gMLP performs worse, making the gMLP model substantially larger can close the gap with Transformers. In general, our experiments show that gMLP can scale as well as Transformers over increased data and compute.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 121 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- EfficientNetV2: Smaller Models and Faster Training 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- EfficientNetV2: Smaller Models and Faster Training 引用了 Language Models are Few-Shot Learners
- EfficientNetV2: Smaller Models and Faster Training 引用了 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
- Focal Modulation Networks 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Focal Modulation Networks 引用了 MetaFormer is Actually What You Need for Vision
- Focal Modulation Networks 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Focal Modulation Networks 引用了 Training data-efficient image transformers & distillation through attention
- MAXIM: Multi-Axis MLP for Image Processing 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- MAXIM: Multi-Axis MLP for Image Processing 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- MAXIM: Multi-Axis MLP for Image Processing 引用了 Global Filter Networks for Image Classification
- AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition 引用了 Language Models are Few-Shot Learners
- AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition 引用了 Training data-efficient image transformers & distillation through attention
- MetaFormer is Actually What You Need for Vision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- MetaFormer is Actually What You Need for Vision 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- MetaFormer is Actually What You Need for Vision 引用了 Language Models are Few-Shot Learners
- MetaFormer is Actually What You Need for Vision 引用了 Training data-efficient image transformers & distillation through attention
- MetaFormer is Actually What You Need for Vision 引用了 Global Filter Networks for Image Classification
- 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
- Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Global Filter Networks for Image Classification 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Global Filter Networks for Image Classification 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Global Filter Networks for Image Classification 引用了 Training data-efficient image transformers & distillation through attention
引用它的顶会 Paper121
- AdaptFormer: Adapting Vision Transformers for Scalable Visual RecognitionShoufa Chen, Chongjian Ge, Zhan Tong, Jiangliu Wang 等NeurIPS 2022 · 1,291 次引用
- MetaFormer is Actually What You Need for VisionWeihao Yu, Mi Luo, Pan Zhou, Chenyang Si 等CVPR 2022 · 1,114 次引用
- Global Filter Networks for Image ClassificationYongming Rao, Wenliang Zhao, Zheng Zhu, Jiwen Lu 等NeurIPS 2021 · 798 次引用
- MAXIM: Multi-Axis MLP for Image ProcessingZhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang 等CVPR 2022 · 550 次引用
- Focal Modulation NetworksJianwei Yang, Chunyuan Li, Xiyang Dai, Jianfeng GaoNeurIPS 2022 · 494 次引用
它引用的 Paper12
- 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 次引用
- EfficientNetV2: Smaller Models and Faster TrainingMingxing Tan, Quoc V. LeICML 2021 · 4,239 次引用
相关 Paper
- Scaling MLPs: A Tale of Inductive BiasGregor Bachmann, Sotiris Anagnostidis, Thomas HofmannNeurIPS 2023 · 71 次引用
- Sparse MLP for Image Recognition: Is Self-Attention Really Necessary?Chuanxin Tang, Yucheng Zhao, Guangting Wang, Chong Luo 等AAAI 2022 · 125 次引用
- MLP-Mixer: An all-MLP Architecture for VisionIlya O. Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer 等NeurIPS 2021 · 3,862 次引用
- RealFormer: Transformer Likes Residual AttentionRuining He, Anirudh Ravula, Bhargav Kanagal, Joshua AinslieACL Findings 2021 · 104 次引用
- Simplifying Transformer BlocksBobby He, Thomas HofmannICLR 2024 · 52 次引用
