Efficient unsupervised shortcut learning detection and mitigation in transformers

1Goethe University Frankfurt, 2Philipps-University Marburg,
3German Cancer Research Center (DKFZ), 4German Cancer Consortium (DKTK)
ICCV 2025

*Indicates Equal Contribution

Abstract

Shortcut learning, i.e., a model's reliance on undesired features not directly relevant to the task, is a major challenge that severely limits the applications of machine learning algorithms, particularly when deploying them to assist in making sensitive decisions, such as in medical diagnostics. In this work, we leverage recent advancements in machine learning to create an unsupervised framework that is capable of both detecting and mitigating shortcut learning in transformers. We validate our method on multiple datasets. Results demonstrate that our framework significantly improves both worst-group accuracy (samples misclassified due to shortcuts) and average accuracy, while minimizing human annotation effort. Moreover, we demonstrate that the detected shortcuts are meaningful and informative to human experts, and that our framework is computationally efficient, allowing it to be run on consumer hardware.

BibTeX

@misc{kuhn2025efficientunsupervisedshortcutlearning,
      title={Efficient Unsupervised Shortcut Learning Detection and Mitigation in Transformers}, 
      author={Lukas Kuhn and Sari Sadiya and Jorg Schlotterer and Florian Buettner and Christin Seifert and Gemma Roig},
      year={2025},
      eprint={2501.00942},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2501.00942}, 
}