Investigating Gender Bias in Large Language Models Through Text Generation

Large Language Models (LLMs) have swiftly become essential tools across diverse applications such as automated content creation, personal writing aids, language translation, and academic writing. However LLMs also raise significant ethical and societal concerns, particularly regarding potential gender biases in the text they produce. This study investigates the presence of gender bias in four Large Language Models (LLMs): ChatGPT 3.5, ChatGPT 4, Llama 2 7B, and Llama 2 13B. By generating a gendered language dataset using these LLMs, focusing on sentences about men and women that include gender-coded words from gender lexicon, we analyze the extent of gender bias in the outputs of these LLMs. Our evaluation is two-fold: we use the generated dataset to train a gender stereotype detection task and measure gender bias in the classifier, and we perform a comprehensive analysis of the LLM generated text at both the sentence and word levels. Gender bias evaluations in classification tasks and lexical content reveal that all the LLMs demonstrate significant gender bias. ChatGPT 4 and Llama 2 13B exhibit the least gender bias, with weak associations between gendered adjectives used and the gender of the person described in the sentence. In contrast, ChatGPT 3.5 and Llama 2 7B exhibit the most gender bias, showing strong associations between the gendered adjectives used and the gender of the person described in the sentence. This study underscores the need for continuous efforts to mitigate gender bias in LLMs to prevent the perpetuation of harmful stereotypes in LLM-generated texts. It also highlights the importance of cautious scrutiny when utilizing LLM-generated text in contexts sensitive to gender issues.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2024-10-01
DOI
https://doi.org/10.5281/zenodo.17019612
Primary Topic
Paleontology and Stratigraphy of Fossils
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Investigating Gender Bias in Large Language Models Through Text Generation

Zenodo (CERN European Organization for Nuclear Research)
Paleontology and Stratigraphy of Fossils
article

Investigating Gender Bias in Large Language Models Through Text Generation

article en

Abstract

Large Language Models (LLMs) have swiftly become essential tools across diverse applications such as automated content creation, personal writing aids, language translation, and academic writing. However LLMs also raise significant ethical and societal concerns, particularly regarding potential gender biases in the text they produce. This study investigates the presence of gender bias in four Large Language Models (LLMs): ChatGPT 3.5, ChatGPT 4, Llama 2 7B, and Llama 2 13B. By generating a gendered language dataset using these LLMs, focusing on sentences about men and women that include gender-coded words from gender lexicon, we analyze the extent of gender bias in the outputs of these LLMs. Our evaluation is two-fold: we use the generated dataset to train a gender stereotype detection task and measure gender bias in the classifier, and we perform a comprehensive analysis of the LLM generated text at both the sentence and word levels. Gender bias evaluations in classification tasks and lexical content reveal that all the LLMs demonstrate significant gender bias. ChatGPT 4 and Llama 2 13B exhibit the least gender bias, with weak associations between gendered adjectives used and the gender of the person described in the sentence. In contrast, ChatGPT 3.5 and Llama 2 7B exhibit the most gender bias, showing strong associations between the gendered adjectives used and the gender of the person described in the sentence. This study underscores the need for continuous efforts to mitigate gender bias in LLMs to prevent the perpetuation of harmful stereotypes in LLM-generated texts. It also highlights the importance of cautious scrutiny when utilizing LLM-generated text in contexts sensitive to gender issues.

Zenodo (CERN European Organization for Nuclear Research)
Technological University Dublin (IE)
Quality Education, Gender equality
Openalex Percentile: Top 16%
Paleontology and Stratigraphy of Fossils
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.