Abstract
Pretrained Language Models (PLMs) often mirror and amplify societal biases present in their training data, leading to unfair text generation. While existing debiasing techniques like data augmentation or linear geometric projections exist, they frequently struggle with maintaining linguistic fluency or capturing the non-linear nature of neural representations. This paper introduces a novel post-hoc debiasing framework that minimizes the mutual information between sentence semantics and demographic attributes. By utilizing an importance sampling objective, the method achieves significant fairness gains without the computational burden of online generation or the degradation of model perplexity.
Introduction
Large-scale Pretrained Language Models (PLMs), such as GPT-2, have revolutionized natural language processing. However, because these models are trained on massive, uncurated datasets from the internet, they inevitably inherit human prejudices. A common manifestation of this is "demographic bias," where the model associates specific professions or traits with particular genders (e.g., associating "doctor" with men and "nurse" with women).
Addressing this issue is challenging because of the "fairness-fluency trade-off." Aggressive debiasing can lead to "catastrophic forgetting," where the model loses its grasp on basic grammatical constraints—such as pronoun consistency—resulting in text that is fair but nonsensical. This research proposes a method to decouple what a sentence says (its semantics) from who it is about (demographic polarity), ensuring that the content of the generation remains independent of the subject's gender.
The Limitations of Current Approaches
Existing solutions generally fall into two categories, both of which have significant drawbacks:
- Data Augmentation: This involves swapping gendered terms (e.g., "he" to "she") in the training set. However, this often results in ungrammatical sentences because language is not always perfectly symmetrical, leading to a drop in the model's overall quality.
- Geometric Projection: Methods like Iterative Null-space Projection (INLP) attempt to remove bias by projecting word embeddings away from a "bias direction." These methods assume that bias is linearly encoded in the vector space. In complex, deep neural networks, bias is often non-linearly distributed, making linear projections insufficient.
Methodology
Mutual Information Minimization
The core of the proposed framework is the minimization of Mutual Information (MI) between the hidden states of the model (representing sentence semantics) and the demographic polarity of the subject. By reducing MI, the researchers ensure that the model's internal representation of a description (e.g., "is a highly skilled surgeon") contains no information that would allow a classifier to predict the gender of the subject.
Efficiency via Importance Sampling
Directly estimating MI during training is computationally prohibitive for generative models because it typically requires generating a vast number of sequences at every step to approximate the distribution. To circumvent this "sequential generation bottleneck," the authors employ Importance Sampling. They use a static, natural language corpus as a reference and apply a likelihood ratio to estimate how the current model would have generated those sentences. This allows the model to learn from fixed data while effectively optimizing the MI objective, making the training process both stable and efficient.
Residual Debiasing and Targeted Distillation
To preserve the underlying power of the PLM, the authors use a Residual Debiasing approach. Instead of fine-tuning the entire GPT-2 model, they add a small, trainable residual layer on top of the frozen original parameters.
Furthermore, to maintain fluency, they implement Targeted Distillation. Standard distillation might force the model to retain its original biased probabilities. Instead, this method only distills the probability of "demographic-sensitive words" (like pronouns). This ensures the model maintains internal consistency—matching "She" with "her"—while allowing the rest of the vocabulary to be reshuffled to eliminate stereotypical associations.
Experimental Results
The framework was evaluated using the BOLD (Bias in Open-Ended Language Generation) dataset for fairness and Wiki-text for perplexity (PPL).
- Fairness Improvements: On the BOLD dataset, the proposed method achieved an average fairness score ($F_{ngram}$) of 0.837, a dramatic improvement over the baseline GPT-2 score of 0.421.
- Fluency Preservation: Unlike many competing methods that cause a significant spike in perplexity, this approach maintained a PPL of 31.39, remarkably close to the original model's 29.37.
- Qualitative Consistency: Analysis of generated samples showed that the model successfully avoided "pronoun mismatching," a common failure mode where a model starts a sentence with one gendered pronoun and switches to another mid-way through.
Discussion and Future Work
The success of this method highlights that social bias is deeply and non-linearly embedded in PLMs, and that information-theoretic approaches are well-suited to address it. By decoupling semantics from demographics, the model can generate diverse content without being tethered to historical stereotypes.
However, the authors note several limitations. The current study focuses on English and a binary definition of gender polarity based on word frequency. Future research will need to extend this framework to multi-lingual contexts and more complex, non-binary demographic groups (such as race or religion) where sensitive word lists are less clearly defined. Additionally, exploring more subtle, coded forms of bias that go beyond simple word associations remains a critical next step for the field.
Summary updated