Fairness Testing of Large Language Models in Role-Playing
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have become foundational in modern language-driven software applications, profoundly influencing daily life. A critical technique in leveraging their potential is role-playing, where LLMs simulate diverse roles to enhance their real-world utility. However, while research has highlighted the presence of social biases in LLM outputs, it remains unclear whether and to what extent these biases emerge during role-playing scenarios. In this paper, we conduct an empirical study on fairness testing of LLMs in role-playing scenarios. To enable this testing, we use LLMs to generate 550 social roles spanning a comprehensive set of 11 demographic attributes, producing 33,000 role-specific questions that target various forms of bias. These questions, covering Yes/No, multiple-choice, and open-ended formats, are designed to prompt LLMs to adopt specific roles and respond accordingly. We employ a combination of rule-based and LLM-based strategies to identify biased responses, rigorously validated through human evaluation. Using the generated questions as the test cases, we conduct extensive evaluations of 10 advanced LLMs. The evaluation reveal 107,580 biased responses across the studied LLMs, with individual models yielding between 7,579 and 16,963 biased responses, underscoring the prevalence of bias in role-playing contexts. To support future research, we have publicly released the dataset, along with all scripts and experimental results.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 28 of its 59 references that are in the map. First posted on arXiv 1 Nov 2024.
Builds on
28 of 59 references.
References · 28
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
- 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 924
- 2019Social Bias Frames: Reasoning about Social and Power Implications of Languagecited by 380
- 2019Machine Learning Testing: Survey, Landscapes and Horizonscited by 218
- 2024Two Tales of Persona in LLMs: A Survey of Role-Playing and Personalizationcited by 208
- 2023"Kelly is a Warm Person, Joseph is a Role Model": Gender Biases in LLM-Generated Reference Letterscited by 199
- 2023Gender bias and stereotypes in Large Language Modelscited by 187
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
- 2022"I'm sorry to hear that": Finding New Biases in Language Models with a Holistic Descriptor Datasetcited by 162
- 2023In-Context Impersonation Reveals Large Language Models' Strengths and Biasescited by 155
- 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 137
16 more
- 2024Revolutionizing Finance with LLMs: An Overview of Applications and Insightscited by 90
- 2024Roleplay-doh: Enabling Domain-Experts to Create LLM-simulated Patients via Eliciting and Adhering to Principlescited by 73
- 2024LLM Discussion: Enhancing the Creativity of Large Language Models via Discussion Framework and Role-Playcited by 66
- 2022Fairness Testing: A Comprehensive Survey and Analysis of Trendscited by 62
- 2024Fairness in Large Language Models: A Taxonomic Surveycited by 58
- 2023BiasAsker: Measuring the Bias in Conversational AI Systemcited by 53
- 2020Do the Machine Learning Models on a Crowd Sourced Platform Exhibit Bias? An Empirical Study on Model Fairnesscited by 52
- 2024What's in a Name? Auditing Large Language Models for Race and Gender Biascited by 51
- 2023Not All Countries Celebrate Thanksgiving: On the Cultural Dominance in Large Language Modelscited by 43
- 2021NeuronFair: Interpretable White-Box Fairness Testing through Biased Neuron Identificationcited by 42
- 2022A Comprehensive Empirical Study of Bias Mitigation Methods for Machine Learning Classifierscited by 30
- 2022Fairness-aware Configuration of Machine Learning Librariescited by 28
- 2021BiasFinder: Metamorphic Test Generation to Uncover Bias for Sentiment Analysis Systemscited by 24
- 2021Fair Enough: Searching for Sufficient Measures of Fairnesscited by 14
- 2024Can LLMs Correct Physicians, Yet? Investigating Effective Interaction Methods in the Medical Domaincited by 7
- 2024"A Woman is More Culturally Knowledgeable than A Man?": The Effect of Personas on Cultural Norm Interpretation in LLMscited by 5
Built on by
Citing papers per year: 2025: 8; 2026: 3.
11 papers.
- 2025Riddle Me This! Stealthy Membership Inference for Retrieval-Augmented Generationcited by 26
- 2025VisBias: Measuring Explicit and Implicit Social Biases in Vision Language Modelscited by 14
- 2025Evaluating LLM Adaptation to Sociodemographic Factors: User Profile vs. Dialogue Historycited by 5
- 2025Can LLMs Reason Structurally? Benchmarking via the Lens of Data Structurescited by 5
- 2025BiasCause: Evaluate Socially Biased Causal Reasoning of Large Language Modelscited by 2
- 2025Relative Bias: A Comparative Framework for Quantifying Bias in LLMscited by 2
- 2025PapersPlease: A Benchmark for Evaluating Motivational Values of Large Language Models Based on ERG Theorycited by 1
- 2025"As Eastern Powers, I will veto." : An Investigation of Nation-level Bias of Large Language Models in International Relationscited by 1
- 2026Identifying and Mitigating Gender Cues in Academic Recommendation Letters: An Interpretability Case Studycited by 1
- 2026StereoTales: A Multilingual Framework for Open-Ended Stereotype Discovery in LLMscited by 0
- 2026Alignment by Stereotyping: How LLMs Sacrifice Individual Distinctiveness for Cultural Adaptationcited by 0
- 2026Alignment by Stereotyping: How LLMs Sacrifice Individual Distinctiveness for Cultural Adaptation5 Sep 2026
- 2026StereoTales: A Multilingual Framework for Open-Ended Stereotype Discovery in LLMs11 May 2026
- 2026Identifying and Mitigating Gender Cues in Academic Recommendation Letters: An Interpretability Case Study14 Apr 2026
- 2025"As Eastern Powers, I will veto." : An Investigation of Nation-level Bias of Large Language Models in International Relations12 Nov 2025
- 2025PapersPlease: A Benchmark for Evaluating Motivational Values of Large Language Models Based on ERG Theory27 Jun 2025
- 2025Can LLMs Reason Structurally? Benchmarking via the Lens of Data Structures29 May 2025
- 2025Evaluating LLM Adaptation to Sociodemographic Factors: User Profile vs. Dialogue History27 May 2025
- 2025Relative Bias: A Comparative Framework for Quantifying Bias in LLMs22 May 2025
- 2025BiasCause: Evaluate Socially Biased Causal Reasoning of Large Language Models8 Apr 2025
- 2025VisBias: Measuring Explicit and Implicit Social Biases in Vision Language Models10 Mar 2025
- 2025Riddle Me This! Stealthy Membership Inference for Retrieval-Augmented Generation1 Feb 2025