Skip to content

Efficient Unsupervised Shortcut Learning Detection and Mitigation in Transformers

Notifications You must be signed in to change notification settings

Arsu-Lab/Shortcut-Detection-Mitigation-Transformers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Efficient Unsupervised Shortcut Learning Detection and Mitigation in Transformers

This is the official code for the paper "Efficient Unsupervised Shortcut Learning Detection and Mitigation in Transformers" by Lukas Kuhn, Sari Sadiya, Joerg Schloetterer, Christin Seifert, Gemma Roig.

The methods is able to identify potential shortcuts and mitigate them during inference time using token ablations. We opted for a Jupyter Notebook approach to make the code more accessible and to provide a more interactive experience, since an important part of our research is the understanding and visiualization of the detected shortcut for better interpretability by a domain expert.

The ISIC dataset used for this example can be downloaded here: ISIC Dataset

Method and Code

To install the required packages, please run pip install -r requirements.txt. The notebook contains step by step walktrhough of the method for the ISIC example.

Please open an issue and assign to @lukaskuhn-lku for any specific issues.

Citation

@MISC{KuhnSadiya_2024,
  author={{Lukas Kuhn, Sari Sadiya} and Jorg Schlotterer, and Christin Seifert, and Gemma Roig},
  booktitle={CoRR}, 
  title={Efficient Unsupervised Shortcut Learning Detection and Mitigation in Transformers}, 
  year={2024}
}

About

Efficient Unsupervised Shortcut Learning Detection and Mitigation in Transformers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%