arXiv:2603.04892cs.CV2026-03中稿 · ICLR被引 1

让视觉Transformer更关注局部细节,提升分割性能

Locality-Attending Vision Transformer

  • 用可学习高斯核调制自注意力,增强对邻近图像块的关注
  • 在ADE20K上,ViT-Tiny和ViT-Base分割精度分别提升超6%和4%
  • 无需改变训练方式,同时保持分类能力,适合分割任务

视觉变换器在图像分类中表现卓越,得益于全局自注意力捕捉长距离依赖。然而,这一机制会掩盖分割等任务所需的精细空间细节。本文旨在提升视觉变换器在标准图像级分类训练后的分割性能。提出一种简单有效的附加模块:通过可学习的高斯核调制自注意力,使注意力偏向邻近图像块;进一步优化图像块表示,学习更优的位置嵌入。这些修改促使特征聚焦于局部上下文,同时保留全局信息建模能力。实验表明,该方法在三个基准上显著提升分割性能(如ADE20K上ViT-Tiny和ViT-Base分别提升超6%和4%),且不改变训练流程或牺牲分类性能。代码已开源。

原文摘要 · Abstract (English)

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

视觉Transformer图像分割注意力机制局部性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。