LLM Medical Bias Audit: No Racial or Gender Differences Found in 17 Models Including GPT and Claude

A counterfactual audit of 17 LLMs finds no detectable racial or gender bias in pain management under controlled conditions, with configuration differences far exceeding patient identity differences.
A counterfactual audit of 17 models including GPT, Claude, Gemini, Llama, DeepSeek, and Qwen found no detectable systematic differences in handling patient race and gender in strictly controlled single-prompt tasks. None of 1,386 comparisons passed FDR correction, and pain-score differences were equivalent to zero. However, wide confidence intervals for opioid decisions mean only no detected difference, not proof of none. More importantly, differences among models and configurations far exceed patient-identity differences, with high-dose opioid rates for reference patients ranging from 6% to 93%. The study recommends reporting deployment configuration as a variation source and using more rigorous methods.
Racial and Gender Bias in LLMs for Pain Management: A Counterfactual Audit
When large language models (LLMs) are used as clinical assistance tools, do they replicate real-world biases in which minority patients receive less pain treatment? A counterfactual audit of 17 models—including GPT, Claude, Gemini, Llama, DeepSeekAd, and Qwen—delivers a surprising answer: under strictly controlled experimental conditions, the models showed no detectable racial or gender differences in how they handled patient identity.

This exploratory, non-preregistered study had two parts. Study 1 had four open-weight models evaluate six acute pain cases, each covering all combinations of four races and two genders, with identity either explicitly stated or implied only through names (two names per group), and compared each identity against a white male reference under the same case and same seed. Study 2 expanded to 24 configurations across 17 models—including OpenAI's GPT-4.1 mini and gpt-oss, Anthropic's Claude Haiku 4.5, Google's Gemini 2.5 Flash, Meta's Llama, DeepSeek, and Qwen—with reasoning on and off and two precision settings, answering the same cases plus 50 clinician-written Q-Pain cases.
Key Finding: Differences Vanish After Statistical Correction
In the single-prompt, JSON-constrained task, no difference in Study 1 survived multiple-comparison correction. In Study 2, none of the 1,386 comparisons passed false discovery rate control. All pain severity differences were equivalent to zero on a 0–10 scale (differences under 1 point), and 237 of 238 Q-Pain comparisons had differences under a quarter point. In other words, the models did not systematically assign lower pain scores to minority or female patients.
The boundary for opioid decisions is less precise—Study 1 could not rule out a difference of about 20 percentage points, so those results only indicate "no detected difference," not "proof of no difference." A few within-model differences that survived correction actually favored Black patients.
Multiple-Comparison Correction and False Discovery Rate (FDR)
The "multiple-comparison correction" and "false discovery rate control" repeatedly mentioned in the study are key statistical concepts for understanding its conclusions. When researchers test hundreds or thousands of hypotheses simultaneously (e.g., 1,386 model–patient-identity comparisons), even if all null hypotheses are true, "significant" results arising purely from random fluctuation accumulate proportionally—this is the multiple-comparison problem. False discovery rate (FDR) control is a correction strategy that does not aim to drive all false positives to zero, but instead keeps the expected proportion of false positives among results judged significant within a set threshold (e.g., 5%). Compared with the more conservative Bonferroni correction, FDR retains some statistical power when the number of tests is very large. Thus, "none passed FDR control" means: after accounting for a large number of parallel tests, no patient-identity difference was strong enough to escape explanation by random noise.
Counterfactual Auditing and Paired-Comparison Design
"Counterfactual auditing" means holding the case and seed constant while changing only the patient identity variable, and observing whether model outputs change systematically—i.e., constructing the counterfactual control of "how would the model answer if this patient were a white male rather than a Black female?" The study used seed-based paired comparisons: for each case, a random seed was fixed and different identity variants were input separately, then output differences were compared. The advantage of this design is that it eliminates interference from case content and sampling randomness, making identity the only independent variable. At the same time, the study used two names for each race–gender combination (explicit statement and name-implied presentation) to reduce contamination from stereotype associations carried by a single name. Paired comparisons also require reporting a "noise floor," i.e., the magnitude of output fluctuation when the same identity is run repeatedly; only differences exceeding that floor can be considered real effects.
Between-Model Differences Far Exceed Between-Patient Differences
The more noteworthy finding is that differences among models, and differences within the same model under different settings, far exceed differences arising from patient identity. The proportion of reference patients receiving high-dose opioids ranged from 6% to 93% across configurations. This means fairness audits of clinical AI should not focus only on patient demographics, but must report deployment configuration itself as a source of variation.
Deployment Configuration as a Source of Variation
"Deployment configuration" refers to the specific combination of runtime parameters a model uses in real-world use, including reasoning toggle (whether step-by-step reasoning is enabled), numerical precision (e.g., FP16 vs. quantized precision), prompt format, service provider, and API version. The same base model may behave significantly differently under different configurations, because reasoning changes how the model weighs a case, and low-precision quantization may introduce output perturbation. The finding that the proportion of reference patients receiving high-dose opioids ranged from 6% to 93% illustrates the magnitude of configuration effects. This suggests fairness audits cannot treat "the model" as a single entity, but should treat each actual deployment configuration as an independent audit unit and disclose configuration details in reports; otherwise, audit conclusions cannot transfer to real clinical deployment environments.
Implications for Fairness Auditing of Medical AI
Previous audits typically tested only a few proprietary models, explicitly stated race information, and rarely measured the model's own response instability. This study sets out more rigorous methodological requirements: use multiple names per group, seed-based paired comparisons, report noise floors, and test each actual deployment configuration separately. Differences in serving software, provider, and prompt format also need to be taken into account.
For developers and procurers of medical AI, the signal from this study is twofold: on one hand, current mainstream models show no obvious pain-management bias in controlled scenarios; on the other hand, the uncertainty introduced by model configuration may be more worthy of vigilance than bias itself.

