Reducing Sentiment Bias in Language Models via Counterfactual Evaluation

By Po-Sen Huang, Huan Zhang, Ray Jiang, Robert Stanforth, Johannes Welbl, Jack W. Rae, Vishal Maini, Dani Yogatama, Pushmeet Kohli. 2019

251 citations recorded by the source corpus.

Advances in language modeling architectures and the availability of large text corpora have driven progress in automatic text generation. While this results in models capable of generating coherent texts, it also prompts models to internalize social biases present in the training corpus. This paper aims to quantify and reduce a particular type of bias exhibited by language models: bias in the sentiment of generated text. Given a conditioning context (e.g., a writing prompt) and a language model, we analyze if (and how) the sentiment of the generated text is affected by changes in values of sensitive attributes (e.g., country names, occupations, genders) in the conditioning context using a form of counterfactual evaluation. We quantify sentiment bias by adopting individual and group fairness metrics from the fair machine learning literature, and demonstrate that large-scale models trained on two different corpora (news articles, and Wikipedia) exhibit considerable levels of bias. We then propose embedding and sentiment prediction-derived regularization on the language model’s latent representations. The regularizations improve fairness metrics while retaining comparable levels of perplexity and semantic similarity.

Subfields: Artificial Intelligence, General Social Sciences, Natural Language Processing, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Yejin Choi
  4. Percy Liang
  5. Noah A. Smith
  6. Jianfeng Gao
  7. Graham Neubig
  8. Yonatan Belinkov

In General Social Sciences

  1. Brandon M Stewart
  2. Margaret E. Roberts
  3. Adina Williams
  4. Katherine A. Keith
  5. Dirk Hovy
  6. Federico Bianchi
  7. Hal Daumé Iii
  8. Douwe Kiela

In Natural Language Processing

  1. Yonatan Belinkov
  2. Mohit Bansal
  3. Yejin Choi
  4. Kai-Wei Chang
  5. Percy Liang
  6. Samuel R. Bowman
  7. Adina Williams
  8. Noah A. Smith

In Safety, Robustness & Interpretability

  1. Yonatan Belinkov
  2. Adina Williams
  3. Kai-Wei Chang
  4. Sunipa Dev
  5. Dirk Hovy
  6. Eric Michael Smith
  7. Emily Sheng
  8. Nanyun Peng

Citations in the corpus