Papers
arxiv:2611.11890

Training Vision Transformers to Focus: Emergence of Spatial Attention Head Specialization

Published on Nov 9
· Submitted by
Youyang Ng
on Nov 10
Authors:
,
,

Abstract

Two visual focusing losses align a Vision Transformer's multi-head attention with image regions, producing specialized spatial attention heads and improving dense prediction such as zero-shot segmentation without labels.

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.

Community

Paper author Paper submitter

Vision Transformers are powerful AI models for recognizing images. They process images as if they had many "eyes", each capable of looking at different aspects of an image. However, the ways these eyes see an image can be ambiguous or overly similar, limiting their potential to capture different aspects of the image and making their roles difficult to interpret. We introduce two new training objectives that teach the models what it means to focus. The first encourages them to focus on a small region, while the second encourages them to focus on what remains visible when part of an image is masked. Trained without annotations, our models acquire diverse ways of seeing, with different eyes specializing in different regions. This makes it easier to understand what the models are looking at and improves their ability to identify and outline objects they have not been specifically trained to recognize.

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

The following papers were recommended by the Semantic Scholar API

Please give a thumbs up to this comment if you found it helpful!

If you want recommendations for any Paper on Hugging Face checkout this Space

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2611.11890
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 1

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2611.11890 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2611.11890 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.