SOTAVerified

Assessing Gender Bias in LLMs: Comparing LLM Outputs with Human Perceptions and Official Statistics

2024-11-20Code Available0· sign in to hype

Tetiana Bas

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

This study investigates gender bias in large language models (LLMs) by comparing their gender perception to that of human respondents, U.S. Bureau of Labor Statistics data, and a 50% no-bias benchmark. We created a new evaluation set using occupational data and role-specific sentences. Unlike common benchmarks included in LLM training data, our set is newly developed, preventing data leakage and test set contamination. Five LLMs were tested to predict the gender for each role using single-word answers. We used Kullback-Leibler (KL) divergence to compare model outputs with human perceptions, statistical data, and the 50% neutrality benchmark. All LLMs showed significant deviation from gender neutrality and aligned more with statistical data, still reflecting inherent biases.

Reproductions