Towards Understanding Task-agnostic Debiasing Through the Lenses of Intrinsic Bias and Forgetfulness

Guangliang Liu, Milad Afshari, Xitong Zhang, Zhiyu Xue, Avrajit Ghosh, Bidhan Bashyal, Rongrong Wang, Kristen Marie Johnson

Abstract

While task-agnostic debiasing provides notable generalizability and reduced reliance on downstream data, its impact on language modeling ability and the risk of relearning social biases from downstream task-specific data remain as the two most significant challenges when debiasing Pretrained Language Models (PLMs). The impact on language modeling ability can be alleviated given a high-quality and long-contextualized debiasing corpus, but there remains a deficiency in understanding the specifics of relearning biases. We empirically ascertain that the effectiveness of task-agnostic debiasing hinges on the quantitative bias level of both the task-specific data used for downstream applications and the debiased model. We empirically show that the lower bound of the bias level of the downstream fine-tuned model can be approximated by the bias level of the debiased model, in most practical cases. To gain more in-depth understanding about how the parameters of PLMs change during fine-tuning due to the forgetting issue of PLMs, we propose a novel framework which can Propagate Socially-fair Debiasing to Downstream Fine-tuning, ProSocialTuning. Our proposed framework can push the fine-tuned model to approach the bias lower bound during downstream fine-tuning, indicating that the ineffectiveness of debiasing can be alleviated by overcoming the forgetting issue through regularizing successfully debiased attention heads based on the PLMs’ bias levels from stages of pretraining and debiasing.

Introduction

Pretrained Language Models (PLMs) like BERT and RoBERTa are known to absorb societal biases from their massive training corpora. While researchers have developed "task-agnostic" debiasing methods to clean these models before deployment, a frustrating phenomenon occurs: when these "clean" models are fine-tuned for specific tasks (like sentiment analysis or document classification), they often relearn the very biases they were supposed to have lost. This paper addresses two primary hurdles: the trade-off between debiasing and language modeling performance, and the "forgetting issue," where models prioritize new task learning over previously established fairness constraints.

Methodology: ProSocialTuning

The authors propose ProSocialTuning, a framework designed to preserve fairness during downstream adaptation. The pipeline consists of three stages:

  1. Identifying "Bias Heads": Using Causal Mediation Analysis (CMA), the framework pinpoints specific attention heads responsible for biased predictions (e.g., gendered occupational associations).
  2. Measuring Importance: Utilizing PAC-Bayes training, the system estimates "generalization importance" to identify model components critical for downstream task performance.
  3. Generalization-guided Regularization: During fine-tuning, the model is regularized to remain close to the debiased versions of identified attention heads, particularly those important for generalization.

Empirical Observations and the Bias Lower Bound

Through extensive testing on benchmarks like StereoSet, MultiNLI, SNLI, and BiasBios, the researchers identified a "Bias Lower Bound." Empirically, a fine-tuned model will typically be at least as biased as the debiased model it originated from. As shown in Figure 1, as dataset size or the portion of biased samples increases, models tend to revert toward their original pretrained bias levels, highlighting the challenge of catastrophic forgetting in the context of fairness.

StereoSet scores across different datasets and portions of biased samples, illustrating the bias lower bound and the relearning of bias during fine-tuning.

Key Insights: Attention Head Dynamics

A critical finding is the "Bias-Inducing Attention Shift." Visualization of attention heads reveals that heads successfully debiased in the task-agnostic phase often revert to their original, biased states during fine-tuning. ProSocialTuning treats fairness as a structural constraint on the model's architecture to counter this shift.

Heatmaps of attention heads across different model states, showing how debiasing affects specific heads and how they shift during downstream fine-tuning.

Results

ProSocialTuning consistently outperformed standard fine-tuning and other state-of-the-art debiasing methods (like EAR or MABEL):

  • Lower Bias: On the BiasBios task, ProSocialTuning achieved a bias score of .003, significantly lower than the .013 of standard debiased fine-tuning.
  • Maintaining Accuracy: The method remained competitive in performance; for instance, on NLI-bias, it maintained an accuracy of .747, compared to a vanilla baseline of .795.
  • Intrinsic Fairness: StereoSet evaluations confirmed that ProSocialTuning kept the model's internal bias score closer to the ideal mark of 50 compared to other methods that saw bias spikes during fine-tuning.

Limitations and Future Work

The study focused on smaller PLMs like BERT and RoBERTa due to hardware constraints; the dynamics may differ in massive models with billions of parameters. Additionally, the Causal Mediation Analysis currently relies on specific occupational prompts, which may need expansion for other bias types (e.g., race or religion). Future work will explore extending this framework to generative models and other safety alignment techniques like Direct Preference Optimization (DPO).

Summary updated

BibTeX
@inproceedings{liu2024towards,
  author = {Guangliang Liu and Milad Afshari and Xitong Zhang and Zhiyu Xue and Avrajit Ghosh and Bidhan Bashyal and Rongrong Wang and Kristen Marie Johnson},
  title = {{Towards Understanding Task-agnostic Debiasing Through the Lenses of Intrinsic Bias and Forgetfulness}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=pq7fwCwzDc},
}
Figure