Leading and non-leading prompts: Quantifying gender bias in Large Language Models through BiasBloom corpus
The increasing use of Artificial Intelligence by non-experts underscores the need to address biases in its outputs, particularly in gendered languages like Spanish, where linguistic features reflect gender. This paper proposes a validated methodology to quantify gender bias in text generated by Large Language Models (LLMs) in Spanish. The approach involves creating gendered seed-word lists, building a Spanish-specific corpus using curated prompts, and analyzing gender polarity and co-occurrences within the generated text. Validated using five state-of-the-art LLMs—GPT-3.5, GPT-4o, Llama 3, Gemini 1.5, and Mixtral8x7b—this study provides a systematic framework for bias detection in Spanish and highlights differences in model performance. By addressing the challenges of bias in gendered languages, this research aims to contribute to the development of equitable AI systems and advances methodologies for bias quantification. The findings highlight gender disparities in LLMs, with masculine and feminine biases shifting depending on the discourse structure. Specifically, the analysis reveals a prevalence of masculine biases in non-leading prompts and feminine biases in leading prompts, underscoring the nuanced ways in which prompt positioning can influence gender representation in model outputs. • Methodology to quantify and analyze gender bias in Spanish language. • Analysis of gender bias in a corpus generated by LLMs. • Creation of resources in Spanish: seed-word lists and BiasBloom corpus. • Analysis of the text generated by different state-of-the-art. • Effective results in detecting and quantifying gender bias.
Authors
- Juan Pablo Consuegra‐Ayala (ORCID: https://orcid.org/0000-0003-2009-393X)
- Paloma Moreda (ORCID: https://orcid.org/0000-0002-7193-1561)
- Victoria Muñoz-García (ORCID: https://orcid.org/0009-0001-5834-9374)
Institutions
- University of Alicante (ES)
Publication Details
- Journal
- Knowledge-Based Systems
- Published
- 2025-06-19
- DOI
- https://doi.org/10.1016/j.knosys.2025.113915
- Primary Topic
- Hate Speech and Cyberbullying Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00