Abstract
Large language models (LMs) often mirror the toxic language found in their training data. While detoxification techniques aim to mitigate this, they frequently introduce significant biases against marginalized communities. This paper audits popular detoxification methods, revealing that they disproportionately penalize African-American English (AAE) and text mentioning minority identities, leading to a "utility tax" that marginalizes these voices.
Introduction
Large language models like GPT-2 are trained on vast, unfiltered datasets from the internet, leading them to generate toxic content such as slurs and hate speech. To ensure safety, researchers employ detoxification strategies to steer models toward more benign outputs. However, these safety mechanisms often conflate linguistic markers of marginalized groups with toxicity. This study investigates how four state-of-the-art detoxification techniques—DAPT, PPLM, GeDi, and Filtering—affect the performance and equity of LMs across different dialects and identity mentions.
Methodology
The researchers evaluated four detoxification strategies against a baseline GPT-2 Medium model:
- DAPT (Domain-Adaptive Pretraining): Finetuning the LM on a corpus of "nontoxic" data.
- PPLM (Plug and Play Language Models): Using a toxicity classifier to steer the LM’s hidden states during generation.
- GeDi: Using a smaller "anti-toxic" LM to guide the primary model's probability distributions during decoding.
- Filtering: A "best-of-N" approach where a classifier selects the least toxic completion from multiple candidates.
The models were tested using the Jigsaw Civil Comments dataset for toxicity, a paired tweet dataset for White-Aligned English (WAE) and African-American English (AAE), and a curated list of Minority Identity Mentions (MIM) including terms like "gay," "Muslim," and "Latinx."
The Utility Gap: Perplexity and Bias
A primary finding is the "utility tax" imposed by detoxification. While these methods reduce toxicity, they increase the model's perplexity—a measure of how "surprised" or confused a model is by the input text. Crucially, this increase is not uniform across dialects.
As shown in Figure 1, detoxified models exhibit much higher perplexity on nontoxic AAE and MIM data compared to nontoxic WAE. For instance, using PPLM, the model's perplexity on WAE increased by a factor of 2.1, but it spiked by a factor of 4.3 on MIM data. This suggests that the models struggle to process language from marginalized groups because the underlying toxicity classifiers often mislabel these dialects or identity terms as toxic precursors.
Human Evaluation and Topic Avoidance
To understand the qualitative impact, the researchers conducted human evaluations where crowdworkers rated model completions for detoxification, topicality, fluency, and style proximity.
Figure 3 illustrates a stark contrast in performance between dialects. While detoxification is effective across both (high preference for detoxification), it comes at a severe cost to topicality and fluency for AAE. Evaluators noted that models often "change the subject" when prompted with AAE, steering toward generic or nonsensical topics to avoid perceived toxicity. This "topic avoidance" effectively silences AAE speakers by failing to provide relevant or coherent responses to their prompts.
The Root of the Problem: Spurious Correlations
The bias stems from "false positives" in toxicity datasets. Toxic speech often targets minority groups, leading to a high frequency of identity terms in toxic examples. Additionally, annotators who are unfamiliar with AAE often mislabel its dialect markers as offensive. Consequently, detoxification algorithms learn to treat these markers as "red flags," leading to a "strength trap": as detoxification strength increases to make the model "safer," the bias against minority voices grows exponentially. In experiments with GeDi, strong detoxification made the model 400 times worse at processing AAE compared to WAE.
Conclusion
Current detoxification methods create a trade-off between safety and equity. By over-penalizing the speech of marginalized groups, these models risk further marginalizing the very communities they aim to protect. Future work must focus on debiasing algorithms and creating context-aware datasets that distinguish between harmful intent and cultural dialect, ensuring that safety filters do not become tools of erasure.
Summary updated