mlsanityData to 7 Oct 2026

Beyond Self-attention: External Attention using Two Linear Layers for Visual Tasks

arXiv 2105.02358 ↗First posted 5 May 2021cs.CVcited by 109

Not on the map. Why?

Abstract (arXiv)

Attention mechanisms, especially self-attention, have played an increasingly important role in deep feature representation for visual tasks. Self-attention updates the feature at each position by computing a weighted sum of features using pair-wise affinities across all positions to capture the long-range dependency within a single sample. However, self-attention has quadratic complexity and ignores potential correlation between different samples. This paper proposes a novel attention mechanism which we call external attention, based on two external, small, learnable, shared memories, which can be implemented easily by simply using two cascaded linear layers and two normalization layers; it conveniently replaces self-attention in existing popular architectures. External attention has linear complexity and implicitly considers the correlations between all data samples. We further incorporate the multi-head mechanism into external attention to provide an all-MLP architecture, external attention MLP (EAMLP), for image classification. Extensive experiments on image classification, object detection, semantic segmentation, instance segmentation, image generation, and point cloud analysis reveal that our method provides results comparable or superior to the self-attention mechanism and some of its variants, with much lower computational and memory costs.

Key facts. Cited by 109 papers in the map (data through 7 Oct 2026). Builds on 89 of its 115 references that are in the map. First posted on arXiv 5 May 2021.

Builds on

89 of 115 references.

References · 89

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  6. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  9. 2020End-to-End Object Detection with Transformerscited by 7,384
  10. 2017Mask R-CNNcited by 7,259
  11. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  12. 2016Layer Normalizationcited by 5,579
38 more
  1. 2016PointNet: Deep Learning on Point Sets for 3D Classification and Segmentationcited by 5,223
  2. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
  3. 2017Squeeze-and-Excitation Networkscited by 4,763
  4. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
  7. 2017PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Spacecited by 4,384
  8. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  9. 2016Improved Techniques for Training GANscited by 2,938
  10. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  11. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
  12. 2016Pyramid Scene Parsing Networkcited by 2,472
  13. 2017Non-local Neural Networkscited by 2,290
  14. 2017Improved Training of Wasserstein GANscited by 2,223
  15. 2018Dynamic Graph CNN for Learning on Point Cloudscited by 2,220
  16. 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
  17. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  18. 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,935
  19. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  20. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  21. 2020Rethinking Attention with Performerscited by 1,584
  22. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
  23. 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
  24. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  25. 2019KPConv: Flexible and Deformable Convolution for Point Cloudscited by 1,202
  26. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  27. 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
  28. 2021Transformers in Vision: A Surveycited by 1,009
  29. 2018Dual Attention Network for Scene Segmentationcited by 1,001
  30. 2016Least Squares Generative Adversarial Networkscited by 1,000
  31. 2020Designing Network Design Spacescited by 954
  32. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  33. 2021Multiscale Vision Transformerscited by 896
  34. 2020Pre-Trained Image Processing Transformercited by 891
  35. 2018Self-Attention Generative Adversarial Networkscited by 809
  36. 2018PointCNN: Convolution On X-Transformed Pointscited by 764
  37. 2020PCT: Point cloud transformercited by 730
  38. 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717

50 most cited of 89 All 89 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 21; 2022: 23; 2023: 25; 2024: 16; 2025: 14; 2026: 10.

109 papers.

Sort:

By area:

  1. 2022SegNeXt: Rethinking Convolutional Attention Design for Semantic Segmentationcited by 252
  2. 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
  3. 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
  4. 2022Visual Attention Networkcited by 210
  5. 2021CycleMLP: A MLP-like Architecture for Dense Predictioncited by 126
  6. 2021Query2Label: A Simple Transformer Way to Multi-Label Classificationcited by 126
  7. 2022UIU-Net: U-Net in U-Net for Infrared Small Object Detectioncited by 124
  8. 2021Vision Permutator: A Permutable MLP-Like Architecture for Visual Recognitioncited by 103
  9. 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
  10. 2021Mixed Transformer U-Net For Medical Image Segmentationcited by 95
  11. 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
  12. 2021Is Attention Better Than Matrix Decomposition?cited by 75
