[Paper Review] Evaluating Gender Bias in Natural Language Inference
This paper proposes a challenge task to evaluate gender bias in natural language inference (NLI) models by pairing gender-neutral premises with gender-specific hypotheses, revealing that BERT, RoBERTa, and BART exhibit significant gender-stereotypical prediction errors. Data augmentation to ensure gender-balanced training data effectively reduces bias with minimal performance drop.
Gender-bias stereotypes have recently raised significant ethical concerns in natural language processing. However, progress in detection and evaluation of gender bias in natural language understanding through inference is limited and requires further investigation. In this work, we propose an evaluation methodology to measure these biases by constructing a challenge task that involves pairing gender-neutral premises against a gender-specific hypothesis. We use our challenge task to investigate state-of-the-art NLI models on the presence of gender stereotypes using occupations. Our findings suggest that three models (BERT, RoBERTa, BART) trained on MNLI and SNLI datasets are significantly prone to gender-induced prediction errors. We also find that debiasing techniques such as augmenting the training dataset to ensure a gender-balanced dataset can help reduce such bias in certain cases.
Motivation & Objective
- To investigate whether state-of-the-art NLI models exhibit gender bias in their predictions, particularly in relation to occupational stereotypes.
- To develop a targeted evaluation methodology using a challenge task that pairs gender-neutral premises with gender-specific hypotheses to detect bias.
- To assess the effectiveness of data augmentation as a debiasing technique in reducing gender bias in fine-tuned NLI models.
- To determine whether bias originates from the NLI training data or the pre-training data of the models.
- To establish a baseline for evaluating and mitigating gender bias in NLI systems.
Proposed method
- Construct a challenge task by creating paired sentence instances where a gender-neutral premise is matched with two hypotheses differing only in gendered occupational terms (e.g., 'nurse' vs. 'doctor').
- Use existing NLI datasets (SNLI, MNLI, ANLI, QNLI) and fine-tune BERT, RoBERTa, and BART on them to evaluate model behavior on the challenge pairs.
- Measure bias through prediction differences: a model is considered biased if it assigns different labels (entailment/neutral/contradiction) to hypotheses differing only in gendered occupation.
- Apply rule-based gender swap augmentation to the training data to create gender-balanced versions of the datasets, then fine-tune models on these augmented sets.
- Evaluate model performance on both original and augmented datasets using metrics like accuracy (Acc), bias score (B), and prediction difference (ΔP).
- Compare model behavior before and after debiasing to assess the impact of data augmentation on bias reduction and performance retention.
Experimental results
Research questions
- RQ1Do state-of-the-art NLI models exhibit gender bias in their predictions when presented with gender-stereotypical occupational roles?
- RQ2To what extent does data augmentation that ensures gender balance in training data reduce gender bias in NLI models without degrading performance?
- RQ3Is the source of gender bias in NLI models primarily from the fine-tuning dataset or the pre-training data?
- RQ4How do different pre-trained models (BERT, RoBERTa, BART) respond to the same gendered hypothesis pairs in terms of prediction consistency?
- RQ5Can a simple data augmentation technique effectively mitigate gender bias in NLI models across multiple benchmark datasets?
Key findings
- BERT, RoBERTa, and BART models fine-tuned on MNLI and SNLI datasets exhibit significant gender-stereotypical prediction errors, with BERT showing a 35.02% bias score on MNLI and 30.01% on SNLI.
- The models' predictions are inconsistent when the same premise is paired with gendered hypotheses, indicating that they reflect societal occupational stereotypes.
- Data augmentation to ensure gender balance in the training data reduces bias in BERT, with a drop in bias score from 35.02% to 14.60% on MNLI and from 30.01% to 19.99% on SNLI.
- The debiasing approach maintains high performance, with BERT's accuracy on MNLI dropping only from 84.04% to 82.53% after augmentation.
- RoBERTa and BART also show slight improvements in bias metrics after augmentation, indicating that gender-balanced data helps even when the primary bias source is pre-training data.
- The results suggest that bias in model predictions closely mirrors real-world gender distributions in occupations, confirming that models internalize and reflect social stereotypes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.