Skip to main content
QUICK REVIEW

[Paper Review] Reducing Gender Bias in Word-Level Language Models with a Gender-Equalizing Loss Function

Yusu Qian, Urwa Muaz|arXiv (Cornell University)|May 30, 2019
Topic ModelingComputer Science10 references8 citations
TL;DR

This paper proposes a gender-debiasing method for word-level language models by modifying the loss function to equalize the probabilities of male and female pronouns and occupation terms. The approach reduces gender bias significantly—especially in occupation-related predictions—without substantially increasing perplexity, outperforming existing methods including data augmentation and word embedding debiasing, and achieving state-of-the-art results when combined with counterfactual data augmentation.

ABSTRACT

Gender bias exists in natural language datasets which neural language models tend to learn, resulting in biased text generation. In this research, we propose a debiasing approach based on the loss function modification. We introduce a new term to the loss function which attempts to equalize the probabilities of male and female words in the output. Using an array of bias evaluation metrics, we provide empirical evidence that our approach successfully mitigates gender bias in language models without increasing perplexity. In comparison to existing debiasing strategies, data augmentation, and word embedding debiasing, our method performs better in several aspects, especially in reducing gender bias in occupation words. Finally, we introduce a combination of data augmentation and our approach, and show that it outperforms existing strategies in all bias evaluation metrics.

Motivation & Objective

  • To address gender bias in neural language models that arises from biased training data.
  • To investigate whether bias mitigation can be achieved directly during model training via loss function modification.
  • To evaluate the effectiveness of end-to-end debiasing without relying on pre-processing or word embedding debiasing.
  • To compare the proposed method with existing debiasing strategies, including data augmentation and regularization-based embedding debiasing.
  • To explore the generalizability of the approach to downstream NLP applications.

Proposed method

  • The method introduces a gender-equalizing loss term that penalizes disparities in the predicted probabilities of gendered word pairs (e.g., he/she, father/mother).
  • The loss function is designed to minimize the difference in log-probabilities of gendered words in the model's output distribution.
  • The approach is applied end-to-end during training, adjusting the entire model’s parameters to reduce bias in predictions.
  • The method does not require data augmentation or explicit geometric debiasing of word embeddings.
  • Hyperparameter tuning is performed via random search to optimize the trade-off between bias reduction and perplexity.
  • The method is combined with counterfactual data augmentation (CDA) to further improve performance.

Experimental results

Research questions

  • RQ1Can gender bias in language models be effectively reduced by modifying the loss function during training?
  • RQ2How does loss-based debiasing compare to data augmentation and word embedding debiasing in terms of bias reduction and perplexity?
  • RQ3Does end-to-end debiasing via loss function modification lead to more robust and generalizable bias mitigation than embedding-level techniques?
  • RQ4To what extent does the proposed method reduce bias in occupation-related predictions, a key indicator of gender stereotyping?
  • RQ5Can combining the proposed loss-based method with data augmentation yield superior debiasing performance?

Key findings

  • At a hyperparameter value of λ = 1, the method reduces the occupation bias metric $CB|o$ by 100% and $CB|g$ by 98.52%.
  • The method reduces the gender bias metric $B^{N}$ by 58.95% and $B_{c}^{N}$ by 45.74%.
  • The method reduces the embedding bias metric $EB_{d}$ by 98.98%, outperforming both REG and CDA.
  • The model maintains a balanced gender ratio (GR ≈ 1) across generated texts, indicating effective mitigation of gender imbalance.
  • While perplexity increases slightly with higher λ values, the increase is marginal and does not compromise model utility.
  • The combination of the proposed loss function and counterfactual data augmentation outperforms all individual methods across all bias metrics and maintains low perplexity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.