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

Yuji Nozawa, Yu-Chieh Lin, Youyang Ng
11/9/2026
cs.CV
transformer-attention

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{nozawa2026training,
  title  = {Training Vision Transformers to Focus: Emergence of Spatial Attention Head Specialization},
  author = {Yuji Nozawa and Yu-Chieh Lin and Youyang Ng},
  year   = {2026},
  eprint = {2611.11890},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.11890v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.11890.svg)](https://codeofpaper.com/paper/2611.11890)

Discussion