Sensitivity, Performance, Robustness: Deconstructing the Effect of Sociodemographic Prompting

Tilman Beck, Hendrik Schuff, Anne Lauscher, Iryna Gurevych

Abstract

Annotators’ sociodemographic backgrounds (i.e., the individual compositions of their gender, age, educational background, etc.) have a strong impact on their decisions when working on subjective NLP tasks, such as toxic language detection. Often, heterogeneous backgrounds result in high disagreements. To model this variation, recent work has explored sociodemographic prompting, a technique which steers the output of prompt-based models towards answers that humans with specific sociodemographic profiles would give. However, the available NLP literature disagrees on the efficacy of this technique—it remains unclear for which tasks and scenarios it can help, and the role of the individual factors in sociodemographic prompting is still unexplored. We address this research gap by presenting the largest and most comprehensive study of sociodemographic prompting today. We analyze its influence on model sensitivity, performance, and robustness across seven datasets and six instruction-tuned model families. We show that sociodemographic information affects model predictions and can be beneficial for improving zero-shot learning in subjective NLP tasks. However, its outcomes largely vary for different model types, sizes, and datasets, and are subject to large variance with regards to prompt formulations. Most importantly, our results show that sociodemographic prompting should be used with care when used for data annotation or studying LLM alignment.

Introduction

In natural language processing, "ground truth" is often treated as a fixed objective. However, for subjective tasks—such as toxicity detection or sentiment analysis—human annotators frequently disagree based on their personal backgrounds. A 20-year-old liberal might perceive a comment very differently than a 60-year-old conservative.

To bridge this gap, researchers have turned to sociodemographic prompting: enriching a model's input with a persona (e.g., "Imagine you are a 25-year-old White female with a Master's degree..."). While promising, it remains unclear whether this technique truly makes models more "human-like" or simply triggers internal stereotypes. This study deconstructs the reliability of this technique across multiple dimensions to determine if it is a robust tool for socially aware AI.

Methodology: The Prompting Pipeline

The researchers conducted a massive, controlled experiment evaluating 17 different instruction-tuned LLMs across three primary dimensions:

  1. Sensitivity: Measuring how much a model's prediction changes when a demographic profile is added.
  2. Performance: Determining if the model actually improves at predicting how specific human groups would label data.
  3. Robustness: Assessing if changing the phrasing of the demographic prompt (while keeping the meaning identical) leads to consistent results.
The sociodemographic prompting pipeline: combining a text input with a persona profile (gender, race, age, education, politics) to steer LLM predictions.

The study utilized Generalized Linear Mixed Models (GLMMs) to statistically isolate the effects of model size, task type, and prompt formulation from the demographic factors themselves.

Experimental Setup and Datasets

The study spanned seven datasets covering four subjective tasks:

  • Toxicity Detection: Diverse Perspectives (DP) and Jigsaw.
  • Hate Speech Detection: Gabe Hate Corpus (GHC) and Twitter Hatespeech (H-Twitter).
  • Stance Detection: SemEval 2016 Task 6 (SE2016) and Global Warming Stance Detection (GWSD).
  • Sentiment Classification: Diaz (focused on age-related bias).

Crucially, the DP and Diaz datasets include actual sociodemographic metadata from the original human annotators, allowing for a direct comparison between model predictions and real-world human labels.

Key Insights: Model Identity vs. Persona

A striking finding of the research is that the underlying model architecture exerts a much stronger influence on the output than the assigned demographic persona. For instance, an "Asian Liberal" persona in InstructGPT behaves more like a "White Conservative" persona in InstructGPT than it does like an "Asian Liberal" in OPT-IML. This suggests that model-specific biases often override the intended persona.

Furthermore, the study found that Sensitivity does not equal Alignment. Just because a model changes its answer when given a demographic profile doesn't mean it is becoming more accurate to that group. In some cases, models changed their answers up to 80% of the time without a corresponding improvement in accuracy. However, using a full composition of attributes (Gender + Race + Age + Edu + Politics) was more influential than any single attribute alone in 63% of experiments.

Results and Sensitivity Analysis

The results highlight both the potential and the fragility of sociodemographic prompting. On the positive side, the technique improved zero-shot performance in subjective tasks by up to 8 percentage points in accuracy. The Flan-T5 (11B) model emerged as the most consistent and effective at modeling human disagreement.

Prediction changes across different model families and sizes, illustrating varying sensitivity to sociodemographic prompts.

However, the lack of robustness is a major concern. Changing the prompt phrasing (e.g., from "How would a person of [profile] rate..." to "Imagine you are a person of [profile]...") caused prediction differences of up to 35%, despite the semantic meaning being identical. This "brittleness" suggests that models are highly sensitive to the specific tokens used to describe a persona.

Limitations and Conclusion

The authors identify several constraints, including a heavy focus on US-centric demographic categories and English-language datasets. There is also a significant risk that models are reflecting "hallucinated stereotypes" rather than genuine human perspectives.

Ultimately, while sociodemographic prompting is a powerful research tool for exploring LLM behavior, it is currently too unstable for high-stakes applications like automated content moderation. Future work should explore "few-shot" prompting—providing actual examples of group-specific labeling—to improve the robustness and alignment of these models.

Summary updated

BibTeX
@inproceedings{beck2024sensitivity,
  author = {Tilman Beck and Hendrik Schuff and Anne Lauscher and Iryna Gurevych},
  title = {{Sensitivity, Performance, Robustness: Deconstructing the Effect of Sociodemographic Prompting}},
  booktitle = {EACL},
  year = {2024},
  url = {https://openreview.net/forum?id=LKgguCUtCK},
}
Figure