Skip to content

First-person fairness in chatbotsFirst-Person Fairness in Chatbots

arXiv· arXiv:2410.19803· ICLR 2025· Tyna Eloundou, Alex Beutel, David G. Robinson, Keren Gu-Lemberg, Anna-Luisa Brakman, Pamela Mishkin, Meghan Shah, Johannes Heidecke, Lilian Weng, Adam Tauman Kalai·Indexed by this site · 27 days ago· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors used LMRA to conduct a name-counterfactual fairness evaluation of 6 models on millions of real chats, reporting that the harmful gender stereotype rate is below 0.1%, and that RL post-training can reduce bias.

Questions
Chatbots have open and diverse uses, so traditional algorithmic fairness concepts aimed at institutional decision-making do not apply; the authors focus on "first-person fairness", i.e., chatbots' fairness toward users, specifically studying gender and race bias associated with usernames.
Methods
Using GPT-4o as the LMRA, real prompts are stratified into 9 domains and 66 tasks; answers are regenerated to the same prompt with names associated with different demographics, and evaluated with three methods: response quality difference, harmful stereotype net score, and difference-axis enumeration, cross-validated with crowdsourced human ratings.
Experiments and results
On random chats, each model's harmful gender stereotype net score is below 0.1%, but there is large variation across tasks, with write a story highest; GPT-3.5-turbo exceeds 2% on that task. Gender scores correlate 0.86 with human ratings, while race and characteristic label correlations are weaker. The authors state that RL post-training reduced bias to a fraction of its original level.
Limitations and future work
The authors note: name counterfactuals cannot capture differences in writing style and topic; only English, binary gender, four races, and text chat are covered; LMRA may miss biases that humans can detect. The experiments cover 6 models, 2 genders, 4 races, and 66 tasks, with human validation of about 50 sample pairs per group.
Experimental setupGPT-3.5 turbo、GPT-4 turbo et al. · ChatGPT 私有聊天数据(1.1M 英文提示词语料)、LMSYS et al. · 有害刻板印象净评分 H(A,B)(forward 减 reverse)、响应质量九维度评分 et al.
Evaluated models
GPT-3.5 turboGPT-4 turboGPT-4oGPT-4o minio1-previewo1-mini
Benchmarks
ChatGPT 私有聊天数据(1.1M 英文提示词语料)LMSYSWildChat
Metrics
有害刻板印象净评分 H(A,B)(forward 减 reverse)响应质量九维度评分差异轴占比LMRA 与人工评分的 Pearson 相关系数及符号一致率
AI summaryThe paper proposes a scalable counterfactual method for evaluating the first-person fairness of chatbots with respect to user demographic characteristics. The method uses a language model as a research assistant (LMRA) to quantitatively measure harmful stereotypes and qualitatively analyze demographic group differences in responses. The authors applied the method to six language models they developed, covering millions of interactions, 66 tasks across 9 domains, involving two genders and four races; independent human annotation corroborated LMRA's bias evaluation results. The authors state that this is the first large-scale fairness evaluation based on real chat data, and find that post-training reinforcement learning techniques can significantly mitigate such bias; the evaluation provides a practical method for continuous bias monitoring and mitigation.

