Automatic Interactive Evaluation for Large Language Models with State Aware Patient Simulator

Yusheng Liao, Yutong Meng, Yuhao Wang, Hongcheng Liu, Yanfeng WangarXiv 2024

Abstract

Large Language Models (LLMs) have demonstrated remarkable proficiency in human interactions, yet their application within the medical field remains insufficiently explored. Previous works mainly focus on the performance of medical knowledge with examinations, which is far from the realistic scenarios, falling short in assessing the abilities of LLMs on clinical tasks. In the quest to enhance the application of Large Language Models (LLMs) in healthcare, this paper introduces the Automated Interactive Evaluation (AIE) framework and the State-Aware Patient Simulator (SAPS), targeting the gap between traditional LLM evaluations and the nuanced demands of clinical practice. Unlike prior methods that rely on static medical knowledge assessments, AIE and SAPS provide a dynamic, realistic platform for assessing LLMs through multi-turn doctor-patient simulations. This approach offers a closer approximation to real clinical scenarios and allows for a detailed analysis of LLM behaviors in response to complex patient interactions. Our extensive experimental validation demonstrates the effectiveness of the AIE framework, with outcomes that align well with human evaluations, underscoring its potential to revolutionize medical LLM testing for improved healthcare delivery.

Introduction: Beyond Static Medical Exams

Most current benchmarks for medical LLMs, such as MedQA or MMLU, function like standardized tests: they present a static clinical vignette and ask for a multiple-choice answer. However, clinical competence involves more than selecting the correct diagnosis from a list; it requires a "pre-consultation" phase—asking pertinent questions, managing vague patient descriptions, and filtering irrelevant information.

Existing evaluation methods suffer from two primary flaws: staticity and lack of scalability. They fail to measure how an LLM reacts to a patient's evolving responses, and while human "standardized patients" are the gold standard, they are too resource-intensive for rapid AI development. This research addresses these gaps by introducing a framework where a "Doctor LLM" interacts with a specialized, state-aware "Patient LLM" to reach a diagnosis.

Methodology: The State-Aware Patient Simulator (SAPS)

The core innovation of this work is the State-Aware Patient Simulator (SAPS). Unlike standard chatbots, SAPS is engineered to maintain consistent, realistic patient behavior through three integrated components:

  • State Tracker: This component classifies the Doctor LLM's input into one of ten predefined action categories, such as Effective Inquiry, Ambiguous Advice, or Ineffective Inquiry.
  • Memory Bank: Information is partitioned into Long-term Memory (the patient's medical history), Working Memory (behavioral rules for specific doctor actions), and Short-term Memory (the current dialogue history).
  • Response Generator: This module synthesizes the current state and memory to produce a response. For instance, if a doctor provides an "Ambiguous Inquiry" (e.g., "How do you feel?"), the simulator is programmed to request specificity rather than disclosing all symptoms prematurely.
The SAPS architecture includes a State Tracker, Memory Bank, and Response Generator to simulate realistic patient behavior and interaction flow.

The Automated Interactive Evaluation (AIE) framework then assesses the Doctor LLM based on information gathering (Coverage), logical reasoning, and final diagnostic accuracy.

Experimental Setup and Datasets

The researchers developed two primary test sets to validate the system:

  1. Patient Simulator Test Set: Comprising 50 real hospital cases used to generate 4,000 test questions to verify if SAPS accurately mimics human patient behavior.
  2. Doctor LLM Test Sets:
    • HospitalCases: 50 real-world cases with complete patient information, laboratory results, and ground-truth diagnoses.
  3. MedicalExam: 150 cases curated from five public clinical datasets (MedQA, MedMCQA, MMLU, SelfExam, and QMAX), converted into an interactive format.

Results and Human Alignment

Experimental results indicate that SAPS significantly outperforms standard LLMs in simulating realistic patient interactions. As shown in Figure 2, the SAPS model (referred to as GPT4-Patient-Agent) demonstrates a much higher correlation with human patient behavior than a standard GPT-4 model without state-aware architecture.

Performance metrics across dialogue turns and correlation analysis between automated AIE metrics and human evaluations.

Key findings from the evaluation include:

  • Model Performance: QianWen and GPT-4 emerged as the top-performing Doctor LLMs. QianWen showed the highest win rate across nearly all metrics, occasionally outperforming GPT-4 in clinical interaction categories.
  • The "Exam vs. Clinic" Gap: Models that performed well on static multiple-choice questions often struggled in interactive sessions, suggesting that traditional exams may overstate clinical readiness.
  • Information Coverage: Even the strongest model, GPT-4, recalled only about 38% of relevant patient information during consultations, highlighting a significant area for future improvement.
  • Human Alignment: Automated metrics like "Coverage" and "Inquiry Logic" showed high correlation with judgments from medical students, validating AIE as an effective proxy for human evaluation.

Discussion and Conclusion

While the AIE framework and SAPS provide a robust platform for medical LLM evaluation, limitations remain. The current ten-category action space may not capture the full complexity of real-world interactions, and the metrics are less sensitive when comparing models with similar high-level performance. Future work will focus on broadening the action space and refining metrics to discern finer distinctions between top-tier models, while also addressing ethical nuances such as patient autonomy in simulated environments. Overall, this framework represents a significant step toward more realistic and scalable assessment of AI in healthcare.

Summary updated

BibTeX
@misc{liao2024automatic,
  author = {Yusheng Liao and Yutong Meng and Yuhao Wang and Hongcheng Liu and Yanfeng Wang and Yu Wang},
  title = {{Automatic Interactive Evaluation for Large Language Models with State Aware Patient Simulator}},
  year = {2024},
  eprint = {2403.08495},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.08495},
}
Figure