Evaluating Gender Bias of LLMs in Making Morality Judgements

Divij Bajaj, Yuanyuan Lei, Jonathan Tong, Ruihong Huang

Introduction

As Large Language Models (LLMs) are increasingly integrated into decision-support systems, content moderation, and virtual assistants, their "moral compass" has become a matter of public safety. While previous research has documented gender bias in occupations and emotions, the intersection of gender and morality remains under-explored. This research, presented at EMNLP 2024, investigates how gender influences the moral evaluations assigned by LLMs. By introducing a new parallel dataset, the researchers demonstrate that simply swapping "he" for "she" can cause a model to flip its moral judgment, consistently showing a systemic bias that favors female characters with more empathetic or lenient evaluations.

Methodology

The authors employed a rigorous pipeline to isolate gender as the sole variable in moral reasoning:

  1. Two-Pass Filtering: Scenarios from existing datasets were scanned using GPT-3.5-turbo-instruct to identify "subtle" moral dilemmas where model stances were prone to change.
  2. Parallel Story Generation: The researchers created the GenMO dataset by taking these scenarios and creating identical pairs—one with a male protagonist and one with a female protagonist.
  3. Human-in-the-loop Validation: Human annotators corrected AI-generated swaps to ensure that names, pronouns, and supporting character genders were handled consistently without introducing unwarranted context.
  4. Evaluation: Models were tested using both standard zero-shot prompting and Chain-of-Thought (CoT) prompting to see if step-by-step reasoning reduced bias.

The GenMO Dataset

The study introduced GenMO (Gender bias in Morality Opinions), which consists of 908 parallel story pairs (1,816 total stories). These stories were curated from three primary sources: Moral Stories, ETHICS, and Social Chemistry 101. Each pair is categorized into specific environments: Family, Work, Relationship, or Other.

Distribution of stories across sources and categories in the GenMO dataset.

Key Results and Analysis

The evaluation revealed that all major models (including GPT-4, Llama 3, and Claude 3) exhibit significant gender bias, consistently providing "softer" moral judgments for female characters in identical scenarios.

The Empathy Gap

Models are systematically more lenient toward female characters. When a model gave different answers for the same story pair, it favored the female character between 63% and 88% of the time. Mistral-7B showed the strongest directional bias, favoring the female character in 88.42% of its mismatched cases. GPT-3.5-turbo was the most inconsistent, with a 24% Prediction Mismatch Rate (PMR).

Detailed model performance metrics including Prediction Mismatch Rate (PMR), Female Bias Rate (FBR), and domain-specific bias.

Contextual Sensitivity and Scaling

Bias is not uniform across life's domains; it is most prominent in Relationship and Family settings, where traditional gender stereotypes regarding empathy are strongest, and least prominent in Work settings.

Interestingly, the study found a Scaling Paradox: larger models aren't necessarily fairer. In the Llama 3.1 family, the 70B model showed more than double the bias of the 8B variant (0.1244 vs 0.0572 PMR). This suggests that as models ingest more data, they may more effectively amplify societal stereotypes.

Impact of Chain-of-Thought

While Chain-of-Thought (CoT) prompting helped smaller models stay more consistent, it did not eliminate the underlying inclination toward one gender. Models often maintained their biased stance even when forced to reason through the scenario step-by-step.

Limitations and Future Work

The authors acknowledge several constraints, including a focus on binary gender and a reliance on GPT-3.5 for initial filtering. Future work is needed to include non-binary identities and to develop mitigation strategies that focus on training models on more balanced datasets to prevent the reinforcement of these "collective mindset" biases.

Summary updated

BibTeX
@inproceedings{bajaj2024evaluating,
  author = {Divij Bajaj and Yuanyuan Lei and Jonathan Tong and Ruihong Huang},
  title = {{Evaluating Gender Bias of LLMs in Making Morality Judgements}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.928},
}
Figure