CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generation
arXiv:2306.00374 · doi:10.18653/v1/2023.findings-acl.720
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.
arXiv comment19 pages, 10 figures. Findings of ACL 2023
References in corpus (9)
- Artificial Intelligence: the global landscape of ethics guidelines
- PaLM: Scaling Language Modeling with Pathways
- The Curious Case of Neural Text Degeneration
- CTRL: A Conditional Transformer Language Model for Controllable Generation
- Fine-Tuning Language Models from Human Preferences
- BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generation
- The Radicalization Risks of GPT-3 and Advanced Neural Language Models
- Causal Machine Learning: A Survey and Open Problems
- Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Bias