Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLP

Timo Schick, Sahana Udupa, Hinrich Schütze
2/28/2021
cs.CL

Official code: timoschick/self-debiasing (89 stars, Apache-2.0, last commit 2021-08-20).

Abstract

When trained on large, unfiltered crawls from the internet, language models pick up and reproduce all kinds of undesirable biases that can be found in the data: they often generate racist, sexist, violent or otherwise toxic language. As large models require millions of training examples to achieve good performance, it is difficult to completely prevent them from being exposed to such content. In this paper, we first demonstrate a surprising finding: pretrained language models recognize, to a considerable degree, their undesirable biases and the toxicity of the content they produce. We refer to this capability as self-diagnosis. Based on this finding, we then propose a decoding algorithm that, given only a textual description of the undesired behavior, reduces the probability of a language model producing problematic text. We refer to this approach as self-debiasing. Self-debiasing does not rely on manually curated word lists, nor does it require any training data or changes to the model's parameters. While we by no means eliminate the issue of language models generating biased text, we believe our approach to be an important step in this direction.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repository contains the code for "Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLP".

8927PythonMar 2, 20215 years agoApache-2.0

Cite this paper

@article{schick2021selfdiagnosis,
  title  = {Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLP},
  author = {Timo Schick and Sahana Udupa and Hinrich Schütze},
  year   = {2021},
  eprint = {2103.00453},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.00453}
}

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/2103.00453.svg)](https://codeofpaper.com/paper/2103.00453)

Discussion