Locality-Attending Vision Transformer
Not on the map. Why?
Abstract (arXiv)
Vision transformers have demonstrated remarkable success in classification by leveraging global self-attention to capture long-range dependencies. However, this same mechanism can obscure fine-grained spatial details crucial for tasks such as segmentation. In this work, we seek to enhance segmentation performance of vision transformers after standard image-level classification training. More specifically, we present a simple yet effective add-on that improves performance on segmentation tasks while retaining vision transformers' image-level recognition capabilities. In our approach, we modulate the self-attention with a learnable Gaussian kernel that biases the attention toward neighboring patches. We further refine the patch representations to learn better embeddings at patch positions. These modifications encourage tokens to focus on local surroundings and ensure meaningful representations at spatial positions, while still preserving the model's ability to incorporate global information. Experiments demonstrate the effectiveness of our modifications, evidenced by substantial segmentation gains on three benchmarks (e.g., over 6% and 4% on ADE20K for ViT Tiny and Base), without changing the training regime or sacrificing classification performance. The code is available at https://github.com/sinahmr/LocAtViT/.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 53 of its 65 references that are in the map. First posted on arXiv 5 Mar 2026.
Builds on
53 of 65 references.
References · 53
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2023Segment Anythingcited by 8,158
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
38 more
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2016Matching Networks for One Shot Learningcited by 2,246
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2017Random Erasing Data Augmentationcited by 1,235
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
- 2021Scaling Vision Transformerscited by 993
- 2016Deep Networks with Stochastic Depthcited by 973
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2016COCO-Stuff: Thing and Stuff Classes in Contextcited by 858
- 2023Vision Transformers Need Registerscited by 844
- 2021Going deeper with Image Transformerscited by 759
- 2022Language-driven Semantic Segmentationcited by 711
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2021Extract Free Dense Labels from CLIPcited by 580
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2022Open-Vocabulary Semantic Segmentation with Mask-adapted CLIPcited by 560
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2022MaxViT: Multi-Axis Vision Transformercited by 476
- 2022DeiT III: Revenge of the ViTcited by 417
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2023Side Adapter Network for Open-Vocabulary Semantic Segmentationcited by 296
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
- 2024Rotary Position Embedding for Vision Transformercited by 226
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
- 2017Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Ratescited by 196
- 2022DaViT: Dual Attention Vision Transformerscited by 174
- 2023SCLIP: Rethinking Self-Attention for Dense Vision-Language Inferencecited by 169
- 2021Conformer: Local Features Coupling Global Representations for Visual Recognitioncited by 164
- 2022SegCLIP: Patch Aggregation with Learnable Centers for Open-Vocabulary Semantic Segmentationcited by 162
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 150
- 2021RegionViT: Regional-to-Local Attention for Vision Transformerscited by 126
- 2022Global Context Vision Transformerscited by 98
- 2023Getting ViT in Shape: Scaling Laws for Compute-Optimal Model Designcited by 87
- 2024Pay Attention to Your Neighbours: Training-Free Open-Vocabulary Semantic Segmentationcited by 76
- 2024Explore the Potential of CLIP for Training-Free Open Vocabulary Semantic Segmentationcited by 61
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.