Training Vision Transformers to Focus: Emergence of Attention Head Specialization
Yuji Nozawa, Yu-Chieh Lin, Youyang Ng
NeurIPS page · OpenReview · Open on the map
Category: Vision-Language Models › Vision Transformer Attention Optimization · Type: new method · Keywords: Vision Transformers, attention head specialization, visual focusing loss, unsupervised learning, computer vision
Areas: Model Architectures & Sequence Modeling › Vision and Generative Architectures › Efficient Vision Transformers; Computer Vision & 3D › Visual Multimodal Perception › Vision Transformers
Summary
The paper introduces two visual focusing loss functions that steer Vision Transformer attention heads to specialize, improving spatial selectivity and fine-grained recognition without supervision.
Explained to a 5-year-old
A computer program looks at pictures and tries to understand them. It uses many small helpers called attention heads to notice different parts of the picture. When the program was first trained, all the helpers looked at everything at once, making the picture fuzzy. The researchers added special rules during training so the helpers would pay attention to clear regions. Now the program can see details better and knows more about what is in the picture.
Explained to a 5-year-old, longer
A computer program can look at pictures and try to understand them without anyone telling it what to see. It uses a special kind of brain called a Vision Transformer, which works a lot like how people think. Inside this brain are many small helpers called attention heads, and each one can look at a different part of the picture. When the program was first trained, all the helpers looked at everything at once, making the picture blurry. This made it hard for the program to tell where one object ends and another begins. The researchers noticed that the program lacked a way to focus, so they added new rules to the training process. These rules tell the helpers to pay extra attention to clear, distinct regions of the image. By doing this, the helpers start to specialize, with some focusing on edges, others on textures, and others on whole objects. The program now produces clearer pictures inside its brain, which helps it recognize things more accurately. This also makes it easier for people to see why the program made a certain decision, because each helper has a clear job. The new approach works without needing any labeled pictures, so it can be used on many different kinds of images. In the end, the program can see fine details that were previously hidden, improving both its performance and its explainability.
For a technical reader
The authors add training constraints that guide Vision Transformer attention heads to focus on specific image regions, encouraging specialization. This is done without any labeled supervision, leveraging the model’s existing multi-head attention mechanism. The result is a noticeable increase in spatial selectivity and diversity of the heads, which improves both explainability and fine-grained recognition. The approach can be integrated into existing unsupervised vision transformer pipelines with minimal overhead.
Problem
Unsupervised vision transformer models produce perceptual representations that are ambiguous or overly similar because they lack a focusing mechanism during training.
Method
The approach adds constraints during training that encourage attention heads to align with specific image regions, promoting specialization without requiring labeled data.
Results
The approach substantially increases spatial selectivity and diversity of attention heads, leading to improved explainability and fine-grained recognition performance.
Contributions
The paper contributes a way to steer attention heads to specialize, resulting in more focused perceptual representations.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction