Demographic Injection in Medical Language Models under Diversity, Equity, and Inclusion Prompts
Diego Mardian, Frank Liu
Key points
From the paper's conclusion- We measure a side effect that misrepresents patients: a one-sentence DEI prompt appended to a medical question leads models to add patient demographic attributes (race, socioeconomic status, sex) the question never stated, in effect rewriting who the patient is.
Abstract
Clinical-AI guidance increasingly recommends prompting language models to reason with attention to diversity, equity, and inclusion (DEI). We measure a side effect that misrepresents patients: a one-sentence DEI prompt appended to a medical question leads models to add patient demographic attributes (race, socioeconomic status, sex) the question never stated, in effect rewriting who the patient is. We call this demographic injection. Across 47 models, four medical benchmarks, and 376,000 responses scored by a validated model-judge pipeline, a single DEI prompt raises the injection rate from 0.7% to 33.1% (47x) in all 47 of 47 models, attributable to the equity content rather than to added length (18x above a length-matched control; p=1.4x10^-14). Most added content is a general population statement that leaves the answer unchanged, but a smaller subset attaches an attribute to the specific patient or changes the selected option (0.25-2.4% of responses, 99.8% toward the incorrect option), where the invented demographic changes the answer the model recommends. Phrasing scales the effect from 14% to 56%. DEI prompts are just one example of a more general mechanism. Any instruction that nudges how a model reasons can make it add unrequested details, including details about the patient. Flagged outputs are treated as model errors under study, not clinical guidance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Implicit bias in safety-aligned large language models: A multi-faceted evaluation of clinical decision-making and health equityPLoS ONE · 2026
- Sex and gender bias in large language models: an old problem at a new scale.BMJ health & care informatics · 2026
- Enabling Scalable Evaluation of Unfair Patterns in Medical LLMs.ACM transactions on computing for healthcare · 2026
- InclusionMed: Benchmarking AI for Inclusive HealthcarearXiv · 2026
- Is it possible to vaccinate AI against bias? An exploratory study in epilepsy.Epilepsy & behavior : E&B · 2026
- Beyond Accuracy: Counterfactual Fragility and Demographic Bias in Clinical Evaluation of LLMsarXiv · 2026