CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generation

Rahul Madhavan, Rishabh Garg, Kahini Wadhawan, Sameep Mehta
6/1/2023
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

We propose a method to control the attributes of Language Models (LMs) for the text generation task using Causal Average Treatment Effect (ATE) scores and counterfactual augmentation. We explore this method, in the context of LM detoxification, and propose the Causally Fair Language (CFL) architecture for detoxifying pre-trained LMs in a plug-and-play manner. Our architecture is based on a Structural Causal Model (SCM) that is mathematically transparent and computationally efficient as compared with many existing detoxification techniques. We also propose several new metrics that aim to better understand the behaviour of LMs in the context of toxic text generation. Further, we achieve state of the art performance for toxic degeneration, which are computed using \RTP (RTP) benchmark. Our experiments show that CFL achieves such a detoxification without much impact on the model perplexity. We also show that CFL mitigates the unintended bias problem through experiments on the BOLD dataset.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{madhavan2023cfl,
  title  = {CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generation},
  author = {Rahul Madhavan and Rishabh Garg and Kahini Wadhawan and Sameep Mehta},
  year   = {2023},
  eprint = {2306.00374},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.00374v1}
}

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

Discussion