Leveraging Prototypical Representations for Mitigating Social Bias without Demographic Information

Shadi Iskander, Kira Radinsky, Yonatan Belinkov

Introduction

Large language models (LLMs) and encoders frequently inherit and amplify social biases present in their training corpora. A common example is an occupation classifier that associates "nurse" with women and "surgeon" with men, leading to systemic unfairness in downstream applications. While various debiasing techniques exist, the most effective methods typically require explicit demographic labels (e.g., gender or race) for every sample in the training set. In practice, such labels are often unavailable due to privacy regulations, high collection costs, or legal restrictions.

To address this, researchers from Technion have introduced DAFAIR (Demographics-Agnostic Fairness). This method mitigates social bias without requiring demographic labels during training. By leveraging the internal semantic knowledge of pre-trained models, DAFAIR aligns representations with "prototypical" descriptions of social groups to ensure neutrality.

The DAFAIR Framework

The core innovation of DAFAIR is the use of prototypical representations as anchors for fairness. The method operates on the premise that pre-trained models already possess an internal understanding of social categories, which can be harnessed to steer the model toward more equitable behavior.

1. Defining Prototypes

The researchers define pairs of prototypical sentences that represent different social groups. For gender-based debiasing, prototypes might include sentences such as "This is a biography about a man" and "This is a biography about a woman." To ensure robustness and capture a diverse range of perspectives, the authors utilized ChatGPT to generate an ensemble of 10 such pairs.

2. Measuring and Penalizing Bias

During the fine-tuning process, an input (such as a professional biography) is encoded into a vector. DAFAIR calculates the dot-product similarity between this input vector and the vectors of the chosen prototypes.

The "secret sauce" of the method is a Kullback-Leibler (KL) divergence loss term. This loss penalizes the model if the input representation is significantly more similar to one demographic prototype than another. By minimizing this divergence, the model is encouraged to produce neutral representations that are equally similar to all demographic anchors.

3. SEMI-DAFAIR

In scenarios where a very small amount of labeled data (e.g., 100 samples) is available, the authors propose SEMI-DAFAIR. In this extension, prototypes are not derived from text descriptions but are instead created by averaging the representations of the few available labeled samples.

Experimental Evaluation

DAFAIR was evaluated using BERT and DeBERTa-V3 encoders across two primary benchmarks:

  • Bias in Bios: A dataset of 394,000 professional biographies across 28 occupations, where the goal is to predict the occupation while minimizing gender bias.
  • Twitter Sentiment Analysis (DIAL): A dataset of 100,000 tweets used for sentiment prediction. Here, "sociolect" (African American English vs. Standard American English) serves as a proxy for racial identity.

The primary metric for fairness was the True Positive Rate Gap (TPR-GAP), where a lower value indicates a more equitable model across groups.

Results and Analysis

DAFAIR demonstrated significant improvements in fairness with minimal impact on task performance:

  • Superior Fairness Metrics: In the Bias in Bios task using a BERT encoder, DAFAIR reduced the TPR-GAP from 14.66 to 12.29. This outperformed existing demographics-agnostic methods such as JTT (14.19) and BLIND (13.76), which target bias indirectly as a byproduct of model errors.
  • Efficiency and Robustness: The researchers found that using an ensemble of prototypes makes the method robust to specific phrasing. Interestingly, a small number of prototype pairs ($K=4$) was sufficient to achieve substantial bias reduction.
  • Competitive with Labeled Methods: Remarkably, the "Zero-label" DAFAIR often outperformed traditional debiasing methods (like INLP or RLACE) even when those methods were provided with up to 1,000 labeled examples. This suggests that semantic prototypes can be more effective than small, potentially noisy sets of human-annotated labels.
  • Accuracy Trade-off: While debiasing often results in a performance hit, DAFAIR maintained high task accuracy (82.32% compared to the original 83.43% in occupation prediction).

Limitations and Future Directions

Despite its success, DAFAIR has several limitations that provide avenues for future research:

  • Binary Constraints: The current study focuses on binary social attributes (e.g., Male/Female). Future work is needed to extend this framework to multi-group and non-binary social identities.
  • Proxy Limitations: In the Twitter task, the use of sociolect as a proxy for race is an imperfect measure that may introduce its own set of inaccuracies.
  • Prototype Sensitivity: The method relies on the quality of the predefined prototypical texts. While the ensemble approach mitigates this, poorly chosen anchors could reduce the effectiveness of the debiasing.

In conclusion, DAFAIR provides a powerful, label-free alternative for developers looking to mitigate social bias in NLP models, proving that semantic anchoring is a viable path toward fairer machine learning without the need for exhaustive demographic metadata.

Summary updated

BibTeX
@inproceedings{iskander2024leveraging,
  author = {Shadi Iskander and Kira Radinsky and Yonatan Belinkov},
  title = {{Leveraging Prototypical Representations for Mitigating Social Bias without Demographic Information}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-short.33},
}
Figure