On Transferability of Bias Mitigation Effects in Language Model Fine-Tuning

Xisen Jin, Francesco Barbieri, Brendan Kennedy, Aida Mostafazadeh Davani, Leonardo Neves, Xiang Ren · DOI

Abstract

Fine-tuned language models often exhibit biases against protected groups. While current mitigation techniques are effective for specific tasks, they require significant resources for every new domain. We explore Upstream Bias Mitigation (UBM), where bias reduction is applied to an upstream model and subsequently transferred to downstream tasks via fine-tuning. Our experiments across hate speech detection, toxicity detection, and coreference resolution demonstrate that UBM effects are indeed transferable, creating fairer downstream models more efficiently.

Introduction

Pretrained language models like BERT and RoBERTa are prone to learning spurious correlations, such as associating specific identity terms with toxicity. Mitigating these biases typically involves task-specific interventions, which are costly due to the need for sensitive attribute labels and specialized expertise. This research investigates a fundamental question: Can bias mitigation be treated as a transferable inductive bias? If a model is "debiased" once on an upstream task, does that fairness persist when it is fine-tuned for a new, unrelated task?

The Upstream Bias Mitigation (UBM) Framework

The authors introduce a two-stage framework designed to "vaccinate" models against bias.

  1. Upstream Stage: A pretrained encoder is fine-tuned on an upstream task using bias mitigation algorithms. Two primary methods are explored: $UBM_{reg}$ (Explanation Regularization), which penalizes the model for relying on spurious keywords, and $UBM_{adv}$ (Adversarial De-biasing), which uses a min-max objective to hide sensitive attributes from an internal discriminator.
  2. Downstream Stage: The debiased encoder is transferred to a downstream task. Crucially, this second stage uses standard fine-tuning without any additional fairness constraints or sensitive labels.
The UBM framework consists of an upstream debiasing stage followed by a downstream fine-tuning stage.

Experimental Evaluation

The study evaluates UBM across three major bias factors: Group Identifier Bias (Hate Speech), AAVE Dialect Bias (Toxicity), and Gender Stereotyping (Occupation Prediction and Coreference Resolution).

Key results indicate that UBM often achieves bias reduction comparable to direct downstream debiasing. For example, in the Gab Hate Corpus (GHC), UBM reduced the False Positive Rate Difference (FPRD) from 35.64 to 34.34, while simultaneously boosting accuracy on the "clean" New York Times (NYT) corpus from 68.55% to 81.40%. This suggests that UBM not only reduces bias but can also improve the model's ability to generalize by discouraging reliance on noisy, biased features.

Analysis: Why Does UBM Work?

To understand the mechanism of transfer, the authors performed a gradient analysis. They found that UBM-trained encoders start the downstream task with significantly lower sensitivity to biased terms.

Gradient analysis comparing vanilla transfer and UBM, showing that UBM models maintain lower sensitivity to biased terms throughout training.

As shown in the figure, the gradients for biased terms remain smaller in UBM models compared to vanilla models. This "fair inductive bias" prevents the model from quickly re-learning spurious correlations during the second fine-tuning stage. Interestingly, the authors found that freezing the encoder weights was less effective than standard fine-tuning, as the latter allows the model to better balance task performance with the preserved fair representations.

Conclusion

Upstream Bias Mitigation (UBM) demonstrates that fairness is a transferable property in language model fine-tuning. By debiasing models at an upstream stage, researchers can create "fair-by-default" encoders that reduce the need for expensive, task-specific interventions. While challenges remain in handling multiple simultaneous biases, UBM represents a significant step toward more scalable and accessible AI fairness.

Summary updated

BibTeX
@inproceedings{jin2021transferability,
  author = {Xisen Jin and Francesco Barbieri and Brendan Kennedy and Aida Mostafazadeh Davani and Leonardo Neves and Xiang Ren},
  title = {{On Transferability of Bias Mitigation Effects in Language Model Fine-Tuning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.296},
}
Figure