mlsanityData to 7 Oct 2026

Do You Even Need Attention? A Stack of Feed-Forward Layers Does Surprisingly Well on ImageNet

arXiv 2105.02723 ↗First posted 6 May 2021cs.CVcited by 61

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  6. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  7. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  8. 2021Going deeper with Image Transformerscited by 759
  9. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  10. 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 24; 2022: 15; 2023: 8; 2024: 6; 2025: 4; 2026: 4.

61 papers.

Sort:

  1. 2021Pay Attention to MLPscited by 367
  2. 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
  3. 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
  4. 2021XCiT: Cross-Covariance Image Transformerscited by 335
  5. 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
  6. 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
  7. 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
  8. 2022Patches Are All You Need?cited by 201
  9. 2021Graph-less Neural Networks: Teaching Old MLPs New Tricks via Distillationcited by 151
  10. 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
  11. 2022Vision Transformers provably learn spatial structurecited by 92
  12. 2022Three things everyone should know about Vision Transformerscited by 90
38 more
  1. 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
  2. 2021Graph-MLP: Node Classification without Message Passing in Graphcited by 73
  3. 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLPcited by 63
  4. 2021Hierarchical Associative Memorycited by 34
  5. 2021A Battle of Network Structures: An Empirical Study of CNN, Transformer, and MLPcited by 32
  6. 2022InstaFormer: Instance-Aware Image-to-Image Translation with Transformercited by 28
  7. 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
  8. 2022Astronomia ex machina: a history, primer, and outlook on neural networks in astronomycited by 17
  9. 2021Rethinking Token-Mixing MLP for MLP-based Vision Backbonecited by 15
  10. 2024Transformers Learn Low Sensitivity Functions: Investigations and Implicationscited by 13
  11. 2022LPGNet: Link Private Graph Networks for Node Classificationcited by 12
  12. 2022SA-MLP: Distilling Graph Knowledge from GNNs into Structure-Aware MLPcited by 12
  13. 2024Multilinear Operator Networkscited by 12
  14. 2021A remark on a paper of Krotov and Hopfield [arXiv:2008.06996]cited by 11
  15. 2024A Review of Transformer-Based Models for Computer Vision Tasks: Capturing Global Context and Spatial Relationshipscited by 11
  16. 2023System identification of neural systems: If we got it right, would we know?cited by 9
  17. 2025Flopping for FLOPs: Leveraging equivariance for computational efficiencycited by 8
  18. 2021Can Attention Enable MLPs To Catch Up With CNNs?cited by 7
  19. 2021MLP Architectures for Vision-and-Language Modeling: An Empirical Studycited by 6
  20. 2022Mixing and Shifting: Exploiting Global and Local Dependencies in Vision MLPscited by 6
  21. 2023X-MLP: A Patch Embedding-Free MLP Architecture for Visioncited by 6
  22. 2021RaftMLP: How Much Can Be Done Without Attention and with Less Spatial Locality?cited by 5
  23. 2022Unsupervised Echocardiography Registration through Patch-based MLPs and Transformerscited by 5
  24. 2021What Makes for Hierarchical Vision Transformer?cited by 4
  25. 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breakingcited by 4
  26. 2021Arbitrary Distribution Modeling with Censorship in Real-Time Bidding Advertisingcited by 3
  27. 2023iMixer: hierarchical Hopfield network implies an invertible, implicit and iterative MLP-Mixercited by 3
  28. 2021Attention-Free Keyword Spottingcited by 2
  29. 2023AOP-Net: All-in-One Perception Network for Joint LiDAR-based 3D Object Detection and Panoptic Segmentationcited by 2
  30. 2023Evolution: A Unified Formula for Feature Operators from a High-level Perspectivecited by 2
  31. 2024NOAH: Learning Pairwise Object Category Attentions for Image Classificationcited by 2
  32. 2024Masked Mixers for Language Generation and Retrievalcited by 2
  33. 2022Transformer-based dimensionality reductioncited by 1
  34. 2023Graph Mixer Networkscited by 1
  35. 2023TriMLP: Revenge of a MLP-like Architecture in Sequential Recommendationcited by 1
  36. 2025Don't Pay Attentioncited by 1
  37. 2025FW-GAN: Frequency-Driven Handwriting Synthesis with Wave-Modulated MLP Generatorcited by 1
  38. 2021SANSformers: Self-Supervised Forecasting in Electronic Health Records with Attention-Free Modelscited by 0

50 most cited of 61 All 61 (JSON)