38 more
  1. 2024OMG-Seg: Is One Model Good Enough For All Segmentation?cited by 73
  2. 2023Efficient Region-Aware Neural Radiance Fields for High-Fidelity Talking Portrait Synthesiscited by 72
  3. 2022Delving into Masked Autoencoders for Multi-Label Thorax Disease Classificationcited by 65
  4. 2021Are we ready for a new paradigm shift? A Survey on Visual Deep MLPcited by 63
  5. 2021On the Connection between Local Attention and Dynamic Depth-wise Convolutioncited by 61
  6. 2021An Image Patch is a Wave: Phase-Aware Vision MLPcited by 61
  7. 2022MALUNet: A Multi-Attention and Light-weight UNet for Skin Lesion Segmentationcited by 59
  8. 2024A Survey on Transformer Compressioncited by 44
  9. 2021Sparse MLP for Image Recognition: Is Self-Attention Really Necessary?cited by 38
  10. 2022SimA: Simple Softmax-free Attention for Vision Transformerscited by 32
  11. 2022RTFormer: Efficient Design for Real-Time Semantic Segmentation with Transformercited by 31
  12. 2021TransLoc3D : Point Cloud based Large-scale Place Recognition using Adaptive Receptive Fieldscited by 29
  13. 2022Eliminating Gradient Conflict in Reference-based Line-Art Colorizationcited by 25
  14. 2024DGR-MIL: Exploring Diverse Global Representation in Multiple Instance Learning for Whole Slide Image Classificationcited by 25
  15. 2021S2-MLPv2: Improved Spatial-Shift MLP Architecture for Visioncited by 24
  16. 2021Deep Instance Segmentation with Automotive Radar Detection Pointscited by 22
  17. 2023SCTNet: Single-Branch CNN with Transformer Semantic Information for Real-Time Segmentationcited by 22
  18. 2024AUCSeg: AUC-oriented Pixel-level Long-tail Semantic Segmentationcited by 18
  19. 2025Vision-Language Modeling Meets Remote Sensing: Models, Datasets and Perspectivescited by 18
  20. 2023PanGu-π: Enhancing Language Model Architectures via Nonlinearity Compensationcited by 17
  21. 2021Rethinking Token-Mixing MLP for MLP-based Vision Backbonecited by 15
  22. 2023Urban Region Representation Learning with Attentive Fusioncited by 12
  23. 2023All4One: Symbiotic Neighbour Contrastive Learning via Self-Attention and Redundancy Reductioncited by 11
  24. 2023CrossLoc3D: Aerial-Ground Cross-Source 3D Place Recognitioncited by 10
  25. 2022Softmax-free Linear Transformerscited by 9
  26. 2022Interpretable CNN-Multilevel Attention Transformer for Rapid Recognition of Pneumonia from Chest X-Ray Imagescited by 8
  27. 2021Can Attention Enable MLPs To Catch Up With CNNs?cited by 7
  28. 2022Excavating RoI Attention for Underwater Object Detectioncited by 7
  29. 2023Discrepancy-Guided Reconstruction Learning for Image Forgery Detectioncited by 7
  30. 2023Emotional Talking Head Generation based on Memory-Sharing and Attention-Augmented Networkscited by 7
  31. 2024SERNet-Former: Semantic Segmentation by Efficient Residual Network with Attention-Boosting Gates and Attention-Fusion Networkscited by 7
  32. 2024SegSTRONG-C: Segmenting Surgical Tools Robustly On Non-adversarial Generated Corruptions -- An EndoVis'24 Challengecited by 7
  33. 2021Sampling Equivariant Self-attention Networks for Object Detection in Aerial Imagescited by 6
  34. 2022Real-World Graph Convolution Networks (RW-GCNs) for Action Recognition in Smart Video Surveillancecited by 6
  35. 2022EMA-VIO: Deep Visual-Inertial Odometry with External Memory Attentioncited by 6
  36. 2023Fast-StrucTexT: An Efficient Hourglass Transformer with Modality-guided Dynamic Token Merge for Document Understandingcited by 6
  37. 2024FSC: Few-point Shape Completioncited by 6
  38. 2025Context-CrackNet: A Context-Aware Framework for Precise Segmentation of Tiny Cracks in Pavement imagescited by 6

50 most cited of 109 All 109 (JSON)