English

Challenges in Detoxifying Language Models

Computation and Language 2021-09-16 v1 Artificial Intelligence Computers and Society Machine Learning

Abstract

Large language models (LM) generate remarkably fluent text and can be efficiently adapted across NLP tasks. Measuring and guaranteeing the quality of generated text in terms of safety is imperative for deploying LMs in the real world; to this end, prior work often relies on automatic evaluation of LM toxicity. We critically discuss this approach, evaluate several toxicity mitigation strategies with respect to both automatic and human evaluation, and analyze consequences of toxicity mitigation in terms of model bias and LM quality. We demonstrate that while basic intervention strategies can effectively optimize previously established automatic metrics on the RealToxicityPrompts dataset, this comes at the cost of reduced LM coverage for both texts about, and dialects of, marginalized groups. Additionally, we find that human raters often disagree with high automatic toxicity scores after strong toxicity reduction interventions -- highlighting further the nuances involved in careful evaluation of LM toxicity.

Keywords

Cite

@article{arxiv.2109.07445,
  title  = {Challenges in Detoxifying Language Models},
  author = {Johannes Welbl and Amelia Glaese and Jonathan Uesato and Sumanth Dathathri and John Mellor and Lisa Anne Hendricks and Kirsty Anderson and Pushmeet Kohli and Ben Coppin and Po-Sen Huang},
  journal= {arXiv preprint arXiv:2109.07445},
  year   = {2021}
}

Comments

23 pages, 6 figures, published in Findings of EMNLP 2021

R2 v1 2026-06-24T05:59:47.239Z