TL;DR
PatientSim is an open-source, persona-driven patient simulator designed to evaluate medical LLMs through realistic, multi-turn dialogues. By combining real-world clinical data with 37 distinct behavioral personas across four axes (personality, language proficiency, memory recall, and confusion), it creates a scalable, privacy-compliant testbed that closely mimics actual emergency department consultations.
What Problem Does This Paper Address?
While Large Language Models (LLMs) excel at standard medical question-answering benchmarks like MedQA, these evaluations typically use single-turn settings where all patient data is perfectly structured and provided upfront. In the real world, clinicians must actively extract this information through multi-turn, context-aware conversations.
Evaluating "doctor LLMs" requires realistic patient simulators. However, existing simulators often treat patients as simple medical databases, ignoring the behavioral nuances—such as anxiety, language barriers, memory lapses, or acute cognitive confusion—that heavily influence clinical history-taking. PatientSim bridges this gap by introducing a framework that models both accurate clinical histories and diverse patient behaviors.
Methods
PatientSim operates by pairing structured clinical data with a multi-axis persona framework to drive LLM role-playing behavior.
The patient personas are defined along four key axes:
- Personality: Six distinct styles tailored to emergency settings (neutral, impatient, overanxious, distrustful, overly positive, and verbose).
- Language Proficiency: Three levels (basic, intermediate, advanced) adapted from the CEFR framework, complete with level-appropriate general and medical vocabularies.
- Medical History Recall Level: High vs. low recall to simulate patients who forget crucial past diagnoses or medications.
- Cognitive Confusion Level: Highly confused vs. normal. To mimic acute conditions, highly confused patients undergo a progressive transition from high dazedness to normal clarity as the doctor provides reassurance.
To rigorously evaluate the simulator's outputs, the authors developed a sentence-level factuality evaluation pipeline. It classifies each sentence in a patient's response, maps it to profile items, and uses Natural Language Inference (NLI) to check for factual alignment (entailment vs. contradiction). Crucially, if a patient provides details not explicitly in their profile, the system evaluates the clinical plausibility of these "blanks" rather than flatly penalizing them.
Datasets
PatientSim's clinical foundation relies on real hospital records from the MIMIC-IV, MIMIC-IV-ED, and MIMIC-IV-Note databases. The authors extracted and processed 170 detailed patient profiles across five highly prevalent emergency department diseases:
- Myocardial infarction (heart attack)
- Pneumonia
- Urinary tract infection (UTI)
- Intestinal obstruction
- Cerebral infarction (stroke)
Each profile contains 24 structured items covering demographics, social history, past medical history, and current visit details.
Key Insights and Ideas
- Safety Alignment vs. Roleplay: The authors found that many advanced LLMs struggle to simulate negative emotions like impatience or distrust. This is likely a side effect of safety alignment (RLHF), which trains models to be consistently polite and helpful, inadvertently hindering their ability to role-play difficult patients.
- Confusion Overshadows Other Traits: High cognitive confusion significantly distorts the expression of other persona traits (e.g., making a highly articulate patient sound like they have low language proficiency). Consequently, the authors restricted the "highly confused" persona to a neutral baseline for other axes to ensure clean evaluations.
- Plausible "Hallucinations" are a Feature, Not a Bug: Real patients frequently volunteer unprompted, peripheral details (e.g., describing a pain as "sharp" when the chart just says "pain"). By evaluating the plausibility of these unsupported statements rather than banning them, PatientSim achieves a much more natural conversational flow.
Key Results
The authors evaluated eight LLMs, identifying Llama 3.3 70B as the top-performing open-source model for the simulator's backbone due to its balance of persona consistency and factual accuracy.
- High Factuality: Llama 3.3 70B achieved the highest factual entailment rate (98.1%) and the lowest contradiction rate (1.9%) for supported statements.
- Realistic Extrapolations: For information not explicitly defined in the profile, Llama 3.3 70B scored 3.96 out of 4 on clinical plausibility.
- Clinician Validation: Four medical experts interacted with the simulator and gave it an average quality score of 3.89 out of 4 across six evaluation criteria, confirming its high realism and potential as an educational tool (scoring 3.75/4 for educational usefulness).
Limitations and Future Work
While robust, PatientSim has a few notable limitations:
- Dataset Bias: It relies entirely on the MIMIC database, which may limit its generalizability to non-US or non-emergency clinical settings.
- Text-Only Modality: The current text-based format cannot capture critical non-verbal clinical cues such as tone of voice, facial expressions, or body language.
Future Directions: The authors suggest integrating PatientSim into multimodal environments, such as Virtual Reality (VR) simulations, to incorporate gestures and vocal tones for a more comprehensive training experience for medical students and AI doctors alike.
Summary updated