The paper proposes a scalable counterfactual method for evaluating the first-person fairness of chatbots with respect to user demographic characteristics. The method uses a language model as a research assistant (LMRA) to quantitatively measure harmful stereotypes and qualitatively analyze demographic group differences in responses. The authors applied the method to six language models they developed, covering millions of interactions, 66 tasks across 9 domains, involving two genders and four races; independent human annotation corroborated LMRA's bias evaluation results. The authors state that this is the first large-scale fairness evaluation based on real chat data, and find that post-training reinforcement learning techniques can significantly mitigate such bias; the evaluation provides a practical method for continuous bias monitoring and mitigation.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to evaluate chatbot bias associated with the demographics of users' (first-person) names on large-scale real chat data.

    Core question: how to evaluate the fairness of general-purpose chatbots toward users themselves (first-person fairness) in open, diverse real-world usage scenarios, especially gender and race bias associated with user names.

    • Setting and motivation: Billions of people use chatbots to write resumes, answer technical questions, and write stories, whereas AI ethics research mostly focuses on institutional decision-making scenarios (resume screening, loans, sentencing) or artificial bias problems; open-ended chat has diverse uses and open-ended outputs, making harm difficult to evaluate.
    • Shortcomings of existing methods: The authors argue that common fairness notions such as statistical parity apply only to scenarios with categorical decisions and not to open-ended chat; bias research on decision-making tasks cannot represent chat scenarios (Appendix F shows that the two types of prompt embeddings are 99.7% separable).
    • Core observation: Chatbots such as ChatGPT can obtain user names through mechanisms such as Memory and Custom Instructions (about 15% of chats have access to a user name when writing), and names are associated with demographic information such as gender and race, which may introduce subtle bias that reinforces stereotypes; because responses are random, the bias is statistical in nature.
    • The paper proposes: A scalable counterfactual evaluation method—using a Language Model Research Assistant (LMRA) to quantitatively evaluate response pairs regenerated from the same prompt with different names, covering 6 models, 9 domains and 66 tasks, 2 genders and 4 races, and millions of interactions, corroborated by independent human annotation.
    • Evaluation target (not attack/defense, no threat model): What is evaluated is the difference in responses of 6 language models from the authors' institution in real chats; the evaluators care about three categories: differences in response quality, harmful stereotypes, and general differences.
  2. What related research exists?

    Related work is divided by task type into bias research on decision-making, language/QA, and open-ended generation, plus two groups on name bias and related analysis techniques.

    Names as bias proxies

    • Bertrand and Mullainathan (2004)—a classic social science experiment: in fictitious job applications, white-sounding names received a 50% higher callback rate than Black-sounding names; this paper's method follows this renaming tradition.
    • Abid et al. (2021)—a survey found that members of the Muslim community consider names to be one of the most important factors in LLMs evaluating them unfairly, and observed bias against Muslim names in GPT-4, Llama 2, and Mistral.
    • Romanov et al. (2019), Tamkin et al. (2023), Nghiem et al. (2024), etc.—evaluate bias in language models using counterfactual renaming, but the paper notes that such methods have not yet been applied to open-ended chat tasks.

    Bias in decision-making tasks

    • Tamkin et al. (2023)—report an approximately 34% pro-female advantage in decision-making scenarios; Nghiem et al. (2024)—find salary recommendations differing by up to 5% across groups; Bai et al. (2024), Haim et al. (2024)—report decision bias in models such as GPT-4.
    • Morehouse et al. (2024)—find that GPT-4 encodes bias but that it has little effect in decision-making scenarios such as evaluating cover letters; Goh et al. (2023)—find that ChatGPT-assisted clinical decisions did not introduce or exacerbate race or gender bias.

    Bias in language/QA and open-ended generation tasks

    • Kotek et al. (2023)—report that LLMs are 3–6 times more likely to choose occupations consistent with gender stereotypes in coreference resolution; Zhao et al. (2018), Parrish et al. (2022), etc.—coreference resolution and QA bias benchmarks.
    • Sheng et al. (2019), Dhamala et al. (2021), FairPair (Dwivedi-Yu et al., 2024), Cheng et al. (2023b)—study open-ended generation bias using templated synthetic prompts; the paper notes that its difference from them is the use of real chat prompts rather than templates.
    • Poole-Dayan et al. (2024)—find that GPT-4 answers less accurately for users with lower English proficiency or lower education, and discuss the effect of the Memory feature on bias.

    Related analysis techniques

    • Ouyang et al. (2023)—use related techniques to build a hierarchy of chat domains and task types, which inspired this paper's hierarchy generation; the paper notes the differences: it does not study bias, uses only public chats, and its task types are broader and thus less suitable for explaining bias in specific contexts. Tamkin et al. (2024)'s Clio performed a similar large-scale analysis of Claude usage patterns.
    • Zhong et al. (2022), Findeis et al. (2024)—use LLMs to describe differences between text distributions, which inspired this paper's bias enumeration algorithm; Zou et al. (2015) used crowdsourcing for a similar process.

    Positioning: The authors state that this paper is the first large-scale fairness evaluation based on real chat data, complementary to decision-making or template-based bias research, and focused on first-person bias based on user names in real chats.

  3. How does the paper address this problem?

    Use LMRA to build a task hierarchy, regenerate responses to the same prompt with swapped names, and evaluate with three methods: quality difference, harmful stereotype net score, and difference-axis enumeration.

    Overall approach: stratify real chat prompts by domain and task, regenerate responses to the same prompt using names associated with different demographics (counterfactual), use LMRA (Language Model Research Assistant) to perform bias annotation and explanation at scale, and then validate LMRA's reliability with human crowdsourcing.

    Problem setting and formalization

    • Only the first user message (prompt) of each chat is taken, and fairness is evaluated pairwise with respect to two groups A and B (e.g., female/male, Black/White, Asian female/Asian male); each group has a finite, disjoint name set.
    • The chatbot is a randomized algorithm that takes a name and a prompt as input and outputs a response; bias must be measured over the response distribution (Figure 2 shows that changing the name changes the response distribution, and that the distribution is sensitive to prompt wording).
    • Names are passed in through two mechanisms: Memory and Custom Instructions (CI, using a "My name is X"-style profile in the experiments); the paper states that the harmful gender bias computed under the two mechanisms is highly correlated (r=0.97).

    Domain and task hierarchy construction

    • LMRA first labels prompts with domains, keeps the 20 most frequent, and humans select 9 coherent, non-overlapping domains from them; LMRA then identifies tasks within domains and refines them into a final taxonomy, totaling 9 domains and 66 tasks (Appendix A gives the full list and LMRA instructions).
    • Category design goals: interpretable, able to cover task-specific bias, and common; the authors state that specificity and coverage conflict and that they made a pragmatic trade-off.

    Three evaluation methods

    • Response quality differences: LMRA scores responses on 9 criteria such as Quality, Relevance, and Accuracy (1–5) and evaluates refusal rates; instructions are in Figure 20 of Appendix E.
    • Harmful stereotype pairs: LMRA judges whether a pair of responses perpetuates an A–B stereotype and in which direction (Figure 3 template, hiding which response was given to which group to reduce over-sensitivity); the net score is H(A,B) := Ex∼ϕ[hF(x,A,B) − hR(x,A,B)], i.e., the forward stereotype rate minus the reverse rate, to subtract pseudo-stereotypes caused by random fluctuation; each response pair is evaluated once in each order to mitigate order bias, using single-token probabilities.
    • Bias Enumeration Algorithm: Four steps—Feature Brainstorming (each time take k=7 prompt-response pairs and have LMRA propose candidate difference features, iterated t times), Consolidation (rewrite uniformly as "Which model…" questions and deduplicate/merge), Labeling (LMRA labels every response pair for each feature), Feature Selection (retain statistically significant features after Bonferroni correction, output m difference axes and rate their harmfulness).

    Privacy and data cleaning

    • Public examples are taken only from LMSYS and WildChat; private data is first PII-cleaned, and LMRA outputs only aggregate statistics, reducing human exposure to non-public chats.
    • Additional filtering (Appendix J): remove prompts that hint at gender or race or contain names; replace names appearing in responses with [NAME]; separate refusals for separate inspection, to prevent LMRA from misjudging random refusals as bias.

    Human validation design

    • On public data, LMRA scores are compared with average Prolific crowdsourced scores: in the gender and race experiments, each response pair is judged by 40 workers, and in the feature-labeling experiment by 50; workers are recruited balanced on the relevant gender/race; a total of 454 workers and 13,000 judgments (Appendix G).
  4. What experiments did the paper conduct?

    Bias evaluation on 6 models and millions of real prompts: the stereotype rate is overall below 0.1% but varies greatly across tasks, and RL post-training reduces bias.

    Experimental setup

    • Models evaluated: GPT-3.5 turbo, GPT-4 turbo, GPT-4o, GPT-4o mini, o1-preview, o1-mini; the focus of analysis is GPT-4o-mini (which the authors describe as the most efficient and most widely used).
    • LMRA (judge model): GPT-4o, temperature 0; response generation temperature 0.8; Llama 3.1 (8B/70B/405B Instruct) and Claude 3.5 Haiku/3.5 Sonnet/3 Opus are also used as LMRA comparisons (Table 2).
    • Data: Private data consists of English ChatGPT prompts from late 2023 to January 9, 2024; after classification of about 11.4 million, 30.1% (3.4M) fall into the hierarchy, with at most 20K stored per task, totaling 1.1M prompts after deduplication; a separate random sample of 100K is kept for overall evaluation. Public prompts are taken from LMSYS and WildChat (prompts only, responses self-generated).
    • Demographic groups: Binary gender (30 names, from US Social Security data) and four ethnicities Asian/Black/Hispanic/White (320 names, used with permission from Nghiem et al. 2024); 10 groups in total, with 2 names randomly drawn per group to generate responses.
    • Metrics: Harmful stereotype net score (forward minus reverse), 9-dimensional quality scores, difference-axis proportions, and Pearson correlation and sign agreement between LMRA and humans.
    • Human validation: 40 workers per pair in the gender/race experiments and 50 in the feature experiment, stratified sampling of about 50 response pairs (52 pairs in the gender experiment, 43 for Hispanic), totaling 454 workers.

    Main results

    Harmful gender stereotype net score (LMRA scores; random chat covers both CI and Memory mechanisms, task results are CI; per Figure 5 and the main text):

    ModelRandom chat (CI/Memory)write a story task
    GPT-3.5-turbo<0.1%>2%
    GPT-4 turbo<0.1%<1%
    GPT-4o<0.1%<1%
    GPT-4o-mini<0.1%<1%
    o1-preview<0.1%<1%
    o1-mini<0.1%<1%
    • The authors state that on random English chats the harmful gender stereotype rate of each model is below 0.1% (one in a thousand), but varies widely across tasks, with open-ended generation tasks (write a story highest) eliciting the most stereotypes (Figure 5, Figure 27).
    • The authors state that, except for GPT-3.5-turbo, all models are below 0.1% on random chats and below 1% on specific scenarios, but they still hope to reduce this further.
    • Response quality (9 dimensions, GPT-4o-mini scored by GPT-4o, 100K random prompts): no statistically significant differences were detected in either the gender or the race comparison; gender differences are all below 0.1%, and the largest difference across races is 0.15% (Appendix E, Figures 18, 19).

    Agreement between LMRA and human scores

    • Gender stereotypes: Pearson correlation 0.86 (p < 10⁻⁶), sign agreement 90.3%; race is weaker: Asian 0.75, Black 0.67, Hispanic 0.34 (p = 0.024); feature labels are weaker still: simple language 0.48, technical terms 0.67 (Table 1).
    • LMRA from other families does not show higher agreement (Table 2), e.g., L3.1 70B gender ρ=0.84 and C3.5 Sonnet gender ρ=0.85, neither exceeding GPT-4o's 0.86.
    • Authors' interpretation: LMRA is largely successful at approximating average human scores for gender bias; for race and features, LMRA may be more sensitive or sensitive to different points than expert knowledge, and the difference-axis results should be regarded as a proof of concept rather than conclusive.

    Effect of post-training (RL)

    • On 19 tasks with higher bias and spanning domains, comparing the model after SFT and before RL with the final model: best-fit line slope 0.21 (95% CI: 0.17, 0.24), with per-model slopes of GPT-3.5t 0.31, GPT-4t 0.37, GPT-4o 0.26, GPT-4o-mini 0.08 (Figure 10).
    • The authors state that on all evaluated tasks, RL (and possibly other post-SFT mitigation measures) reduced LMRA-rated harmful gender stereotypes, and the main text also summarizes that the final model's bias is about 1/3 to 1/12 of that before RL.

    Mechanism comparison and difference axes

    • Memory vs. CI: Harmful gender stereotype scores across 66 tasks correlate 0.94 (p < 10⁻³⁹), slope 2.15 (95% CI: 1.98, 2.32), with Memory scores higher (Figure 8; the figure caption states correlation 0.97, the main text says 0.94).
    • Forward and reverse scores correlate 0.97 across tasks, with reverse about 0.096 times forward (95% CI: 0.091, 0.102) (Figure 7).
    • Difference axes (GPT-4o-mini, Memory): Across all chats, female responses more often "use simpler language" (52.1%) and are "more concise" (51.3%), while male responses more often "include extra aspects or background information" (51.4% A vs. 48.6% B, etc., Table 3); in write a story, female responses more often use female pronouns (52.7%) (Table 4); race axes are fewer, and in this run there is no statistically significant Black-White axis (Table 5).

    Other ablations and analyses

    • Race bias: In most domains the gender harm score is higher than the race score, with the exception of the travel domain (the tendency in the recommend restaurants task for restaurant ethnicity to match name ethnicity) (Figure 25).
    • Gender bias decomposed by ethnicity: largest for White names and smallest for Asian names (Figure 26).
    • Direct profile (Appendix C): On 12 tasks, scores for profiles that state gender directly correlate 0.98 with name profiles, but direct profiles score lower; Female profiles have the largest bias, and no significant bias is found for Non-binary.
    • Decision-making vs. chat prompts: Embedding K-means (K=2) separability 99.7% (10 runs), and ≥97% for K=2…10 (Appendix F).
    • Negative results: No statistically significant differences in response quality; LMRA's correlation with humans on Hispanic stereotypes is only 0.34, and the authors note that this experiment has only 43 samples, which may partly explain the low correlation, and that it cannot distinguish whether there is less bias or LMRA is worse.
  5. What are some points that can be further explored?

    The authors list three types of limitations—name counterfactuals, language and demographic coverage, and LMRA reliability—and give future directions for improving LMRA and extending the research.

    Limitations and future directions noted by the authors

    • Name counterfactuals are an imperfect measure of first-person bias: different groups have different writing styles and topics, and such biases cannot be captured by name-swapping methods; nor can the real-world impact of response differences be determined (Section 6).
    • All prompts are in English, and variation of bias across languages is not covered (Section 6).
    • Only binary gender and four races are considered, omitting characteristics such as age, veteran status, and socioeconomic status; name statistics come mainly from US resources; only text chat is studied (Section 6).
    • Using LMRA may miss biases that humans can detect but language models miss (Section 6).
    • Directions for improving LMRA: stronger LLMs may align better with human ratings; the current instruction is zero-shot, and example calibration could be added; matching human ratings could be treated as a supervised regression problem (Section 4.3, which the authors say is left for future research).
    • Future directions: apply LMRA beyond gender bias and to domains where agreement with humans still needs improvement; study first-person biases beyond name counterfactuals (writing style, topic selection); continue research on first-person bias in multimodal chat (Section 7).

    Scope of the experiments

    • The models tested are GPT-3.5 turbo, GPT-4 turbo, GPT-4o, GPT-4o mini, o1-preview, and o1-mini, 6 in total, all models of the authors' institution.
    • The data are English prompts: 1.1M entries after deduplication from a private ChatGPT corpus (with an additional 100K random sample retained), and public prompts taken from LMSYS and WildChat; demographics cover 2 genders, 4 races, and intersectional groups, 10 groups in total.
    • Scale of human validation: 40 workers per pair for the gender/race experiments and 50 for the characteristic experiments, with about 50 response pairs per group (52 pairs for gender, 43 pairs for Hispanic), totaling 454 workers and 13,000 judgments; the paper does not report inter-worker agreement metrics and states that the results are raw results without noise filtering.
    • The before/after RL comparison covers 4 models (GPT-3.5t, GPT-4t, GPT-4o, GPT-4o-mini) and 19 of 66 tasks.
    • The paper states that the results cannot be directly reproduced due to data privacy, and only the method is reproducible; the Memory mechanism currently cannot be fully simulated via API (Section 5).
  6. Summarize the main content of the paper

    A large-scale real-chat fairness evaluation method based on LMRA: the stereotype rate is low but varies greatly across tasks, and RL post-training can reduce bias.

    A large-scale evaluation paper on chatbot "first-person fairness": evaluating chatbots' fairness toward users, specifically focusing on gender and race bias associated with usernames.

    • Problem: General-purpose chatbots have open and diverse uses, so traditional fairness concepts aimed at institutional decision-making do not apply; chatbots can obtain usernames through Memory and Custom Instructions, potentially introducing subtle stereotype bias.
    • Method: Using GPT-4o as the LMRA, real prompts are divided into 9 domains and 66 tasks; responses are regenerated to the same prompt with swapped names and evaluated with three methods: response quality difference, harmful stereotype net score (forward minus reverse), and difference-axis enumeration, cross-validated with 13,000 judgments from 454 crowdsourced workers.
    • Main results: On random English chats, the harmful gender stereotype net scores of all 6 models are below 0.1%; there is large variation across tasks, with write a story highest, where GPT-3.5-turbo exceeds 2% on that task, while the other models are below 1% on every task; response quality shows no statistically significant difference by gender or race.
    • LMRA reliability: Gender stereotype scores correlate 0.86 with human ratings, with 90.3% sign agreement; race (0.34–0.75) and characteristic labels (0.48–0.67) are weaker, on which basis the authors position the difference-axis results as a proof of concept.
    • Post-training: The best-fit line slope for the before/after RL comparison is 0.21; the authors state that post-training techniques such as RL reduced bias, and the main text summarizes that the final model's bias is about 1/3 to 1/12 of that before RL.
    • Authors' conclusion: The method is scalable and can detect small but systematic differences, and can be used for continuous bias monitoring of deployed systems; the authors also emphasize the need to pair it with complementary metrics and note boundaries such as name counterfactuals being unable to capture differences in writing style and topic and only covering English and text chat.
Read originalICLR 2025