arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.04892cs.CV
收藏

局部关注视觉变换器

Locality-Attending Vision Transformer

ÉTS Montreal(蒙特利尔ÉTS)

Sina Hajimiri, Farzad Beizaee, Fereshteh Shakeri, Christian Desrosiers, Ismail Ben Ayed, Jose Dolz

AI总结:

LocAtViT通过引入可学习的高斯核调节自注意力机制,提升视觉变换器在分割任务中的性能,同时保持其图像级识别能力。

摘要:

视觉变换器通过利用全局自注意力机制来捕捉长距离依赖,在分类任务中取得了显著的成功。然而,这种机制可能会掩盖细粒度的空间细节,这对于分割任务至关重要。在本工作中,我们旨在提升经过标准图像级分类训练后的视觉变换器的分割性能。更具体地说,我们提出了一种简单而有效的附加模块,该模块在保持视觉变换器图像级识别能力的同时,提高了分割任务的性能。在我们的方法中,我们通过可学习的高斯核调节自注意力,使注意力偏向于相邻的块。我们进一步细化块表示,以在块位置学习更好的嵌入。这些修改促使令牌关注局部环境,并确保空间位置上的有意义表示,同时仍保持模型整合全局信息的能力。实验表明,我们的修改是有效的,证据是其在三个基准测试中取得了显著的分割提升(例如,在ADE20K上,ViT Tiny和Base分别超过6%和4%),而无需改变训练制度或牺牲分类性能。代码可在https://github.com/sinahmr/LocAtViT/上获得。

英文摘要:

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/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