Study Limitations and Open Questions
This analysis is exploratory and non-preregistered, so its results should be regarded as preliminary signals rather than definitive conclusions. The wide confidence intervals for opioid decisions indicate that, when it comes to specific treatment decisions, the current sample size is insufficient to rule out clinically meaningful differences. In addition, the study covers only single-turn prompt tasks; whether multi-turn interaction in real clinical conversations introduces bias remains an open question.
Evidence Level of Exploratory Non-Preregistered Research
"Non-preregistered" means the researchers did not register hypotheses, sample sizes, and analysis plans on a public platform (such as OSF) before data collection. The core value of preregistration is to prevent post hoc adjustment of analysis direction based on data (e.g., selectively reporting significant results), thereby enhancing credibility. Non-preregistered exploratory research is therefore seen as generating hypotheses rather than validating them, and its results should be treated as preliminary signals requiring confirmation by subsequent preregistered confirmatory studies. In addition, the wide confidence intervals for opioid decisions in this study indicate that the sample size is insufficient to rule out clinically meaningful differences; and the gap between single-turn prompt tasks and real clinical multi-turn conversations means whether dialogue dynamics, follow-up questions, and context accumulation amplify or introduce bias still awaits specially designed research.
One-line Summary
A counterfactual audit of 17 LLMs found no detectable racial or gender bias in pain management under controlled conditions, with model-configuration differences far exceeding patient-identity differences.
Paragraph Summary
A counterfactual audit of 17 models including GPT, Claude, Gemini, Llama, DeepSeek, and Qwen found that in strictly controlled single-prompt tasks, the models showed no detectable systematic differences in handling patient race and gender identity. None of Study 2's 1,386 comparisons passed false discovery rate correction, and pain-score differences were equivalent to zero on a 0–10 scale. However, confidence intervals for opioid decisions were wide, indicating only no detected difference rather than proof of no difference. The study's more important finding is that differences among models and across configurations of the same model far exceed differences due to patient identity, with the proportion of reference patients receiving high-dose opioids ranging from 6% to 93%. The study accordingly recommends that fairness audits report deployment configuration as a separate source of variation and adopt more rigorous methods such as multiple names and seed-based paired comparisons.
Related articles

Nothing CMF Buds 2A Drops to $17.89 on Black Friday: A New Low for ANC Earbuds
Nothing CMF Buds 2A wireless earbuds Black Friday deal: just $17.89 on Amazon, about $11 off retail and a record low. ANC earbuds at an entry-level price.

When AI Creation Gets Accused of "Spitting": Hacker News Heats Up Over the Glaude Controversy
A Hacker News post, "Spitting in the Face of Glaude," sparks debate on AI creation transparency and attribution ethics. This analysis examines the blurred creator identity behind the controversy and offers practical advice for AI content production.

Akai Embraces Custom Firmware: MPC Sample 1.4 Lets Users AI-Program Their Sampler
Akai embraces the modding community with MPC Sample 1.4 firmware, supporting vibe-coded custom firmware and effects. We analyze the impact of this open strategy on music hardware and AI-assisted programming.