Training Vision Transformers to Focus: Emergence of Spatial Attention Head Specialization
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
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
- Learning Fine-Grained Visual Classification with Text as Privileged Information via Multimodal Distillation (2026)
- CODI: Improving Self-Supervised Vision Transformers with Cross Distillation (2026)
- Depth-guided Geometric Adaptation for Few-shot Image Classification (2026)
- Growing to See: Efficient Pretraining of Self-Supervised Vision Transformers (2026)
- Seeing as Humans Do: Learning from Motion to Segment Anything Without Supervision (2026)
- Scalable Patch-Level Self-Supervised Learning (2026)
- VINO: Revisiting 3D Representation Learning with Volume Transformers (2026)
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
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
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper