Learning Object Focused Attention
Not on the map. Why?
Abstract (arXiv)
We propose an adaptation to the training of Vision Transformers (ViTs) that allows for an explicit modeling of objects during the attention computation. This is achieved by adding a new branch to selected attention layers that computes an auxiliary loss which we call the object-focused attention (OFA) loss. We restrict the attention to image patches that belong to the same object class, which allows ViTs to gain a better understanding of configural (or holistic) object shapes by focusing on intra-object patches instead of other patches such as those in the background. Our proposed inductive bias fits easily into the attention framework of transformers since it only adds an auxiliary loss over selected attention layers. Furthermore, our approach has no additional overhead during inference. We also experiment with multiscale masking to further improve the performance of our OFA model and give a path forward for self-supervised learning with our method. Our experimental results demonstrate that ViTs with OFA achieve better classification results than their base models, exhibit a stronger generalization ability to out-of-distribution (OOD) and adversarially corrupted images, and learn representations based on object shapes rather than spurious correlations via general textures. For our OOD setting, we generate a novel dataset using the COCO dataset and Stable Diffusion inpainting which we plan to share with the community.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 30 references that are in the map. First posted on arXiv 10 Apr 2025.
Builds on
21 of 30 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2021ImageNet-21K Pretraining for the Massescited by 607
- 2020Asymmetric Loss For Multi-Label Classificationcited by 379
- 2018Generalisation in humans and deep neural networkscited by 237
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
9 more
- 2023PACO: Parts and Attributes of Common Objectscited by 146
- 2021Query2Label: A Simple Transformer Way to Multi-Label Classificationcited by 126
- 2016Deep Label Distribution Learning with Label Ambiguitycited by 104
- 2021ML-Decoder: Scalable and Versatile Classification Headcited by 78
- 2020Learning to Discover Multi-Class Attentional Regions for Multi-Label Image Recognitioncited by 50
- 2022Visualizing and Understanding Patch Interactions in Vision Transformercited by 26
- 2021MlTr: Multi-label Classification with Transformercited by 21
- 2021Augmented Shortcuts for Vision Transformerscited by 19
- 2022Combining Metric Learning and Attention Heads For Accurate and Efficient Multilabel Image Classificationcited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2021Less is More: Pay Less Attention in Vision Transformers
- 2026Finding Distributed Object-Centric Properties in Self-Supervised Transformers
- 2025Attentive Convolution: Unifying the Expressivity of Self-Attention with Convolutional Efficiency
- 2026Self-Improving Small Object Grounding in LVLMs
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolution
- 2026Linearizing Vision Transformer with Test-Time Training
- 2024PADRe: A Unifying Polynomial Attention Drop-in Replacement for Efficient Vision Transformer
- 2025ViT-Linearizer: Distilling Quadratic Knowledge into Linear-Time Vision Models