Abstract
People naturally vary in their annotations for subjective questions and some of this variation is thought to be due to the person's sociodemographic characteristics. LLMs have also been used to label data, but recent work has shown that models perform poorly when prompted with sociodemographic attributes, suggesting limited inherent sociodemographic knowledge. Here, we ask whether LLMs can be trained to be accurate sociodemographic models of annotator variation. Using a curated dataset of five tasks with standardized sociodemographics, we show that models do improve in sociodemographic prompting when trained but that this performance gain is largely due to models learning annotator-specific behaviour rather than sociodemographic patterns. Across all tasks, our results suggest that models learn little meaningful connection between sociodemographics and annotation, raising doubts about the current use of LLMs for simulating sociodemographic variation and behaviour.
Introduction
In Natural Language Processing (NLP), subjective tasks such as determining text offensiveness, intimacy, or sentiment often lack a single objective "ground truth." Human annotators frequently disagree, and these disagreements are often rooted in an individual's unique background, values, and sociodemographic identity. While previous attempts to capture these perspectives using zero-shot "sociodemographic prompting" (e.g., "You are a 20-year-old woman; is this text offensive?") have yielded poor results, this study investigates whether Large Language Models (LLMs) can be fine-tuned to understand and predict these individual variations.
Methods
The researchers utilized Llama 3 8B to explore whether fine-tuning on a person's demographics and past ratings allows a model to learn the relationship between identity and perception. They curated the DEMO dataset, comprising over 147,000 annotations from 2,614 unique annotators across five tasks: Intimacy, Offensiveness, Politeness, Safety, and Sentiment.
Four input formats were tested:
- Content-Only: The text alone.
- +Attributes: Text plus age, gender, race, and education.
- +ID: Text plus a unique numerical identifier for the annotator.
- +ID+Attributes: A combination of both.
Performance was evaluated using two distinct data splits: the Instance Split (testing seen annotators on new text) and the Annotator Split (testing entirely new annotators).
Results and the "Proxy ID" Hypothesis
Fine-tuning significantly outperformed zero-shot prompting across all tasks. In the Instance Split, providing the model with an annotator ID or a demographic profile led to substantial performance gains. As shown in Figure 1, models incorporating identity markers (+ID or +ID+Attributes) achieved much higher F1 scores than those relying on content alone.
However, the researchers discovered that these gains were not due to the model learning general sociodemographic patterns. Instead, they identified a "Proxy ID" effect: the model treats unique combinations of demographic attributes as a name tag or identifier for a specific individual it encountered during training. This is evidenced by the fact that performance gains were concentrated among annotators with unique sociodemographic profiles. For annotators with common profiles shared by many others, the addition of demographic attributes provided almost no predictive advantage (see Figure 2).
The Generalization Wall
The limitations of this approach became clear in the Annotator Split. When tasked with predicting the perceptions of individuals it had never seen before, the model's performance dropped to the level of the text-only baseline. Despite knowing the new annotator's demographics, the model could not generalize its training to predict their specific perspectives. This suggests that while LLMs can "memorize" the biographies of specific individuals, they fail to learn the underlying "sociology" that connects demographics to perception.
Conclusion
While fine-tuning allows LLMs to mimic the behavior of specific individuals they have been trained on, they remain unable to accurately simulate the perspectives of demographic groups at large. These findings suggest that researchers should be cautious when using LLMs to represent or simulate human populations, as the models currently lack the ability to generalize sociodemographic patterns to unseen individuals.
Summary updated