Towards Controllable Biases in Language Generation

Emily Sheng, Kai-Wei Chang, Premkumar Natarajan, Nanyun Peng
5/1/2020
167 citations
cs.CL

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

Abstract

We present a general approach towards controllable societal biases in natural language generation (NLG). Building upon the idea of adversarial triggers, we develop a method to induce societal biases in generated text when input prompts contain mentions of specific demographic groups.

Show full abstract

We then analyze two scenarios: 1) inducing negative biases for one demographic and positive biases for another demographic, and 2) equalizing biases between demographics. The former scenario enables us to detect the types of biases present in the model. Specifically, we show the effectiveness of our approach at facilitating bias analysis by finding topics that correspond to demographic inequalities in generated text and comparing the relative effectiveness of inducing biases for different demographics. The second scenario is useful for mitigating biases in downstream applications such as dialogue generation. In our experiments, the mitigation technique proves to be effective at equalizing the amount of biases across demographics while simultaneously generating less negatively biased text overall.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ewsheng/nlg-biasOfficial71Python–2023-06-12
ewsheng/controllable-nlg-biasesOfficial21Python–2023-06-12
ewsheng/nlg-biasOfficial100%

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

719Python, ShellAug 30, 20193 years ago

Framework for controlling demographic biases in NLG (using adversarial prompts)

213PythonJul 13, 20203 years ago

Similar Papers

Cite this paper

@article{sheng2020towards,
  title  = {Towards Controllable Biases in Language Generation},
  author = {Emily Sheng and Kai-Wei Chang and Premkumar Natarajan and Nanyun Peng},
  year   = {2020},
  eprint = {2005.00268},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00268}
}

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

Discussion