训练视觉Transformer聚焦:空间注意力头专门化的涌现

·

研究论文 · 2026/11/10

本研究针对自监督视觉Transformer模型(如DINO)在训练中缺乏聚焦机制、导致感知表征模糊或过于相似的问题,提出了两种视觉聚焦损失函数,利用模型内的多头注意力机制将注意力引导至图像特定区域,从而无需标注即可促使空间注意力头专门化,形成多样且空间聚焦的感知能力。定性和定量评估表明,该方法显著提升了注意力头的空间选择性和多样性,增强了可解释性,并提高了零样本图像分割等密集预测任务的性能。

该研究为自监督视觉Transformer提供了一种无需标注的聚焦机制,通过损失函数设计促使注意力头专门化,不仅提升了模型可解释性,还在零样本分割等任务上取得性能提升,对理解和发展自监督视觉模型具有参考价值。

Self-supervised learning in Vision Transformer models, such as DINO, enables robust visual perception without requiring labeled data by leveraging large-scale image datasets. However, these models lack a focusing mechanism during training, resulting in perceptual representations that are often ambiguous or overly similar. In this work, we introduce two visual focusing loss functions designed to establish correspondence between the model's attention and specific regions within images. Specifically, we leverage the multi-head attention mechanism within the model to selectively steer the model's focus, leading to the emergence of spatial attention head specialization, characterized by diverse and spatially focused perceptual capabilities without requiring annotations. Through both qualitative and quantitative evaluations, we demonstrate that our method substantially increases the spatial selectivity and diversity of attention heads, improving both interpretability and performance on dense prediction tasks such as zero-shot image segmentation.

阅读原文

参与讨论