Two-stage Vision Transformers and Hard Masking offer Robust Object Representations
Not on the map. Why?
Abstract (arXiv)
Context can strongly affect object representations, sometimes leading to undesired biases, particularly when objects appear in out-of-distribution backgrounds at inference. At the same time, many object-centric tasks require to leverage the context for identifying the relevant image regions. We posit that this conundrum, in which context is simultaneously needed and a potential nuisance, can be addressed by an attention-based approach that uses learned binary attention masks to ensure that only attended image regions influence the prediction. To test this hypothesis, we evaluate a two-stage framework: stage 1 processes the full image to discover object parts and identify task-relevant regions, for which context cues are likely to be needed, while stage 2 leverages input attention masking to restrict its receptive field to these regions, enabling a focused analysis while filtering out potentially spurious information. Both stages are trained jointly, allowing stage 2 to refine stage 1. The explicit nature of the semantic masks also makes the model's reasoning auditable, enabling powerful test-time interventions to further enhance robustness. Extensive experiments across diverse benchmarks demonstrate that this approach significantly improves robustness against spurious correlations and out-of-distribution backgrounds. Code: https://github.com/ananthu-aniraj/ifam
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 56 of its 72 references that are in the map. First posted on arXiv 10 Jun 2025.
Builds on
56 of 72 references.
References · 56
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,423
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2017Mixed Precision Trainingcited by 1,156
- 2023Vision Transformers Need Registerscited by 871
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2018Recognition in Terra Incognitacited by 658
- 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 523
38 more
- 2022DeiT III: Revenge of the ViTcited by 419
- 2021ResNet strikes back: An improved training procedure in timmcited by 368
- 2014Recurrent Models of Visual Attentioncited by 349
- 2020Noise or Signal: The Role of Image Backgrounds in Object Recognitioncited by 343
- 2017Right for the Right Reasons: Training Differentiable Models by Constraining their Explanationscited by 294
- 2014One weird trick for parallelizing convolutional neural networkscited by 264
- 2018Learning to Explain: An Information-Theoretic Perspective on Model Interpretationcited by 248
- 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
- 2020No Subclass Left Behind: Fine-Grained Robustness in Coarse-Grained Classification Problemscited by 209
- 2018Compositional Attention Networks for Machine Reasoningcited by 183
- 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 183
- 2024Exploring scalable medical image encoders beyond text supervisioncited by 132
- 2022Revisiting Weakly Supervised Pre-Training of Visual Perception Modelscited by 116
- 2024Scalable Pre-training of Large Autoregressive Image Modelscited by 115
- 2019SCOPS: Self-Supervised Co-Part Segmentationcited by 100
- 2022A Whac-A-Mole Dilemma: Shortcuts Come in Multiples Where Mitigating One Amplifies Otherscited by 85
- 2022MetaShift: A Dataset of Datasets for Evaluating Contextual Distribution Shifts and Training Conflictscited by 81
- 2023Discover and Cure: Concept-aware Mitigation of Spurious Correlationcited by 71
- 2024Exponential Moving Average of Weights in Deep Learning: Dynamics and Benefitscited by 71
- 2021Improving Deep Learning Interpretability by Saliency Guided Trainingcited by 68
- 2022MaskTune: Mitigating Spurious Correlations by Forcing to Explorecited by 66
- 2022Unsupervised Object Localization: Observing the Background to Discover Objectscited by 66
- 2023Dynamic Token Pruning in Plain Vision Transformers for Semantic Segmentationcited by 62
- 2022Patch-level Representation Learning for Self-supervised Vision Transformerscited by 60
- 2021Have We Learned to Explain?: How Interpretability Methods Can Learn to Encode Predictions in their Interpretationscited by 59
- 2022ViT-CX: Causal Explanation of Vision Transformerscited by 28
- 2023PDiscoNet: Semantically consistent part discovery for fine-grained recognitioncited by 21
- 2023Masked Images Are Counterfactual Samples for Robust Fine-tuningcited by 20
- 2024Token Transformation Matters: Towards Faithful Post-hoc Explanation for Vision Transformercited by 19
- 2024On the Faithfulness of Vision Transformer Explanationscited by 19
- 2017Teaching Compositionality to CNNscited by 18
- 2024Decompose-and-Compose: A Compositional Approach to Mitigating Spurious Correlationcited by 18
- 2023Sparsifiner: Learning Sparse Instance-Dependent Attention for Efficient Vision Transformerscited by 16
- 2023Keep It SimPool: Who Said Supervised Transformers Suffer from Attention Deficit?cited by 16
- 2022SaiT: Sparse Vision Transformers through Adaptive Token Pruningcited by 15
- 2022Interpretations Steered Network Pruning via Amortized Inferred Saliency Mapscited by 11
- 2023Masking Strategies for Background Bias Removal in Computer Vision Modelscited by 9
- 2024PDiscoFormer: Relaxing Part Discovery Constraints with Vision Transformerscited by 9
50 most cited of 56 All 56 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.