Training Vision Transformers to Focus: Emergence of Spatial Attention Head Specialization
Yuji Nozawa, Yu-Chieh Lin, Youyang Ng
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- On the Necessity of Attention-FFN Split in Vision TransformersarXiv · 2026
- Spec$^2$R: Recovering Emergent Properties in Supervised Vision TransformersarXiv · 2026
- Vision transformers need zoomer: Efficient ViT with categorical attention prior-guided zoom adapter.Neural networks : the official journal of the International Neural Network Society · 2026
- A survey of sparse attention in vision transformers: Taxonomy, methods and analysis.Neural networks : the official journal of the International Neural Network Society · 2026
- What Do Visual-Head Discovery Scores Actually Find? Attention Source, Necessity, and Random-Control Pitfalls in Vision-Language ModelsarXiv · 2026
- DuCo: Exploiting Dual Cross-Layer Consistency for Sparse Geometric AttentionarXiv · 2026