TL;DR
This paper investigates why debiased language models often "relearn" social biases during downstream fine-tuning. The authors introduce ProSocialTuning, a framework that identifies successfully debiased attention heads and uses PAC-Bayes importance estimation to regularize them, effectively preventing the model from "forgetting" its fairness training while adapting to new tasks.
What Problem Does This Paper Address?
Pretrained Language Models (PLMs) like BERT and RoBERTa are notorious for capturing and amplifying social biases present in their massive training corpora. While researchers have developed "task-agnostic" debiasing methods (like Counterfactual Data Augmentation) to mitigate this before a model is deployed, a frustrating phenomenon occurs: once these debiased models are fine-tuned on specific downstream tasks, the bias often comes roaring back.
The authors identify two main hurdles:
- Language Modeling Degradation: Debiasing can sometimes hurt the model's core ability to understand language.
- Relearning Bias: Models tend to "forget" the debiasing adjustments when exposed to new, potentially biased downstream data.
The paper seeks to understand the mechanics of this "forgetting" and provides a way to make debiasing "stick" during fine-tuning.
Methods
The authors propose a novel framework called ProSocialTuning (Algorithm 1, figure: art_6cf2169bee514f81be51f33bd430f0e3). The approach combines three sophisticated techniques:
- Causal Mediation Analysis (CMA): This is used to "look under the hood" and identify exactly which attention heads in the transformer architecture are responsible for bias. By comparing a model before and after debiasing, they can pinpoint which heads were successfully "fixed."
- PAC-Bayes Training for Importance Estimation: Not all parameters are equally important for a task. The authors use a PAC-Bayes approach to estimate "generalization importance." They inject noise into the parameters; those that can tolerate high noise without affecting performance are deemed less important for generalization.
- Generalization-Guided Regularization: During downstream fine-tuning, the model is trained normally on the new task, but with an added penalty. This penalty prevents the "successfully debiased" attention heads from changing too much. Crucially, the strength of this penalty is weighted by the head's importance to generalization, balancing the trade-off between maintaining fairness and achieving high task accuracy.
Datasets
The researchers evaluated their method across several standard benchmarks:
- Debiasing Corpus: A rebalanced version of the News-commentary v15 dataset.
- Downstream Tasks:
- Jigsaw Unintended Bias in Toxicity Classification: Used primarily to analyze how varying bias levels in data affect the model.
- NLI-bias: A subset of the Stanford Natural Language Inference (SNLI) dataset modified to evaluate gender bias.
- STS-B (Semantic Textual Similarity Benchmark): Part of the GLUE benchmark.
- BiasBios: A dataset for occupation prediction designed to test for gender stereotypes.
- Intrinsic Bias Evaluation: StereoSet, which measures stereotypical bias in language models.
Key Insights and Ideas
- The Empirical Lower Bound: The authors discover that the bias level of a debiased model acts as a practical "lower bound." If your downstream data is biased, the fine-tuned model will almost always be at least as biased as the debiased starting point. (See Figure 1:
art_1e5ebb9e04754136b1fba4c333701bc4). - Bias-Inducing Attention Shift: Through CMA, they visualize how fine-tuning causes a shift in which attention heads drive bias. This "shift" is a clear indicator of the model forgetting its debiasing training. (See Figure 2:
art_9cf0172083e64da9a79edd29d44614df). - Forgetting is the Culprit: The "relearning" of bias isn't just about the new data; it’s a specific instance of catastrophic forgetting. The model prioritizes the new task's objectives and discards the fairness constraints learned during the debiasing phase.
Key Results
ProSocialTuning consistently outperformed standard fine-tuning and other debiasing baselines (like EAR or MABEL) in reducing extrinsic bias while maintaining competitive accuracy.
- Extrinsic Bias Reduction: On the BiasBios task using BERT-base, ProSocialTuning achieved a bias score of 0.003, significantly lower than the 0.013 achieved by standard debiased tuning. (See Table 1:
art_910aaf90462241e4a157502ec3472aec). - Intrinsic Bias Stability: In terms of the StereoSet score (where 50 is ideal), ProSocialTuning kept the model much closer to the debiased baseline compared to standard fine-tuning, which saw bias scores jump by over 1.0 point. (See Table 3:
art_4e93903046b04b56a1a293edef354e10). - Efficiency: The authors note that reducing the number of debiasing epochs (CDA) can improve downstream performance by minimizing the negative impact on language modeling ability. (See Table 2:
art_8ea86b0ea0914782b5183abeb867fe25).
Limitations and Future Work
- Model Scale: The study was limited to BERT and RoBERTa base models. The authors acknowledge that larger models (LLMs) might exhibit different forgetting behaviors and require further study.
- Bias Scope: The paper focuses primarily on gender bias. Future work is needed to see if these insights generalize to other social biases like race or religion.
- Prompt Engineering for CMA: The effectiveness of identifying bias-inducing heads depends on the quality of the prompts used for Causal Mediation Analysis, which currently requires manual design for different tasks.
- Computational Cost: While more efficient than some "in-training" methods, the multi-step process (CMA -> PAC-Bayes -> Regularized Fine-tuning) adds complexity to the standard pipeline.
Summary updated