paper-with-me

Papers

Locality-Attending Vision Transformer

2026-03-05 · Sina Hajimiri, Farzad Beizaee, Fereshteh Shakeri, Christian Desrosiers, Ismail Ben Ayed, Jose Dolz 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/.

📄 PDF Abstract BibTeX arXiv:2603.04892

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

MedViT: A Robust Vision Transformer for Generalized Medical Image Classification

2023-02-19 · Omid Nejati Manzari, Hamid Ahmadabadi, Hossein Kashiani, Shahriar B. Shokouhi 외

Convolutional Neural Networks (CNNs) have advanced existing medical systems for automatic disease diagnosis. However, there are still concerns about the reliability of deep medical diagnosis systems against the potential…

image-classificationImage ClassificationMedical DiagnosisMedical Image Classification

LocalViT: Bringing Locality to Vision Transformers

2021-04-12 · Yawei Li, Kai Zhang, JieZhang Cao, Radu Timofte 외

We study how to introduce locality mechanisms into vision transformers. The transformer network originates from machine translation and is particularly good at modelling long-range dependencies within a long sequence. Al…

Image Classification

SepTr: Separable Transformer for Audio Spectrogram Processing

2022-03-17 · Nicolae-Catalin Ristea, Radu Tudor Ionescu, Fahad Shahbaz Khan

Following the successful application of vision transformers in multiple computer vision tasks, these models have drawn the attention of the signal processing community. This is because signals are often represented as sp…

Audio ClassificationSpeech Emotion RecognitionTime Series Analysis

Robust Transformer with Locality Inductive Bias and Feature Normalization

2023-01-27 · Omid Nejati Manzari, Hossein Kashiani, Hojat Asgarian Dehkordi, Shahriar Baradaran Shokouhi

Vision transformers have been demonstrated to yield state-of-the-art results on a variety of computer vision tasks using attention-based networks. However, research works in transformers mostly do not investigate robustn…

Inductive BiasTraffic Sign Recognition

MaiT: integrating spatial locality into image transformers with attention masks

2021-09-29 · Ling Li, Ali Shafiee, Joseph H Hassoun

Though image transformers have shown competitive results with convolutional neural networks in computer vision tasks, lacking inductive biases such as locality still poses problems in terms of model efficiency especially…