Language-Agnostic Bias Detection in Language Models with Bias Probing

Abdullatif Köksal, Omer Faruk Yalcin, Ahmet Akbiyik, M. Tahir Kilavuz, Anna Korhonen +1 more
5/22/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Pretrained language models (PLMs) are key components in NLP, but they contain strong social biases. Quantifying these biases is challenging because current methods focusing on fill-the-mask objectives are sensitive to slight changes in input. To address this, we propose a bias probing technique called LABDet, for evaluating social bias in PLMs with a robust and language-agnostic method. For nationality as a case study, we show that LABDet `surfaces' nationality bias by training a classifier on top of a frozen PLM on non-nationality sentiment detection. We find consistent patterns of nationality bias across monolingual PLMs in six languages that align with historical and political context. We also show for English BERT that bias surfaced by LABDet correlates well with bias in the pretraining data; thus, our work is one of the few studies that directly links pretraining data to PLM behavior. Finally, we verify LABDet's reliability and applicability to different templates and languages through an extensive set of robustness checks. We publicly share our code and dataset in https://github.com/akoksal/LABDet.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kksal2023languageagnostic,
  title  = {Language-Agnostic Bias Detection in Language Models with Bias Probing},
  author = {Abdullatif Köksal and Omer Faruk Yalcin and Ahmet Akbiyik and M. Tahir Kilavuz and Anna Korhonen and Hinrich Schütze},
  year   = {2023},
  eprint = {2305.13302},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.13302v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.13302.svg)](https://codeofpaper.com/paper/2305.13302)

Discussion