The Woman Worked as a Babysitter: On Biases in Language Generation

Emily Sheng, Kai-Wei Chang, Premkumar Natarajan, Nanyun Peng
9/3/2019
cs.CLcs.AI

Official code: ewsheng/nlg-bias (71 stars, Python, last commit 2023-06-12).

Abstract

We present a systematic study of biases in natural language generation (NLG) by analyzing text generated from prompts that contain mentions of different demographic groups. In this work, we introduce the notion of the regard towards a demographic, use the varying levels of regard towards different demographics as a defining metric for bias in NLG, and analyze the extent to which sentiment scores are a relevant proxy metric for regard.

Show full abstract

To this end, we collect strategically-generated text from language models and manually annotate the text with both sentiment and regard scores. Additionally, we build an automatic regard classifier through transfer learning, so that we can analyze biases in unseen text. Together, these methods reveal the extent of the biased nature of language model generations. Our analysis provides a study of biases in NLG, bias metrics and correlated human judgments, and empirical evidence on the usefulness of our annotated dataset.

View on arXivView PDF

Code Implementations(1)

ewsheng/nlg-biasOfficial100%

Dataset + classifier tools to study social perception biases in natural language generation

719Python, ShellAug 30, 20193 years ago

Similar Papers

Cite this paper

@article{sheng2019woman,
  title  = {The Woman Worked as a Babysitter: On Biases in Language Generation},
  author = {Emily Sheng and Kai-Wei Chang and Premkumar Natarajan and Nanyun Peng},
  year   = {2019},
  eprint = {1909.01326},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.01326}
}

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

Discussion