Evaluating the Bias in LLMs for Surveying Opinion and Decision Making in Healthcare

Yonchanok Khaokaew, Flora D. Salim, Andreas Züfle, Hao Xue, Taylor Anderson, C. Raina MacIntyre, Matthew Scotch, David J. HesloparXiv 2025

Abstract

Generative agents have been increasingly used to simulate human behaviour in silico, driven by large language models (LLMs). These simulacra serve as sandboxes for studying human behaviour without compromising privacy or safety. However, it remains unclear whether such agents can truly represent real individuals. This work compares survey data from the Understanding America Study (UAS) on healthcare decision-making with simulated responses from generative agents. Using demographic-based prompt engineering, we create digital twins of survey respondents and analyse how well different LLMs reproduce real-world behaviours. Our findings show that some LLMs fail to reflect realistic decision-making, such as predicting universal vaccine acceptance. However, Llama 3 captures variations across race and Income more accurately but also introduces biases not present in the UAS data. This study highlights the potential of generative agents for behavioural research while underscoring the risks of bias from both LLMs and prompting strategies.

Introduction

Social scientists and policy-makers are increasingly exploring "generative agents"—LLMs prompted to act as specific personas—to simulate human behavior in silico. These digital simulacra could theoretically allow researchers to test public health interventions or policy changes without the logistical and ethical constraints of real-world trials. However, healthcare decisions are complex, shaped by socioeconomic status, racial identity, personal worry, and shifting political contexts. This study investigates whether LLMs can accurately capture the reasoning of diverse human populations or if they merely reflect statistical averages and inherent training biases.

Methodology

The researchers developed a structured framework to compare LLM-generated responses against real-world longitudinal data from the Understanding America Study (UAS).

Overview of the digital twin construction and evaluation framework.

The methodology involved four key components:

  1. Digital Twin Construction: Personas were created by prompting models with specific demographic attributes (age, gender, race, income, education) and "worry levels" derived from UAS participants.
  2. Temporal Context: Four distinct "situational prompts" represented different phases of 2020 (e.g., the early outbreak vs. the vaccine trial phase).
  3. Model Selection: Four instruction-tuned open-source models were evaluated: Llama-3-8B, Gemma-2-9B, Galactica-6.7B, and Ministral-8B.
  4. Evaluation Metrics: The team used Disparate Impact Ratio (DIR) to measure fairness and Jensen-Shannon Divergence (JSD) to quantify how much the LLM's decision distribution diverged from human ground truth.

Results and Discussion

Temporal and Social Desirability Biases

The study found that Llama 3 tended to be overly optimistic about vaccine uptake, possibly due to Reinforcement Learning from Human Feedback (RLHF) steering the model toward "helpful" or socially "correct" answers. In contrast, models like Galactica (trained on scientific literature) and Ministral exhibited higher levels of skepticism, potentially reflecting the cautious nature of their training data.

Demographic Flattening and Stereotyping

A significant finding was the tendency of LLMs to "flatten" demographic nuances. While UAS data showed distinct variations in hesitancy across racial groups, many models produced homogenized responses.

Comparison of vaccine hesitancy across racial groups between the UAS survey and various LLM simulations.

Furthermore, some models introduced biases not present in the original data. For instance, Gemma 2 predicted significantly higher hesitancy for Black individuals than recorded in the UAS survey, suggesting the model relied on external stereotypes rather than the provided persona attributes.

Socioeconomic Disparities

The models struggled most with capturing the impact of income and education. Gemma 2 and Ministral showed the highest disparities (lowest DIR) in these categories, failing to accurately reflect how socioeconomic factors correlate with healthcare trust and access in real-world populations.

Conclusion

While LLMs show promise for behavioral modeling, they often fail to replicate the complex decision-making patterns found in real-world survey data. The tendency to homogenize populations or project stereotypes poses a significant risk for policy-making applications. Future work should explore more sophisticated prompting strategies, such as few-shot learning, and evaluate larger-scale models to determine if alignment with human behavior improves with model capacity.

Summary updated

BibTeX
@misc{khaokaew2025evaluating,
  author = {Yonchanok Khaokaew and Flora D. Salim and Andreas Züfle and Hao Xue and Taylor Anderson and C. Raina MacIntyre and Matthew Scotch and David J. Heslop},
  title = {{Evaluating the Bias in LLMs for Surveying Opinion and Decision Making in Healthcare}},
  year = {2025},
  eprint = {2504.08260},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.08260},
}
Figure