TL;DR
Add a single phrase like "consider diversity, equity and inclusion (DEI) in your answer" to a medical question, and the model starts bringing in race, income or social status, even though the question said nothing about them. Mostly these are general population statements, but sometimes the model pins an unstated trait on the patient or lets it change the answer.
Without the phrase, the model fabricates patient demographics in 0.7% of answers. With the DEI phrase, in 33% of answers, a 47-fold jump, and it happens in every single one of the 47 models tested, from GPT-5 to small open models. The cause isn't the extra text tacked onto the question (a neutral clinical addition of the same length was tested separately); it's specifically the equity content. Most of what gets added (91%) is a general statement like "this is more common among...", not attached to the patient. But in 2.4% of answers the chosen option changed, in 0.71% the model attributed a demographic trait to this particular patient, and in 0.25% both happened — and 99.8% of the answer changes went to the wrong option.
The authors' likely explanation (a hypothesis they have not yet tested): in the texts the model was trained on, talk about equity usually comes paired with mentions of race, gender and income, so a "consider fairness" instruction triggers that template, even with no demographic data in the question. The authors also argue it may not be just DEI: other framing instructions ("consider cost-effectiveness," "consider medico-legal risk") could likewise make the model add unstated details — they did not test these.
Mechanism Blueprint
CONDITION: a question with no demographic data + the phrase "consider diversity/equity"
↓
STEP 1: The model adds demographic statistics → 33% of answers (vs. 0.7% without the phrase)
STEP 2: Most injections (91%) are a general population statement, not attached to the patient
STEP 3: Of all answers: 0.71% pin a trait on the specific patient, 2.4% change the chosen option, 0.25% do both
STEP 4: 99.8% of the answer changes go toward the WRONG answer
Example in Action
Our illustration — the study tested only medical multiple-choice questions, not HR.
Task: An HR manager pastes anonymous descriptions of two candidates for a team lead role into ChatGPT (no name, photo or nationality) and asks for help choosing whom to promote, adding "apply diversity and inclusion principles in your assessment."
Prompt (risky version):
Here are two candidates for a department head role:
Candidate A: 6 years at the company, runs 3 projects, average soft skills ratings,
strong technical background.
Candidate B: 2 years at the company, runs 1 large project, high ratings
for soft skills, weaker technically.
Apply the principles of diversity, equity and inclusion in your assessment.
Result (our expectation, not tested): If the medical finding carries over, the model may start writing assumptions about the candidates' background, gender or age into its reasoning, details that weren't in the description. Most of the time it would be a general background remark. But there is some chance (in the medical study, answers changed in 2.4% of cases) that an unstated detail "sticks" to a specific candidate and shifts the final recommendation.
Why It Works
Sometimes the model fails to keep apart "a statistical fact about a category of people" and "a fact about the specific person in the question" and blends epidemiology with the case description. The authors' likely explanation is that in training texts those things often sit side by side — a hypothesis they have not yet tested.
The model is good at picking up language patterns: on this explanation, once it sees the trigger "diversity/equity" in the instruction, it pulls out the linked cluster of associations (race, income, access to healthcare), because that's how these topics are usually discussed in the texts it was trained on.
Knobs that change the strength of the effect: - Instruction wording → across five tested phrasings, a "reflective" wording produced 14% injection, a brief generic one 33%, a verbose "social determinants" one 39%, and one naming specific demographic groups 56%. Naming groups in the instruction carried the highest risk. - Other framing instructions, not just DEI ("consider the cost," "consider the legal risks"), may carry a similar risk — the authors suggest this but didn't test it.
💡 Practical takeaway: whenever you add any "consider X in your assessment" instruction to a prompt for a real case (medicine, HR, legal review, credit scoring), pin down the boundaries of the data explicitly:
"Use only the facts stated above. Do not add or assume age, gender, race, income, social status or any other characteristics that were not explicitly mentioned. If data is missing, say so directly."
This is a logical consequence of the mechanism found, not a fix the authors tested, but it directly blocks the path the injection takes.
Limitations
⚠️ Only DEI wordings were tested: the "any framing instruction" hypothesis follows logically from the mechanism, but the authors directly tested only phrases about equity and diversity.
⚠️ The "changed answer" numbers are a conservative lower bound: the authors deliberately used a method that is more likely to underestimate than overestimate the share of cases where the fabrication changes the answer.
⚠️ Only multiple-choice tests were used: MedQA, MedMCQA, MMLU-medical and PubMedQA are "pick one of the options" or "yes/no/maybe" formats. It's unknown whether the model behaves the same way in a free-form consultation with no ready-made answer options.
⚠️ The mechanism is a hypothesis, not a proven fact: the authors suggest the model pulls the "equity ↔ demographics" association from its training texts, but didn't verify this directly by analyzing the model's internal activations.
⚠️ The antidote phrase wasn't tested in the study: the suggestion to add "don't invent unstated facts" is our logical extrapolation from the mechanism found, not a result the authors verified experimentally.
How They Tested It
The researchers took 47 models, from top closed models (GPT-5, Claude Sonnet 4.6) to small open ones (Llama-3-8B) and even medically fine-tuned ones (OpenBioLLM), and ran 500 questions from each of four medical tests through them in four variants: no additions, a nonsense addition, a neutral clinical addition of the same length, and the DEI phrase. That came to 376,000 answers.
The key design trick is the "neutral addition of the same length": it proves the issue isn't extra text as such but specifically the equity content. It worked: the DEI phrase beat the neutral control by a median factor of 18.
To find where the model made something up, they used a two-stage judging system: a fast AI judge (Gemini 3.1 Flash Lite) labeled every answer and a precise arbiter (Claude Sonnet 4.6) re-checked the flagged candidates, which is why the final "changed answer" numbers are likely underestimates.
Remarkably, the effect showed up in literally all 47 models without exception, including models specially fine-tuned on medicine (their injection rate is lower, 19% vs. 49% for top closed models, but it doesn't vanish). And the wording of the phrase matters a lot: a "reflective" wording produced 14% injection, a wording naming specific demographic groups 56%.
Resources
Demographic Injection in Medical Language Models under Diversity, Equity, and Inclusion Prompts: Diego Mardian, Frank Liu, Arizona State University. Benchmarks: MedQA, MedMCQA, MMLU-medical, PubMedQA. Judges: gemini-3.1-flash-lite (initial screening), claude-sonnet-4-6 (precise arbiter).
Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.