Do You Even Need Attention? A Stack of Feed-Forward Layers Does Surprisingly Well on ImageNet
Not on the map. Why?
Abstract (arXiv)
The strong performance of vision transformers on image classification and other vision tasks is often attributed to the design of their multi-head attention layers. However, the extent to which attention is responsible for this strong performance remains unclear. In this short report, we ask: is the attention layer even necessary? Specifically, we replace the attention layer in a vision transformer with a feed-forward layer applied over the patch dimension. The resulting architecture is simply a series of feed-forward layers applied over the patch and feature dimensions in an alternating fashion. In experiments on ImageNet, this architecture performs surprisingly well: a ViT/DeiT-base-sized model obtains 74.9% top-1 accuracy, compared to 77.9% and 79.9% for ViT and DeiT respectively. These results indicate that aspects of vision transformers other than attention, such as the patch embedding, may be more responsible for their strong performance than previously thought. We hope these results prompt the community to spend more time trying to understand why our current models are as effective as they are.
Key facts. Cited by 61 papers in the map (data through 7 Oct 2026). Builds on 10 of its 16 references that are in the map. First posted on arXiv 6 May 2021.
Builds on
10 of 16 references.
References · 10
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2021Going deeper with Image Transformerscited by 759
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
Built on by
Citing papers per year: 2021: 24; 2022: 15; 2023: 8; 2024: 6; 2025: 4; 2026: 4.
61 papers.
Sort:
- 2021Pay Attention to MLPscited by 367
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
- 2021XCiT: Cross-Covariance Image Transformerscited by 335
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
- 2022Patches Are All You Need?cited by 201
- 2021Graph-less Neural Networks: Teaching Old MLPs New Tricks via Distillationcited by 151
- 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2022Three things everyone should know about Vision Transformerscited by 90
38 more
- 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
- 2021Graph-MLP: Node Classification without Message Passing in Graphcited by 73
- 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLPcited by 63
- 2021Hierarchical Associative Memorycited by 34
- 2021A Battle of Network Structures: An Empirical Study of CNN, Transformer, and MLPcited by 32
- 2022InstaFormer: Instance-Aware Image-to-Image Translation with Transformercited by 28
- 2021Bag-of-Words vs. Graph vs. Sequence in Text Classification: Questioning the Necessity of Text-Graphs and the Surprising Strength of a Wide MLPcited by 17
- 2022Astronomia ex machina: a history, primer, and outlook on neural networks in astronomycited by 17
- 2021Rethinking Token-Mixing MLP for MLP-based Vision Backbonecited by 15
- 2024Transformers Learn Low Sensitivity Functions: Investigations and Implicationscited by 13
- 2022LPGNet: Link Private Graph Networks for Node Classificationcited by 12
- 2022SA-MLP: Distilling Graph Knowledge from GNNs into Structure-Aware MLPcited by 12
- 2024Multilinear Operator Networkscited by 12
- 2021A remark on a paper of Krotov and Hopfield [arXiv:2008.06996]cited by 11
- 2024A Review of Transformer-Based Models for Computer Vision Tasks: Capturing Global Context and Spatial Relationshipscited by 11
- 2023System identification of neural systems: If we got it right, would we know?cited by 9
- 2025Flopping for FLOPs: Leveraging equivariance for computational efficiencycited by 8
- 2021Can Attention Enable MLPs To Catch Up With CNNs?cited by 7
- 2021MLP Architectures for Vision-and-Language Modeling: An Empirical Studycited by 6
- 2022Mixing and Shifting: Exploiting Global and Local Dependencies in Vision MLPscited by 6
- 2023X-MLP: A Patch Embedding-Free MLP Architecture for Visioncited by 6
- 2021RaftMLP: How Much Can Be Done Without Attention and with Less Spatial Locality?cited by 5
- 2022Unsupervised Echocardiography Registration through Patch-based MLPs and Transformerscited by 5
- 2021What Makes for Hierarchical Vision Transformer?cited by 4
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breakingcited by 4
- 2021Arbitrary Distribution Modeling with Censorship in Real-Time Bidding Advertisingcited by 3
- 2023iMixer: hierarchical Hopfield network implies an invertible, implicit and iterative MLP-Mixercited by 3
- 2021Attention-Free Keyword Spottingcited by 2
- 2023AOP-Net: All-in-One Perception Network for Joint LiDAR-based 3D Object Detection and Panoptic Segmentationcited by 2
- 2023Evolution: A Unified Formula for Feature Operators from a High-level Perspectivecited by 2
- 2024NOAH: Learning Pairwise Object Category Attentions for Image Classificationcited by 2
- 2024Masked Mixers for Language Generation and Retrievalcited by 2
- 2022Transformer-based dimensionality reductioncited by 1
- 2023Graph Mixer Networkscited by 1
- 2023TriMLP: Revenge of a MLP-like Architecture in Sequential Recommendationcited by 1
- 2025Don't Pay Attentioncited by 1
- 2025FW-GAN: Frequency-Driven Handwriting Synthesis with Wave-Modulated MLP Generatorcited by 1
- 2021SANSformers: Self-Supervised Forecasting in Electronic Health Records with Attention-Free Modelscited by 0
50 most cited of 61 All 61 (JSON)
- 2026ST-LoRA: Single Trajectory LoRA Ensemble for Uncertainty Aware Agricultural Segmentation2 Aug 2026
- 2026FastTPS: An Optimized Method for LLM Token Phase for AI accelerators13 Jul 2026
- 2026SpiS-GAN: Spiral-Modulated Handwriting Synthesis with Star Operation8 Jul 2026
- 2026Toeplitz MLP Mixers are Low Complexity, Information-Rich Sequence Models24 Apr 2026
- 2025FW-GAN: Frequency-Driven Handwriting Synthesis with Wave-Modulated MLP Generator28 Aug 2025
- 2025Don't Pay Attention12 Jun 2025
- 2025Unsupervised 2D-3D lifting of non-rigid objects using local constraints27 Apr 2025
- 2025Flopping for FLOPs: Leveraging equivariance for computational efficiency7 Feb 2025
- 2024Masked Mixers for Language Generation and Retrieval2 Sep 2024
- 2024A Review of Transformer-Based Models for Computer Vision Tasks: Capturing Global Context and Spatial Relationships27 Aug 2024
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breaking18 Jun 2024
- 2024Transformers Learn Low Sensitivity Functions: Investigations and Implications11 Mar 2024
38 more
- 2024NOAH: Learning Pairwise Object Category Attentions for Image Classification4 Feb 2024
- 2024Multilinear Operator Networks31 Jan 2024
- 2023X-MLP: A Patch Embedding-Free MLP Architecture for Vision2 Jul 2023
- 2023Exploring Automatically Perturbed Natural Language Explanations in Relation Extraction24 May 2023
- 2023TriMLP: Revenge of a MLP-like Architecture in Sequential Recommendation24 May 2023
- 2023Evolution: A Unified Formula for Feature Operators from a High-level Perspective23 May 2023
- 2023iMixer: hierarchical Hopfield network implies an invertible, implicit and iterative MLP-Mixer25 Apr 2023
- 2023System identification of neural systems: If we got it right, would we know?13 Feb 2023
- 2023AOP-Net: All-in-One Perception Network for Joint LiDAR-based 3D Object Detection and Panoptic Segmentation2 Feb 2023
- 2023Graph Mixer Networks29 Jan 2023
- 2022Unsupervised Echocardiography Registration through Patch-based MLPs and Transformers21 Nov 2022
- 2022Astronomia ex machina: a history, primer, and outlook on neural networks in astronomy7 Nov 2022
- 2022QNet: A Quantum-native Sequence Encoder Architecture31 Oct 2022
- 2022SA-MLP: Distilling Graph Knowledge from GNNs into Structure-Aware MLP18 Oct 2022
- 2022Transformer-based dimensionality reduction15 Oct 2022
- 2022Vision Transformers provably learn spatial structure13 Oct 2022
- 2022Research Trends and Applications of Data Augmentation Algorithms18 Jul 2022
- 2022Entropy-Based Feature Extraction For Real-Time Semantic Segmentation7 Jul 2022
- 2022LPGNet: Link Private Graph Networks for Node Classification6 May 2022
- 2022InstaFormer: Instance-Aware Image-to-Image Translation with Transformer30 Mar 2022
- 2022Three things everyone should know about Vision Transformers18 Mar 2022
- 2022Learning Audio Representations with MLPs16 Mar 2022
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer7 Mar 2022
- 2022Mixing and Shifting: Exploiting Global and Local Dependencies in Vision MLPs14 Feb 2022
- 2022Patches Are All You Need?24 Jan 2022
- 2021MLP Architectures for Vision-and-Language Modeling: An Empirical Study8 Dec 2021
- 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLP7 Nov 2021
- 2021Arbitrary Distribution Modeling with Censorship in Real-Time Bidding Advertising26 Oct 2021
- 2021Graph-less Neural Networks: Teaching Old MLPs New Tricks via Distillation17 Oct 2021
- 2021Attention-Free Keyword Spotting14 Oct 2021
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?12 Oct 2021
- 2021Axial multi-layer perceptron architecture for automatic segmentation of choroid plexus in multiple sclerosis8 Sep 2021
- 2021Bag-of-Words vs. Graph vs. Sequence in Text Classification: Questioning the Necessity of Text-Graphs and the Surprising Strength of a Wide MLP8 Sep 2021
- 2021SANSformers: Self-Supervised Forecasting in Electronic Health Records with Attention-Free Models31 Aug 2021
- 2021A Battle of Network Structures: An Empirical Study of CNN, Transformer, and MLP30 Aug 2021
- 2021RaftMLP: How Much Can Be Done Without Attention and with Less Spatial Locality?9 Aug 2021
- 2021AS-MLP: An Axial Shifted MLP Architecture for Vision18 Jul 2021
- 2021Hierarchical Associative Memory14 Jul 2021
50 newest of 61 All 61 (JSON)
- 2021Pay Attention to MLPscited by 367
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
- 2021XCiT: Cross-Covariance Image Transformerscited by 335
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
- 2022Patches Are All You Need?cited by 201
- 2021Graph-less Neural Networks: Teaching Old MLPs New Tricks via Distillationcited by 151
- 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2022Three things everyone should know about Vision Transformerscited by 90
12 most cited of 61 All 61 (JSON)
- 2026ST-LoRA: Single Trajectory LoRA Ensemble for Uncertainty Aware Agricultural Segmentation2 Aug 2026
- 2026FastTPS: An Optimized Method for LLM Token Phase for AI accelerators13 Jul 2026
- 2026SpiS-GAN: Spiral-Modulated Handwriting Synthesis with Star Operation8 Jul 2026
- 2026Toeplitz MLP Mixers are Low Complexity, Information-Rich Sequence Models24 Apr 2026
- 2025FW-GAN: Frequency-Driven Handwriting Synthesis with Wave-Modulated MLP Generator28 Aug 2025
- 2025Don't Pay Attention12 Jun 2025
- 2025Unsupervised 2D-3D lifting of non-rigid objects using local constraints27 Apr 2025
- 2025Flopping for FLOPs: Leveraging equivariance for computational efficiency7 Feb 2025
- 2024Masked Mixers for Language Generation and Retrieval2 Sep 2024
- 2024A Review of Transformer-Based Models for Computer Vision Tasks: Capturing Global Context and Spatial Relationships27 Aug 2024
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breaking18 Jun 2024
- 2024Transformers Learn Low Sensitivity Functions: Investigations and Implications11 Mar 2024
12 newest of 61 All 61 (JSON)