Computer Science > Computation and Language
[Submitted on 8 Nov 2019 (v1), revised 30 Apr 2020 (this version, v2), latest version 8 Oct 2020 (v3)]
Title:Reducing Sentiment Bias in Language Models via Counterfactual Evaluation
View PDFAbstract:Recent advances in language model architectures and the availability of large text corpora have driven progress on automatic text generation. While this results in models that are 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 with respect to sentiment. 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 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 sentiment bias. We then propose the use of a sentiment prediction-derived regularization on the language model's latent representations. The regularization improves fairness metrics by 14--16% while retaining comparable levels of perplexity and semantic similarity.
Submission history
From: Po-Sen Huang [view email][v1] Fri, 8 Nov 2019 05:56:01 UTC (146 KB)
[v2] Thu, 30 Apr 2020 17:51:20 UTC (644 KB)
[v3] Thu, 8 Oct 2020 17:58:35 UTC (690 KB)
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
Connected Papers (What is Connected Papers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.