An Empirical Investigation of Learning from Biased Toxicity Labels

Neel Nanda, Jonathan Uesato, Sven GowalarXiv 2021

Abstract

Collecting annotations from human raters often results in a trade-off between the quantity of labels one wishes to gather and the quality of these labels. As such, it is often only possible to gather a small amount of high-quality labels. In this paper, we study how different training strategies can leverage a small dataset of human-annotated labels and a large but noisy dataset of synthetically generated labels (which exhibit bias against identity groups) for predicting toxicity of online comments. We evaluate the accuracy and fairness properties of these approaches, and trade-offs between the two. While we find that initial training on all of the data and fine-tuning on clean data produces models with the highest AUC, we find that no single strategy performs best across all fairness metrics.

Introduction

In the field of Natural Language Processing (NLP), identifying "toxicity" in online discourse is a critical yet challenging task. Researchers often face a difficult choice: utilize a small volume of expensive, high-quality human labels or a massive volume of inexpensive, but potentially biased, noisy data. Human raters frequently bring their own prejudices to the task, especially regarding protected identity groups (e.g., race, religion, sexuality). If models are trained on this noisy data without correction, they may learn to associate neutral mentions of these groups with toxicity.

This study investigates how various training strategies handle the trade-off between label quantity and label quality, specifically examining the impact on both model accuracy and fairness metrics.

Methodology

The researchers used a BERT-based architecture and compared several strategies for managing a mix of clean (5%) and noisy (95%) data from the Civil Comments dataset:

  • Clean: Training exclusively on the small, high-quality dataset.
  • Naive: Training on all data simultaneously, treating clean and noisy labels identically.
  • Multi-head: Using a shared backbone with separate output layers for clean and noisy data.
  • One-hot: Indicating the label source (clean vs. noisy) to the model via an extra input feature.
  • Loss Correction: Applying a mathematical matrix to "undo" expected corruption in the noisy labels.
  • Fine-Tuning (FT): A two-stage process where the model is first trained on all data and then refined using only the clean data.

To ensure a controlled environment, the authors generated synthetic noisy labels using neural networks trained to a specific accuracy level, allowing them to precisely model complex biases.

The Fine-Tuning Advantage

A key finding of the research is the clear superiority of the fine-tuning (FT) strategy for overall model performance. By initially training on the full dataset, the model learns the fundamental structures of language; the subsequent fine-tuning phase on clean data then allows the model to refine its toxicity associations based on high-quality labels.

Validation AUC over training steps. The vertical dashed line indicates the transition to fine-tuning on clean data, which results in a significant performance jump for all strategies compared to the clean-only baseline (black dashed line).

As illustrated in Figure 1, while initial training on noisy data may lag behind the clean-only baseline, the jump in Validation AUC following the fine-tuning step (indicated by the vertical dashed line) allows these models to significantly outperform the clean-only model.

The Fairness Paradox

While fine-tuning excels in raw accuracy (AUC) and accuracy-based fairness metrics like Subgroup AUC, it does not provide a universal solution for bias. The study highlights a distinction between accuracy-based fairness and accuracy-agnostic fairness, such as the "Negative Average Equality Gap" (Neg AEG)—a metric measuring the tendency to over-predict toxicity for protected groups regardless of actual content.

Performance across fairness metrics. While fine-tuning (FT) strategies achieve the highest Subgroup AUC, the 'clean' model (top row) maintains the lowest Negative AEG, demonstrating that accuracy gains do not always translate to bias reduction.

As shown in Figure 3, the "Clean-only" model, despite having lower overall accuracy, often performs best on the Neg AEG metric. This suggests that incorporating noisy data, even with fine-tuning, can introduce persistent biases that are difficult to eliminate. Strategies that improved raw accuracy generally improved Subgroup AUC but did little to fix the tendency of models to disproportionately flag comments mentioning protected groups.

Conclusion

The investigation concludes that there is no "silver bullet" for training fair toxicity filters. While fine-tuning on clean data is the gold standard for maximizing overall AUC, it may not be the optimal strategy for minimizing specific types of identity bias. Practitioners must carefully consider which fairness metrics are most critical for their application, as simply boosting accuracy does not guarantee an unbiased system. Future work will explore whether these findings extend to larger generative models and different domains where noisy labels are prevalent.

Summary updated

Abstract

Collecting annotations from human raters often results in a trade-off between the quantity of labels one wishes to gather and the quality of these labels. As such, it is often only possible to gather a small amount of high-quality labels. In this paper, we study how different training strategies can leverage a small dataset of human-annotated labels and a large but noisy dataset of synthetically generated labels (which exhibit bias against identity groups) for predicting toxicity of online comments. We evaluate the accuracy and fairness properties of these approaches, and trade-offs between the two. While we find that initial training on all of the data and fine-tuning on clean data produces models with the highest AUC, we find that no single strategy performs best across all fairness metrics.
BibTeX
@misc{nanda2021empirical,
  author = {Neel Nanda and Jonathan Uesato and Sven Gowal},
  title = {{An Empirical Investigation of Learning from Biased Toxicity Labels}},
  year = {2021},
  eprint = {2110.01577},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.01577},
}
Figure