mlsanityData to 14 Oct 2026

Two-stage Vision Transformers and Hard Masking offer Robust Object Representations

arXiv 2506.08915 ↗First posted 10 Jun 2025cs.CV cs.AIcited by 1

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  3. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  4. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
  5. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
  6. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,423
  7. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  8. 2017Mixed Precision Trainingcited by 1,156
  9. 2023Vision Transformers Need Registerscited by 871
  10. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  11. 2018Recognition in Terra Incognitacited by 658
  12. 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 523
38 more
  1. 2022DeiT III: Revenge of the ViTcited by 419
  2. 2021ResNet strikes back: An improved training procedure in timmcited by 368
  3. 2014Recurrent Models of Visual Attentioncited by 349
  4. 2020Noise or Signal: The Role of Image Backgrounds in Object Recognitioncited by 343
  5. 2017Right for the Right Reasons: Training Differentiable Models by Constraining their Explanationscited by 294
  6. 2014One weird trick for parallelizing convolutional neural networkscited by 264
  7. 2018Learning to Explain: An Information-Theoretic Perspective on Model Interpretationcited by 248
  8. 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
  9. 2020No Subclass Left Behind: Fine-Grained Robustness in Coarse-Grained Classification Problemscited by 209
  10. 2018Compositional Attention Networks for Machine Reasoningcited by 183
  11. 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 183
  12. 2024Exploring scalable medical image encoders beyond text supervisioncited by 132
  13. 2022Revisiting Weakly Supervised Pre-Training of Visual Perception Modelscited by 116
  14. 2024Scalable Pre-training of Large Autoregressive Image Modelscited by 115
  15. 2019SCOPS: Self-Supervised Co-Part Segmentationcited by 100
  16. 2022A Whac-A-Mole Dilemma: Shortcuts Come in Multiples Where Mitigating One Amplifies Otherscited by 85
  17. 2022MetaShift: A Dataset of Datasets for Evaluating Contextual Distribution Shifts and Training Conflictscited by 81
  18. 2023Discover and Cure: Concept-aware Mitigation of Spurious Correlationcited by 71
  19. 2024Exponential Moving Average of Weights in Deep Learning: Dynamics and Benefitscited by 71
  20. 2021Improving Deep Learning Interpretability by Saliency Guided Trainingcited by 68
  21. 2022MaskTune: Mitigating Spurious Correlations by Forcing to Explorecited by 66
  22. 2022Unsupervised Object Localization: Observing the Background to Discover Objectscited by 66
  23. 2023Dynamic Token Pruning in Plain Vision Transformers for Semantic Segmentationcited by 62
  24. 2022Patch-level Representation Learning for Self-supervised Vision Transformerscited by 60
  25. 2021Have We Learned to Explain?: How Interpretability Methods Can Learn to Encode Predictions in their Interpretationscited by 59
  26. 2022ViT-CX: Causal Explanation of Vision Transformerscited by 28
  27. 2023PDiscoNet: Semantically consistent part discovery for fine-grained recognitioncited by 21
  28. 2023Masked Images Are Counterfactual Samples for Robust Fine-tuningcited by 20
  29. 2024Token Transformation Matters: Towards Faithful Post-hoc Explanation for Vision Transformercited by 19
  30. 2024On the Faithfulness of Vision Transformer Explanationscited by 19
  31. 2017Teaching Compositionality to CNNscited by 18
  32. 2024Decompose-and-Compose: A Compositional Approach to Mitigating Spurious Correlationcited by 18
  33. 2023Sparsifiner: Learning Sparse Instance-Dependent Attention for Efficient Vision Transformerscited by 16
  34. 2023Keep It SimPool: Who Said Supervised Transformers Suffer from Attention Deficit?cited by 16
  35. 2022SaiT: Sparse Vision Transformers through Adaptive Token Pruningcited by 15
  36. 2022Interpretations Steered Network Pruning via Amortized Inferred Saliency Mapscited by 11
  37. 2023Masking Strategies for Background Bias Removal in Computer Vision Modelscited by 9
  38. 2024PDiscoFormer: Relaxing Part Discovery Constraints with Vision Transformerscited by 9

50 most cited of 56 All 56 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.