mlsanityData to 14 Oct 2026

Fairness Testing of Large Language Models in Role-Playing

arXiv 2411.00585 ↗First posted 1 Nov 2024cs.CY cs.AIcited by 11

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

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  2. 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
  3. 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 924
  4. 2019Social Bias Frames: Reasoning about Social and Power Implications of Languagecited by 380
  5. 2019Machine Learning Testing: Survey, Landscapes and Horizonscited by 218
  6. 2024Two Tales of Persona in LLMs: A Survey of Role-Playing and Personalizationcited by 208
  7. 2023"Kelly is a Warm Person, Joseph is a Role Model": Gender Biases in LLM-Generated Reference Letterscited by 199
  8. 2023Gender bias and stereotypes in Large Language Modelscited by 187
  9. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
  10. 2022"I'm sorry to hear that": Finding New Biases in Language Models with a Holistic Descriptor Datasetcited by 162
  11. 2023In-Context Impersonation Reveals Large Language Models' Strengths and Biasescited by 155
  12. 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 137
16 more
  1. 2024Revolutionizing Finance with LLMs: An Overview of Applications and Insightscited by 90
  2. 2024Roleplay-doh: Enabling Domain-Experts to Create LLM-simulated Patients via Eliciting and Adhering to Principlescited by 73
  3. 2024LLM Discussion: Enhancing the Creativity of Large Language Models via Discussion Framework and Role-Playcited by 66
  4. 2022Fairness Testing: A Comprehensive Survey and Analysis of Trendscited by 62
  5. 2024Fairness in Large Language Models: A Taxonomic Surveycited by 58
  6. 2023BiasAsker: Measuring the Bias in Conversational AI Systemcited by 53
  7. 2020Do the Machine Learning Models on a Crowd Sourced Platform Exhibit Bias? An Empirical Study on Model Fairnesscited by 52
  8. 2024What's in a Name? Auditing Large Language Models for Race and Gender Biascited by 51
  9. 2023Not All Countries Celebrate Thanksgiving: On the Cultural Dominance in Large Language Modelscited by 43
  10. 2021NeuronFair: Interpretable White-Box Fairness Testing through Biased Neuron Identificationcited by 42
  11. 2022A Comprehensive Empirical Study of Bias Mitigation Methods for Machine Learning Classifierscited by 30
  12. 2022Fairness-aware Configuration of Machine Learning Librariescited by 28
  13. 2021BiasFinder: Metamorphic Test Generation to Uncover Bias for Sentiment Analysis Systemscited by 24
  14. 2021Fair Enough: Searching for Sufficient Measures of Fairnesscited by 14
  15. 2024Can LLMs Correct Physicians, Yet? Investigating Effective Interaction Methods in the Medical Domaincited by 7
  16. 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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 8; 2026: 3.

11 papers.