mlsanityData to 14 Oct 2026

Locally Shifted Attention With Early Global Integration

arXiv 2112.05080 ↗First posted 9 Dec 2021cs.CV cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Recent work has shown the potential of transformers for computer vision applications. An image is first partitioned into patches, which are then used as input tokens for the attention mechanism. Due to the expensive quadratic cost of the attention mechanism, either a large patch size is used, resulting in coarse-grained global interactions, or alternatively, attention is applied only on a local region of the image, at the expense of long-range interactions. In this work, we propose an approach that allows for both coarse global interactions and fine-grained local interactions already at early layers of a vision transformer. At the core of our method is the application of local and global attention layers. In the local attention layer, we apply attention to each patch and its local shifts, resulting in virtually located local patches, which are not bound to a single, specific location. These virtually located patches are then used in a global attention layer. The separation of the attention layer into local and global counterparts allows for a low computational cost in the number of patches, while still supporting data-dependent localization already at the first layer, as opposed to the static positioning in other visual transformers. Our method is shown to be superior to both convolutional and transformer-based methods for image classification on CIFAR10, CIFAR100, and ImageNet. Code is available at: https://github.com/shellysheynin/Locally-SAG-Transformer.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 21 references that are in the map. First posted on arXiv 9 Dec 2021.

Builds on

14 of 21 references.

References · 14

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  6. 2016Layer Normalizationcited by 5,669
  7. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,859
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  9. 2016Wide Residual Networkscited by 3,070
  10. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  11. 2020Designing Network Design Spacescited by 960
  12. 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
2 more
  1. 2021Early Convolutions Help Transformers See Bettercited by 396
  2. 2016Deep Pyramidal Residual Networkscited by 163

Built on by

Not cited yet.