Causal ATE Mitigates Unintended Bias in Controlled Text Generation

Rahul Madhavan, Kahini Wadhawan
11/19/2023
cs.CL

Official code: causalate-mitigates-bias/causal-ate-mitigates-bias (1 star, MIT, last commit 2024-07-30).

Abstract

We study attribute control in language models through the method of Causal Average Treatment Effect (Causal ATE). Existing methods for the attribute control task in Language Models (LMs) check for the co-occurrence of words in a sentence with the attribute of interest, and control for them. However, spurious correlation of the words with the attribute in the training dataset, can cause models to hallucinate the presence of the attribute when presented with the spurious correlate during inference. We show that the simple perturbation-based method of Causal ATE removes this unintended effect. Specifically, we ground it in the problem of toxicity mitigation, where a significant challenge lies in the inadvertent bias that often emerges towards protected groups post detoxification. We show that this unintended bias can be solved by the use of the Causal ATE metric and rigorously prove our claim. We provide experimental validations for our claims and release our code (anonymously) here: https://github.com/causalate-mitigates-bias/causal-ate-mitigates-bias.

View on arXivView PDF

Code Implementations(1)

MIT

We study the mitigation of bias through the use of causal ATE with theoretical and experimental validations.

11Shell, PythonDec 16, 20232 years agoMIT

Cite this paper

@article{madhavan2023causal,
  title  = {Causal ATE Mitigates Unintended Bias in Controlled Text Generation},
  author = {Rahul Madhavan and Kahini Wadhawan},
  year   = {2023},
  eprint = {2311.11229},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.11229v2}
}

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

Discussion