mlsanityData to 14 Oct 2026

Token-Based Detection of Spurious Correlations in Vision Transformers

arXiv 2509.04009 ↗First posted 4 Sep 2025cs.CV cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Due to their powerful feature association capabilities, neural network-based computer vision models have the ability to detect and exploit unintended patterns within the data, potentially leading to correct predictions based on incorrect or unintended but statistically relevant signals. These clues may vary from simple color aberrations to small pieces of text within the image. In situations where these unintended signals align with the predictive task, models can mistakenly link these features with the task and rely on them for making predictions. This phenomenon is referred to as spurious correlations, where patterns appear to be associated with the task but are actually coincidental. As a result, detection and mitigation of spurious correlations have become crucial tasks for building trustworthy, reliable, and generalizable machine learning models. In this work, we present a token-based diagnostic pipeline that applies leave-one-out token removal to detect spurious correlations in vision transformers. The proposed approach quantifies a model's reliance on non-core visual cues through complementary measures that capture both aggregate and localized spurious effects at the token level. Using both supervised and self-supervised trained models, we present large-scale experiments on the ImageNet dataset demonstrating the ability of the proposed method to identify spurious correlations. We also find that, even if the same architecture is used, the training methodology has a substantial impact on the model's reliance on spurious correlations. Furthermore, we show that for certain ImageNet classes, many images exhibit strong reliance on non-core visual cues across multiple models, and we discuss common sources of such signals (e.g., watermarks and background artifacts). Lastly, we present a case study investigating spurious signals in invasive breast mass classification.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 65 of its 68 references that are in the map. First posted on arXiv 4 Sep 2025.

Builds on

65 of 68 references.

References · 65

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  5. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
  6. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  7. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  8. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  9. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
  10. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  11. 2014Deep Learning Face Attributes in the Wildcited by 3,693
  12. 2017Axiomatic Attribution for Deep Networkscited by 3,384
38 more
  1. 2015Domain-Adversarial Training of Neural Networkscited by 3,044
  2. 2013Visualizing and Understanding Convolutional Networkscited by 2,290
  3. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  4. 2019Invariant Risk Minimizationcited by 1,854
  5. 2017Adversarial Discriminative Domain Adaptationcited by 1,311
  6. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
  7. 2018Sanity Checks for Saliency Mapscited by 1,156
  8. 2022Token Merging: Your ViT But Fastercited by 1,021
  9. 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
  10. 2023Vision Transformers Need Registerscited by 871
  11. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  12. 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 838
  13. 2020Quantifying Attention Flow in Transformerscited by 775
  14. 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 766
  15. 2021Domain Generalization: A Surveycited by 764
  16. 2017Interpretable Explanations of Black Boxes by Meaningful Perturbationcited by 612
  17. 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 523
  18. 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 381
  19. 2019Unmasking Clever Hans Predictors and Assessing What Machines Really Learncited by 365
  20. 2019The many Shapley values for model explanationcited by 344
  21. 2017The (Un)reliability of saliency methodscited by 333
  22. 2020Are we done with ImageNet?cited by 333
  23. 2017Real Time Image Saliency for Black Box Classifierscited by 246
  24. 2016Understanding Neural Networks through Representation Erasurecited by 224
  25. 2020Explaining by Removing: A Unified Framework for Model Explanationcited by 218
  26. 2019Hidden Stratification Causes Clinically Meaningful Failures in Machine Learning for Medical Imagingcited by 216
  27. 2021Adaptive Token Sampling For Efficient Vision Transformerscited by 183
  28. 2014Object Detectors Emerge in Deep Scene CNNscited by 179
  29. 2017Visualizing Deep Neural Network Decisions: Prediction Difference Analysiscited by 166
  30. 2021IA-RED2: Interpretability-Aware Redundancy Reduction for Vision Transformerscited by 127
  31. 2021Salient ImageNet: How to discover spurious features in Deep Learning?cited by 114
  32. 2021Large-scale Unsupervised Semantic Segmentationcited by 101
  33. 2019CXPlain: Causal Explanations for Model Interpretation under Uncertaintycited by 98
  34. 2024ContextCite: Attributing Model Generation to Contextcited by 98
  35. 2020Shapley explainability on the data manifoldcited by 88
  36. 2022Shortcut Learning of Large Language Models in Natural Language Understandingcited by 85
  37. 2022VinDr-Mammo: A large-scale benchmark dataset for computer-aided diagnosis in full-field digital mammographycited by 84
  38. 2022Learning to Merge Tokens in Vision Transformerscited by 65

50 most cited of 65 All 65 (JSON)

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Spuriousness-Aware Meta-Learning for Learning Robust Classifiers
  2. 2025SpurLens: Automatic Detection of Spurious Cues in Multimodal LLMs
  3. 2025Superclass-Guided Representation Disentanglement for Spurious Correlation Mitigation
  4. 2024MM-SpuBench: Towards Better Understanding of Spurious Biases in Multimodal LLMs
  5. 2024RaVL: Discovering and Mitigating Spurious Correlations in Fine-Tuned Vision-Language Models
  6. 2025Escaping the SpuriVerse: Can Large Vision-Language Models Generalize Beyond Seen Spurious Correlations?
  7. 2025Debiased Prompt Tuning in Vision-Language Model without Annotations
  8. 2026Why Training-Free Token Reduction Collapses: The Inherent Instability of Pairwise Scoring Signals