Improving Gender Fairness of Pre-Trained Language Models without Catastrophic Forgetting

Zahra Fatemi, Chen Xing, Wenhao Liu, Caiming Xiong

TL;DR

Researchers from the University of Illinois Chicago and Salesforce Research have developed GEEP (GEnder Equality Prompt), a method to debias pre-trained language models (PLMs) without destroying their general intelligence. By freezing the model and only training new, neutral embeddings for specific professions, GEEP achieves state-of-the-art gender fairness while significantly mitigating the "catastrophic forgetting" that plagues traditional fine-tuning methods.

What Problem Does This Paper Address?

Pre-trained language models like BERT and RoBERTa are the workhorses of modern NLP, but they are notorious for absorbing societal biases from their massive web-scale training data. For instance, these models often associate "nurse" with female pronouns and "doctor" with male ones.

The standard fix is a second phase of pre-training (SPPA) on a small, manually curated gender-neutral dataset. However, this creates a "catastrophic forgetting" problem: because the debiasing dataset is small and highly focused, updating all the model's billions of parameters causes it to "forget" the diverse general knowledge it learned originally. This leads to a massive performance drop on standard benchmarks like GLUE, making the "fair" model less useful for real-world applications.

Methods

The authors propose GEnder Equality Prompt (GEEP), a parameter-efficient approach inspired by prompt-tuning.

Instead of updating the entire model, GEEP follows these steps: 1 . Freeze the Model: All original parameters of the pre-trained model (like RoBERTa) are locked and cannot be changed.

  1. Add New Embeddings: The authors identify a set of biased profession names (e.g., "programmer," "housekeeper") and create brand-new, randomly initialized word embeddings for them. These act as "gender equality prompts."
  2. Selective Training: During the second phase of pre-training on gender-neutral data, the model only updates these new profession embeddings.
Figure 1: Difference between SPPA and GEEP methods. Blue boxes represent the parameters of the pre-trained model before any further training and yellow boxes show updated parameters during second-phase pre-training (SPPA). SPPA requires updating all the pre-trained model’s parameters. In contrast, GEEP only adds and updates new embeddings of biased professions such as wpi. Gray boxes are the original embeddings of professions which are not updated/used in second phase pre-training or the training/inference after that.

By re-initializing the profession embeddings, the model effectively "deletes" the old biased representations before training even begins. Because the rest of the model is frozen, the foundational linguistic knowledge remains intact.

Datasets

  • Debiasing Data: A 6.1GB subset of English Wikipedia. The authors filtered for sentences containing professions and created a balanced set by swapping gendered terms (e.g., changing "he" to "she" and vice versa).
  • Fairness Evaluation:
    • Winogender & Winograd Schema Challenge (WSC): Benchmarks for pronoun coreference resolution.
  • Definite Pronoun Resolution (DPR): A corpus for linking pronouns to noun phrases.
  • General Performance Evaluation: The GLUE (General Language Understanding Evaluation) benchmark, consisting of 8 diverse NLP tasks like sentiment analysis and natural language inference.

Key Insights and Ideas

  • Re-initialization is a Shortcut: Traditional methods try to "unlearn" bias by shifting existing weights. GEEP simply throws away the biased profession embeddings and starts fresh, which the authors found to be more effective and faster to converge.
  • Forgetting is a Major Trade-off: The paper empirically proves that full-parameter debiasing (SPPA) causes performance to tank on tasks like CoLA (linguistic acceptability) and RTE (entailment), sometimes by more than 10 points.
  • Efficiency Matters: GEEP only adds about 232k parameters—a mere 0.21% increase for a RoBERTa-base model. This makes it highly practical for organizations that cannot afford to re-train massive models from scratch.

Key Results

GEEP consistently outperformed both the original RoBERTa model and the SPPA baseline across fairness and general tasks.

  • Gender Fairness: On the Winogender dataset, GEEP achieved 64.5% accuracy, significantly higher than the original RoBERTa (50.9%) and the SPPA method (57.3%).
Table 1: Results on Coreference Resolution task.
  • General Performance: While SPPA caused the average GLUE score to drop from 86.5 to 80.2, GEEP maintained a much higher average of 83.3. It essentially "saved" the model from the worst effects of catastrophic forgetting.
Table 2: GLUE results of different models.

Limitations and Future Work

The authors acknowledge a few key limitations:

  • Binary Focus: The study primarily focuses on binary gender (male/female) because existing benchmarks and datasets are largely built around this binary.
  • Scope of Bias: The method currently targets profession-related bias. While this is a major area of concern, other forms of bias (race, religion, etc.) were not addressed.
  • Future Directions: The authors suggest that GEEP could be extended to other fairness issues if the relevant "biased words" can be identified and replaced with neutral prompts. They also highlight the need for more inclusive datasets that cover non-binary gender identities.

Summary updated

Abstract

Existing studies addressing gender bias of pre-trained language models, usually build a small gender-neutral data set and conduct a second phase pre-training on the model with such data. However, given the limited size and concentrated focus of the gender-neutral data, catastrophic forgetting would occur during second-phase pre-training. Forgetting information in the original training data may damage the model's downstream performance by a large margin. In this work, we empirically show that catastrophic forgetting occurs in such methods by evaluating them with general NLP tasks in GLUE. Then, we propose a new method, GEnder Equality Prompt (GEEP), to improve gender fairness of pre-trained models with less forgetting. GEEP freezes the pre-trained model and learns gender-related prompts with gender-neutral data. Empirical results show that GEEP not only achieves SOTA performances on gender fairness tasks, but also forgets less and performs better on GLUE by a large margin.
BibTeX
@inproceedings{fatemi2023improving,
  author = {Zahra Fatemi and Chen Xing and Wenhao Liu and Caiming Xiong},
  title = {{Improving Gender Fairness of Pre-Trained Language Models without Catastrophic Forgetting}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-short.108},
}
Figure