NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data-Centric Explainable Debiasing for Improving Fairness in Pre-trained Language Models

Yingji Li, Mengnan Du, Rui Song, Xin Wang, Ying Wang

Abstract

Pre-trained Language Models (PLMs) such as BERT and RoBERTa frequently inherit and amplify social biases present in their training corpora. Traditional debiasing strategies often focus on explicit demographic terms (e.g., "man", "woman"), neglecting "implicit" bias words—seemingly neutral tokens that have acquired spurious associations with specific groups. This paper introduces Data-Debias, a novel framework that leverages explainability techniques and iterative bias amplification to identify and mitigate these hidden associations. Experimental results across multiple benchmarks show that Data-Debias achieves state-of-the-art fairness metrics while preserving or even enhancing model accuracy.

Introduction

The widespread adoption of PLMs has raised significant concerns regarding their fairness. Most "data-centric" debiasing methods rely on counterfactual data augmentation using predefined lists of explicit bias words. However, these methods fail to address implicit bias words: tokens like "physician" or "sensitive" that, while not inherently demographic, carry harmful associations within specific data distributions. Identifying these words is challenging due to their subtle nature and dataset-specific variability.

Methodology

The proposed Data-Debias framework consists of a three-stage pipeline designed to systematically uncover and neutralize implicit biases.

The Data-Debias framework pipeline, illustrating the search for implicit bias words, iterative bias amplification, and final debiasing training.
  1. Searching for Implicit Bias Words: The framework uses Integrated Gradients (IG), a post-hoc explainability method, to calculate feature attribution scores. By swapping demographic contexts (explicit bias words) and measuring the "impact gap" in attribution for other tokens, the system identifies candidates for implicit bias.
  2. Iterative Bias Amplification: To enhance the detectability of subtle biases, the authors utilize a "bias probe"—a smaller model like Tiny-BERT—which is intentionally trained to amplify biased associations. This iterative process makes implicit bias words more prominent for extraction via IG.
  3. Debiasing Training: The target PLM is then fine-tuned using the refined list of implicit bias words. A "bias degree" is calculated for each sample, and a loss function based on Jensen-Shannon Divergence (JSD) is applied to ensure the model produces consistent probability distributions regardless of demographic context.

Experimental Evaluation

The framework was evaluated on three classification tasks: sentiment analysis (SST2), toxicity detection (ToxiGen), and occupation prediction (Bias in Bios). Data-Debias was compared against several competitive baselines, including INLP, CDA, and MABEL, across BERT, DistilBERT, and RoBERTa architectures.

Results and Discussion

Data-Debias consistently outperformed baselines in fairness metrics without the typical trade-off in predictive performance.

Performance and fairness metrics for BERT, DistilBERT, and RoBERTa on the SST2 dataset. Data-Debias (Ours) shows significant improvements in fairness (FR/TR) while maintaining high accuracy.

As shown in the results, Data-Debias achieved a remarkable reduction in the False Ratio/True Ratio (FR/TR)—a metric of prediction inconsistency—on the SST2 task, dropping from 2.45 to 0.39 for BERT. Furthermore, the method demonstrated excellent performance retention; for RoBERTa on SST2, accuracy improved from 92.37% to 93.15% alongside the fairness gains.

A key insight from this work is the effectiveness of small models as "bias probes." Smaller models capture biases more readily, allowing them to serve as a "magnifying glass" for identifying problematic tokens. Additionally, the discovered implicit bias words proved useful as "negative constraints" in prompts for Large Language Models (LLMs) like LLaMA-7B, significantly improving zero-shot fairness.

Conclusion

Data-Debias provides a robust, explainable approach to improving fairness in PLMs by targeting implicit bias words. By combining iterative amplification with attribution-based discovery, the framework effectively "unlearns" spurious associations. Future work will explore extending this methodology to other protected attributes beyond gender and adapting it for generative language tasks.

Summary updated

BibTeX
@inproceedings{li2024data,
  author = {Yingji Li and Mengnan Du and Rui Song and Xin Wang and Ying Wang},
  title = {{Data-Centric Explainable Debiasing for Improving Fairness in Pre-trained Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.226},
}
Figure