mlsanityData to 7 Oct 2026

Locally Enhanced Self-Attention: Combining Self-Attention and Convolution as Local and Context Terms

arXiv 2107.05637 ↗First posted 12 Jul 2021cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

Self-Attention has become prevalent in computer vision models. Inspired by fully connected Conditional Random Fields (CRFs), we decompose self-attention into local and context terms. They correspond to the unary and binary terms in CRF and are implemented by attention mechanisms with projection matrices. We observe that the unary terms only make small contributions to the outputs, and meanwhile standard CNNs that rely solely on the unary terms achieve great performances on a variety of tasks. Therefore, we propose Locally Enhanced Self-Attention (LESA), which enhances the unary term by incorporating it with convolutions, and utilizes a fusion module to dynamically couple the unary and binary operations. In our experiments, we replace the self-attention modules with LESA. The results on ImageNet and COCO show the superiority of LESA over convolution and self-attention baselines for the tasks of image recognition, object detection, and instance segmentation. The code is made publicly available.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 50 of its 61 references that are in the map. First posted on arXiv 12 Jul 2021.

Builds on

50 of 61 references.

References · 50

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  6. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  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. 2016Densely Connected Convolutional Networkscited by 6,691
38 more
  1. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  2. 2016Feature Pyramid Networks for Object Detectioncited by 5,021
  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. 2014Going Deeper with Convolutionscited by 4,231
  7. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
  8. 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
  9. 2016Wide Residual Networkscited by 3,057
  10. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
  11. 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
  12. 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,320
  13. 2017Non-local Neural Networkscited by 2,290
  14. 2016Identity Mappings in Deep Residual Networkscited by 1,960
  15. 2017Deformable Convolutional Networkscited by 1,481
  16. 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
  17. 2018Self-Attention with Relative Position Representationscited by 1,112
  18. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  19. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  20. 2018Deformable ConvNets v2: More Deformable, Better Resultscited by 666
  21. 2014Semantic Image Segmentation with Deep Convolutional Nets and Fully Connected CRFscited by 552
  22. 2019Stand-Alone Self-Attention in Vision Modelscited by 542
  23. 2019Hybrid Task Cascade for Instance Segmentationcited by 479
  24. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  25. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  26. 2021Bottleneck Transformers for Visual Recognitioncited by 364
  27. 2019Attention Augmented Convolutional Networkscited by 363
  28. 2020MaX-DeepLab: End-to-End Panoptic Segmentation with Mask Transformerscited by 355
  29. 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
  30. 2020Exploring Self-attention for Image Recognitioncited by 313
  31. 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
  32. 2021Co-Scale Conv-Attentional Image Transformerscited by 224
  33. 2020DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolutioncited by 222
  34. 2019Local Relation Networks for Image Recognitioncited by 210
  35. 2018A2-Nets: Double Attention Networkscited by 136
  36. 2021High-Fidelity Pluralistic Image Completion with Transformerscited by 134
  37. 2020Lite Transformer with Long-Short Range Attentioncited by 127
  38. 2020Scaling Wide Residual Networks for Panoptic Segmentationcited by 32

Built on by

Not cited yet.