Lune

NeurIPS2021Top-tier venue

Pay Attention to MLPs

Hanxiao Liu, Zihang Dai, David R. So, Quoc V. Le

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

121 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • EfficientNetV2: Smaller Models and Faster Training cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • EfficientNetV2: Smaller Models and Faster Training cites Language Models are Few-Shot Learners
  • EfficientNetV2: Smaller Models and Faster Training cites Training data-efficient image transformers & distillation through attention
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
  • Focal Modulation Networks cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Focal Modulation Networks cites MetaFormer is Actually What You Need for Vision
  • Focal Modulation Networks cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Focal Modulation Networks cites Training data-efficient image transformers & distillation through attention
  • MAXIM: Multi-Axis MLP for Image Processing cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • MAXIM: Multi-Axis MLP for Image Processing cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • MAXIM: Multi-Axis MLP for Image Processing cites Global Filter Networks for Image Classification
  • AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition cites Language Models are Few-Shot Learners
  • AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition cites Training data-efficient image transformers & distillation through attention
  • MetaFormer is Actually What You Need for Vision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • MetaFormer is Actually What You Need for Vision cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • MetaFormer is Actually What You Need for Vision cites Language Models are Few-Shot Learners
  • MetaFormer is Actually What You Need for Vision cites Training data-efficient image transformers & distillation through attention
  • MetaFormer is Actually What You Need for Vision cites Global Filter Networks for Image Classification
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
  • Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Global Filter Networks for Image Classification cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Global Filter Networks for Image Classification cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Global Filter Networks for Image Classification cites Training data-efficient image transformers & distillation through attention
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers121

  1. AdaptFormer: Adapting Vision Transformers for Scalable Visual RecognitionShoufa Chen, Chongjian Ge, Zhan Tong, Jiangliu Wang et al.NeurIPS 2022 · 1,291 citations
  2. MetaFormer is Actually What You Need for VisionWeihao Yu, Mi Luo, Pan Zhou, Chenyang Si et al.CVPR 2022 · 1,114 citations
  3. Global Filter Networks for Image ClassificationYongming Rao, Wenliang Zhao, Zheng Zhu, Jiwen Lu et al.NeurIPS 2021 · 798 citations
  4. MAXIM: Multi-Axis MLP for Image ProcessingZhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang et al.CVPR 2022 · 550 citations
  5. Focal Modulation NetworksJianwei Yang, Chunyuan Li, Xiyang Dai, Jianfeng GaoNeurIPS 2022 · 494 citations

Builds on12

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  4. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
  5. EfficientNetV2: Smaller Models and Faster TrainingMingxing Tan, Quoc V. LeICML 2021 · 4,239 citations

Related papers

  1. Scaling MLPs: A Tale of Inductive BiasGregor Bachmann, Sotiris Anagnostidis, Thomas HofmannNeurIPS 2023 · 71 citations
  2. Sparse MLP for Image Recognition: Is Self-Attention Really Necessary?Chuanxin Tang, Yucheng Zhao, Guangting Wang, Chong Luo et al.AAAI 2022 · 125 citations
  3. MLP-Mixer: An all-MLP Architecture for VisionIlya O. Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer et al.NeurIPS 2021 · 3,862 citations
  4. RealFormer: Transformer Likes Residual AttentionRuining He, Anirudh Ravula, Bhargav Kanagal, Joshua AinslieACL Findings 2021 · 104 citations
  5. Simplifying Transformer BlocksBobby He, Thomas HofmannICLR 2024 · 52 citations
Dusk over the sea between two cliffs drawn in fine vertical lines