Summary
In emergency rooms, deciding how urgent a patient's condition is can be influenced by things like age, race, or social status, sometimes unfairly. The authors studied how different open-source large language computer models make these urgency decisions for children, changing only one social or demographic factor at a time to see if the model's choice changed. They found that some models were more sensitive to these changes, meaning their decisions could be biased. Interestingly, bigger or medically trained models were not always less biased, but fine-tuning helped reduce bias for some. This shows a way to check for fairness in these computer models before they are used in hospitals.
What this means in practice
- •For hospital data teams: Evaluate and choose less biased open-source language models for pediatric emergency triage support tools using counterfactual bias tests.
- •For policy compliance officers: Assess fairness risks of clinical decision support models before deployment to meet healthcare equity and regulatory standards.
Authors
Manar Aljohani, Brandon Ho, Kenneth McKinley, Dennis Ren, Xuan Wang
Abstract
Emergency department (ED) triage is a high-stakes prioritization task in which demographic, socioeconomic, and system-context information may improperly influence acuity assignment. Although open-source large language models (LLMs) are increasingly considered for local and privacy-preserving clinical decision support, it remains unclear how counterfactual bias varies across model families, sizes, medical-domain models, and domain-adapted models. We present a comparative counterfactual audit of ten open-source LLMs for pediatric Emergency Severity Index (ESI) prediction. Starting from real and handbook-style clinical vignettes, we construct paired counterfactual variants that change only one injected demographic, socioeconomic, healthcare-access, behavioral, social, or system-context variable while holding the clinical presentation fixed. Models include Qwen2.5-7B, Qwen2.5-14B-Instruct, a QLoRA fine-tuned Qwen2.5-7B, MedGemma variants, MedLLaMA2-7B, GPT-OSS-20B, and GPT-OSS-120B. We measure any counterfactual shift, undertriage, overtriage, shifts greater than one ESI level, mean shift, and mean absolute shift. Counterfactual sensitivity varied substantially and did not consistently decrease with larger model size or medical-domain pretraining. The fine-tuned Qwen2.5-7B showed the lowest overall sensitivity, with a 5.27% any-shift rate and mean absolute shift of 0.0534, versus 16.02% and 0.1706 for the base model. Several larger or medical-domain models showed more significant shifts. Stratified and correlation analyses further revealed clinically important directionality and shared failure patterns hidden by aggregate rates. These findings support counterfactual auditing as a lightweight, clinically interpretable framework for comparing fairness risks in open-source LLMs before clinical deployment.