Aligning with Whom? Large Language Models Have Gender and Racial Biases in Subjective NLP Tasks

Huaman Sun, Jiaxin Pei, Minje Choi, David Jurgens · OpenReview

Abstract

Human perception of language depends on personal backgrounds like gender and ethnicity. While existing studies have shown that large language models (LLMs) hold values that are closer to certain societal groups, it is unclear whether their prediction behaviors on subjective NLP tasks also exhibit a similar bias. In this study, leveraging the POPQUORN dataset which contains annotations of diverse demographic backgrounds, we conduct a series of experiments on four popular LLMs to investigate their capability to understand group differences and potential biases in their predictions for politeness and offensiveness. We find that for both tasks, model predictions are closer to the labels from White and female participants. We further explore prompting with the target demographic labels and show that including the target demographic in the prompt actually worsens the model's performance. More specifically, when being prompted to respond from the perspective of "Black" and "Asian" individuals, models show lower performance in predicting both overall scores as well as the scores from corresponding groups. Our results suggest that LLMs hold gender and racial biases for subjective NLP tasks and that demographic-infused prompts alone may be insufficient to mitigate such effects.

Introduction

As Large Language Models (LLMs) transition from conversational agents to "subjective judges" in fields like social science research and content moderation, a critical question arises: Whose values are they reflecting? Concepts such as "politeness" or "offensiveness" are not universal; they are deeply shaped by an individual's identity, culture, and lived experience.

Current alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF), often steer models toward a singular, "average" human response. This approach risks erasing the perspectives of minority groups. This study investigates whether LLMs possess intrinsic demographic biases in subjective tasks and evaluates whether "sociodemographic prompting"—explicitly asking a model to adopt a specific persona—can effectively align model outputs with diverse human perspectives.

Methodology

Researchers evaluated nine LLMs, including open-source models (FLAN-T5, Tulu2, Llama-3.1, Mistral, Qwen2.5) and closed-source models (GPT-3.5, GPT-4). The analysis utilized the POPQUORN dataset, which contains 45,000 annotations from a demographically representative U.S. sample. The study focused on two primary tasks: rating the politeness and offensiveness of text on a 5-point Likert scale across Gender (Man, Woman) and Ethnicity (Asian, Black, White) categories.

The experimental framework consisted of two stages:

  1. Zero-Shot Alignment: Measuring how closely a model’s default judgment aligns with different demographic groups without identity-specific instructions.
  2. Steerability Analysis: Modifying prompts to include identity tokens (e.g., "How offensive does a Black person think...") and measuring the resulting change in prediction error.

The "White-by-Default" Bias

In zero-shot settings, every model tested aligned more closely with White participants than with Black or Asian participants across both tasks. This suggests a deep-seated cultural bias inherent in the training data or subsequent alignment processes. For the offensiveness task, the gap was particularly stark; for instance, GPT-3.5’s error was significantly higher for Black and Asian participants compared to the White reference group.

Baseline prediction error for offensiveness across ethnic groups, relative to White participants.

In terms of politeness, most models aligned more closely with women than men. However, the ethnic bias persisted, as models consistently failed to capture the divergent means and higher variance found in the ratings of Black and Asian annotators.

Steerability and the Prompting Paradox

Surprisingly, "sociodemographic prompting" often proved counterproductive. Instead of improving alignment, adding identity tokens frequently increased prediction error. For example, prompting models to predict politeness from a Black participant's perspective often made the models less accurate than their default settings.

Change in prediction error when using sociodemographic prompting across tasks and demographics.

Furthermore, the study identified a "Guardrail Paradox." Newer models with strict safety filters often refused to answer when prompted with specific demographic groups. GPT-3.5, for instance, had a 71.1% refusal rate when asked to predict offensiveness for Black participants. This suggests that safety mechanisms may inadvertently hinder a model's ability to represent diverse viewpoints by treating demographic simulation as a "sensitive" or potentially harmful request.

Conclusion

The findings indicate that LLMs are intrinsically biased toward White perspectives in subjective tasks and that current prompting techniques are unreliable for achieving demographic alignment. Scaling models or increasing instruction-tuning does not inherently solve these biases; in some cases, larger models exhibited greater bias in politeness tasks.

Future research must move beyond simple prompting toward "steerable pluralism"—developing techniques that allow models to faithfully represent specific perspectives without falling into stereotypes or triggering over-active safety refusals. Achieving true alignment requires models that can navigate the nuanced, subjective landscape of human values across all demographic groups.

Summary updated

BibTeX
@inproceedings{sun2025aligning,
  author = {Huaman Sun and Jiaxin Pei and Minje Choi and David Jurgens},
  title = {{Aligning with Whom? Large Language Models Have Gender and Racial Biases in Subjective NLP Tasks}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-short.71},
}
Figure