[论文解读] Benchmarking Bias in Large Language Models during Role-Playing
BiasLens 是一个自动化的公平性测试框架,在角色扮演过程中探测 LLM 的偏见,使用 33,000 个 bias-triggering questions,覆盖 11 个人口统计维度,评估六个模型并报道 72,716 个带偏见的响应。作者发布基准测试和脚本以供进一步研究。
Large Language Models (LLMs) have become foundational in modern language-driven 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 introduce BiasLens, a fairness testing framework designed to systematically expose biases in LLMs during role-playing. Our approach uses LLMs to generate 550 social roles across a comprehensive set of 11 demographic attributes, producing 33,000 role-specific questions targeting various forms of bias. These questions, spanning 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 benchmark, we conduct extensive evaluations of six advanced LLMs released by OpenAI, Mistral AI, Meta, Alibaba, and DeepSeek. Our benchmark reveals 72,716 biased responses across the studied LLMs, with individual models yielding between 7,754 and 16,963 biased responses, underscoring the prevalence of bias in role-playing contexts. To support future research, we have publicly released the benchmark, along with all scripts and experimental results.
研究动机与目标
- 评估角色扮演是否会在 LLM 输出中诱发社会偏见。
- 为角色扮演场景开发一个自动化的公平性测试框架(BiasLens)。
- 构建并发布覆盖多个人口统计属性的大规模偏见基准。
- 在六大主流 LLM 上评估偏见的普遍性,并分析角色扮演效应及非确定性。
提出的方法
- 使用 GPT-4o 生成覆盖 11 个人口统计属性的 550 个社会角色。
- 对于每个角色,自动生成 60 个问题(Yes/No、Choice、Why),共 33,000 个问题,后被剪裁至 32,864。
- 设计测试预言器:Yes/No 与 Choice 使用基于规则的;Why 问题采用基于 LLM 的多数投票。
- 对六个 LLM 每个问题查询三次,并通过多数响应(三次中的两次以上)来分类偏见。
- 提供开放基准、脚本和实验结果供公众使用。

实验结果
研究问题
- RQ1RQ1:在角色扮演过程中,BiasLens 在暴露 LLM 偏见方面有多有效?
- RQ2RQ2:BiasLens 暴露的偏见是否经人工评估确认有效?
- RQ3RQ3:当不分配角色时,在角色扮演期间观察到的偏见是否仍然存在?
- RQ4RQ4:LLM 的非确定性如何影响公平性测试结果?
主要发现
- 该基准在六个 LLM 上识别出 72,716 条带偏见的响应。
- 单个模型产生的带偏见响应介于 7,754 和 16,963 条之间。
- 在这六个模型中,Llama-3-8B 显示出最高的偏见计数(16,963)。
- 移除角色扮演陈述可将带偏见的响应平均减少 24.3%。
- 模型偏见水平并不严格与外部排行榜上的总体能力排名保持一致。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。