ELSA: Enhanced Local Self-Attention for Vision Transformer
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
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2017Mask R-CNNcited by 7,277
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
38 more
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,845
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,332
- 2019Searching for MobileNetV3cited by 1,994
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020Reformer: The Efficient Transformercited by 1,668
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,276
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2021Multiscale Vision Transformerscited by 897
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2021Going deeper with Image Transformerscited by 764
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
- 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 642
- 2021Transformer in Transformercited by 633
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021TransReID: Transformer-based Object Re-Identificationcited by 435
- 2019GhostNet: More Features from Cheap Operationscited by 410
- 2021Early Convolutions Help Transformers See Bettercited by 396
- 2020TransTrack: Multiple Object Tracking with Transformercited by 371
- 2019Dynamic Convolution: Attention over Convolution Kernelscited by 356
- 2021XCiT: Cross-Covariance Image Transformerscited by 338
- 2016Dynamic Filter Networkscited by 319
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 288
- 2019CondConv: Conditionally Parameterized Convolutions for Efficient Inferencecited by 273
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2021Mobile-Former: Bridging MobileNet and Transformercited by 235
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
50 most cited of 79 All 79 (JSON)
Built on by
Citing papers per year: 2022: 9; 2023: 7; 2024: 1; 2025: 1.
18 papers.
Sort:
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 456
- 2022DaViT: Dual Attention Vision Transformerscited by 175
- 2022EdgeNeXt: Efficiently Amalgamated CNN-Transformer Architecture for Mobile Vision Applicationscited by 121
- 2022ViTPose++: Vision Transformer for Generic Body Pose Estimationcited by 65
- 2023Making Vision Transformers Efficient from A Token Sparsification Viewcited by 29
- 2023SCT: A Simple Baseline for Parameter-Efficient Fine-Tuning via Salient Channelscited by 20
- 2022Boosting vision transformers for image retrievalcited by 19
- 2023Frequency Disentangled Features in Neural Image Compressioncited by 14
- 2023Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attentioncited by 12
- 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformerscited by 10
- 2023Revisit Parameter-Efficient Transfer Learning: A Two-Stage Paradigmcited by 5
- 2022Video Mobile-Former: Video Recognition with Efficient Global Spatial-temporal Modelingcited by 3
6 more
- 2022Effective Vision Transformer Training: A Data-Centric Perspectivecited by 3
- 2024S3Attention: Improving Long Sequence Attention with Smoothed Skeleton Sketchingcited by 2
- 2022Conviformers: Convolutionally guided Vision Transformercited by 1
- 2022EIT: Enhanced Interactive Transformercited by 1
- 2023PhD Thesis: Exploring the role of (self-)attention in cognitive and computer vision architecturecited by 0
- 2025A CNN-based Local-Global Self-Attention via Averaged Window Embeddings for Hierarchical ECG Analysiscited by 0
- 2025A CNN-based Local-Global Self-Attention via Averaged Window Embeddings for Hierarchical ECG Analysis13 Apr 2025
- 2024S3Attention: Improving Long Sequence Attention with Smoothed Skeleton Sketching16 Aug 2024
- 2023SCT: A Simple Baseline for Parameter-Efficient Fine-Tuning via Salient Channels15 Sep 2023
- 2023Frequency Disentangled Features in Neural Image Compression4 Aug 2023
- 2023PhD Thesis: Exploring the role of (self-)attention in cognitive and computer vision architecture26 Jun 2023
- 2023Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attention6 Apr 2023
- 2023Making Vision Transformers Efficient from A Token Sparsification View15 Mar 2023
- 2023Revisit Parameter-Efficient Transfer Learning: A Two-Stage Paradigm14 Mar 2023
- 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformers3 Feb 2023
- 2022EIT: Enhanced Interactive Transformer20 Dec 2022
- 2022ViTPose++: Vision Transformer for Generic Body Pose Estimation7 Dec 2022
- 2022Boosting vision transformers for image retrieval21 Oct 2022
6 more
- 2022Effective Vision Transformer Training: A Data-Centric Perspective29 Sep 2022
- 2022Video Mobile-Former: Video Recognition with Efficient Global Spatial-temporal Modeling25 Aug 2022
- 2022Conviformers: Convolutionally guided Vision Transformer17 Aug 2022
- 2022EdgeNeXt: Efficiently Amalgamated CNN-Transformer Architecture for Mobile Vision Applications21 Jun 2022
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimation26 Apr 2022
- 2022DaViT: Dual Attention Vision Transformers7 Apr 2022
- 2022ViTPose: Simple Vision Transformer Baselines for Human Pose Estimationcited by 456
- 2022DaViT: Dual Attention Vision Transformerscited by 175
- 2022EdgeNeXt: Efficiently Amalgamated CNN-Transformer Architecture for Mobile Vision Applicationscited by 121
- 2022ViTPose++: Vision Transformer for Generic Body Pose Estimationcited by 65
- 2023Making Vision Transformers Efficient from A Token Sparsification Viewcited by 29
- 2023SCT: A Simple Baseline for Parameter-Efficient Fine-Tuning via Salient Channelscited by 20
- 2022Boosting vision transformers for image retrievalcited by 19
- 2023Frequency Disentangled Features in Neural Image Compressioncited by 14
- 2023Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attentioncited by 12
- 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformerscited by 10
- 2023Revisit Parameter-Efficient Transfer Learning: A Two-Stage Paradigmcited by 5
- 2022Video Mobile-Former: Video Recognition with Efficient Global Spatial-temporal Modelingcited by 3
12 most cited of 18 All 18 (JSON)
- 2025A CNN-based Local-Global Self-Attention via Averaged Window Embeddings for Hierarchical ECG Analysis13 Apr 2025
- 2024S3Attention: Improving Long Sequence Attention with Smoothed Skeleton Sketching16 Aug 2024
- 2023SCT: A Simple Baseline for Parameter-Efficient Fine-Tuning via Salient Channels15 Sep 2023
- 2023Frequency Disentangled Features in Neural Image Compression4 Aug 2023
- 2023PhD Thesis: Exploring the role of (self-)attention in cognitive and computer vision architecture26 Jun 2023
- 2023Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attention6 Apr 2023
- 2023Making Vision Transformers Efficient from A Token Sparsification View15 Mar 2023
- 2023Revisit Parameter-Efficient Transfer Learning: A Two-Stage Paradigm14 Mar 2023
- 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformers3 Feb 2023
- 2022EIT: Enhanced Interactive Transformer20 Dec 2022
- 2022ViTPose++: Vision Transformer for Generic Body Pose Estimation7 Dec 2022
- 2022Boosting vision transformers for image retrieval21 Oct 2022
12 newest of 18 All 18 (JSON)