mlsanityData to 14 Oct 2026

ELSA: Enhanced Local Self-Attention for Vision Transformer

arXiv 2112.12786 ↗First posted 23 Dec 2021cs.CV cs.AI cs.MMcited by 18

Not on the map. Why?

Abstract (arXiv)

Self-attention is powerful in modeling long-range dependencies, but it is weak in local finer-level feature learning. The performance of local self-attention (LSA) is just on par with convolution and inferior to dynamic filters, which puzzles researchers on whether to use LSA or its counterparts, which one is better, and what makes LSA mediocre. To clarify these, we comprehensively investigate LSA and its counterparts from two sides: channel setting and spatial processing. We find that the devil lies in the generation and application of spatial attention, where relative position embeddings and the neighboring filter application are key factors. Based on these findings, we propose the enhanced local self-attention (ELSA) with Hadamard attention and the ghost head. Hadamard attention introduces the Hadamard product to efficiently generate attention in the neighboring case, while maintaining the high-order mapping. The ghost head combines attention maps with static matrices to increase channel capacity. Experiments demonstrate the effectiveness of ELSA. Without architecture / hyperparameter modification, drop-in replacing LSA with ELSA boosts Swin Transformer citeswin by up to +1.4 on top-1 accuracy. ELSA also consistently benefits VOLO citevolo from D1 to D5, where ELSA-VOLO-D5 achieves 87.2 on the ImageNet-1K without extra training images. In addition, we evaluate ELSA in downstream tasks. ELSA significantly improves the baseline by up to +1.9 box Ap / +1.3 mask Ap on the COCO, and by up to +1.9 mIoU on the ADE20K. Code is available at urlhttps://github.com/damo-cv/ELSA.

Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 79 of its 97 references that are in the map. First posted on arXiv 23 Dec 2021.

Builds on

79 of 97 references.

References · 79

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  6. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  7. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  8. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  9. 2020End-to-End Object Detection with Transformerscited by 7,414
  10. 2017Mask R-CNNcited by 7,277
  11. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
  12. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
38 more
  1. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
  2. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  3. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,845
  4. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
  5. 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,332
  6. 2019Searching for MobileNetV3cited by 1,994
  7. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  8. 2020Reformer: The Efficient Transformercited by 1,668
  9. 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
  10. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
  11. 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,276
  12. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
  13. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
  14. 2021Multiscale Vision Transformerscited by 897
  15. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  16. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  17. 2021Going deeper with Image Transformerscited by 764
  18. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
  19. 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 642
  20. 2021Transformer in Transformercited by 633
  21. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
  22. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  23. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
  24. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  25. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  26. 2021TransReID: Transformer-based Object Re-Identificationcited by 435
  27. 2019GhostNet: More Features from Cheap Operationscited by 410
  28. 2021Early Convolutions Help Transformers See Bettercited by 396
  29. 2020TransTrack: Multiple Object Tracking with Transformercited by 371
  30. 2019Dynamic Convolution: Attention over Convolution Kernelscited by 356
  31. 2021XCiT: Cross-Covariance Image Transformerscited by 338
  32. 2016Dynamic Filter Networkscited by 319
  33. 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
  34. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 288
  35. 2019CondConv: Conditionally Parameterized Convolutions for Efficient Inferencecited by 273
  36. 2021Incorporating Convolution Designs into Visual Transformerscited by 248
  37. 2021Mobile-Former: Bridging MobileNet and Transformercited by 235
  38. 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228

50 most cited of 79 All 79 (JSON)

Built on by

Cited by year

Citing papers per year: 2022: 9; 2023: 7; 2024: 1; 2025: 1.

18 papers.

Sort:

  1. 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 456
  2. 2022DaViT: Dual Attention Vision Transformerscited by 175
  3. 2022EdgeNeXt: Efficiently Amalgamated CNN-Transformer Architecture for Mobile Vision Applicationscited by 121
  4. 2022ViTPose++: Vision Transformer for Generic Body Pose Estimationcited by 65
  5. 2023Making Vision Transformers Efficient from A Token Sparsification Viewcited by 29
  6. 2023SCT: A Simple Baseline for Parameter-Efficient Fine-Tuning via Salient Channelscited by 20
  7. 2022Boosting vision transformers for image retrievalcited by 19
  8. 2023Frequency Disentangled Features in Neural Image Compressioncited by 14
  9. 2023Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attentioncited by 12
  10. 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformerscited by 10
  11. 2023Revisit Parameter-Efficient Transfer Learning: A Two-Stage Paradigmcited by 5
  12. 2022Video Mobile-Former: Video Recognition with Efficient Global Spatial-temporal Modelingcited by 3
6 more
  1. 2022Effective Vision Transformer Training: A Data-Centric Perspectivecited by 3
  2. 2024S3Attention: Improving Long Sequence Attention with Smoothed Skeleton Sketchingcited by 2
  3. 2022Conviformers: Convolutionally guided Vision Transformercited by 1
  4. 2022EIT: Enhanced Interactive Transformercited by 1
  5. 2023PhD Thesis: Exploring the role of (self-)attention in cognitive and computer vision architecturecited by 0
  6. 2025A CNN-based Local-Global Self-Attention via Averaged Window Embeddings for Hierarchical ECG Analysiscited by 0