Agent Hospital: A Simulacrum of Hospital with Evolvable Medical Agents

Junkai Li, Siyu Wang, Meng Zhang, Weitao Li, Yunghwei Lai, Xinhui Kang, Weizhi Ma, Yang LiuarXiv 2024 · DOI

Abstract

Traditional medical AI training relies heavily on static datasets, often missing the nuances of clinical practice. We present Agent Hospital, a fully autonomous digital simulacrum where LLM-powered agents—doctors, nurses, and patients—interact to simulate the complete clinical lifecycle. Through the Simulacrum-based Evolutionary Agent Learning (SEAL) framework, doctor agents evolve their expertise by treating thousands of synthetic patients. This "tuning-free" evolution allows agents to achieve state-of-the-art performance on real-world benchmarks like MedQA without human-labeled data.

Introduction

The path to medical proficiency involves two stages: mastering theoretical knowledge and gaining clinical expertise through practice. While current Large Language Models (LLMs) excel at the former, the latter remains a challenge due to the high costs, privacy risks, and ethical constraints of real-world clinical training. Agent Hospital addresses this "expertise gap" by providing a safe, high-speed environment for agents to learn from experience, mirroring the residency phase of human medical training.

Simulacrum Construction and Methodology

The Agent Hospital is built using the Tiled map editor and Phaser framework, featuring 16 functional areas including triage, consultation rooms, and pharmacies.

Overview of the Agent Hospital environment showing various functional areas and agent interactions.

The core of the system is the Simulacrum-based Evolutionary Agent Learning (SEAL) framework, which facilitates the evolution of "MedAgent-Zero." This evolution is driven by two primary components:

  1. Medical Case Base: A repository of successful treatments used for Retrieval-Augmented Generation (RAG).
  2. Experience Base: A collection of "rules of thumb" derived from self-reflection on past failures.

The simulation covers the entire patient journey, from the onset of symptoms to convalescence.

The complete clinical process within Agent Hospital, from disease onset through diagnosis to recovery.

Evaluation and Results

The system was evaluated using the MedQA (USMLE) benchmark and a massive synthetic dataset of hundreds of thousands of simulated cases. Key findings include:

  • State-of-the-Art Accuracy: MedAgent-Zero, powered by GPT-4o, achieved 92.22% on MedQA. When integrated with OpenAI’s o1-preview, accuracy reached 96.15%.
  • Scaling Law of Evolution: Diagnostic accuracy improves steadily as the number of treated patients increases, demonstrating a quantifiable link between practice and proficiency.
  • Cross-World Alignment: Expertise gained within the virtual simulacrum translates directly to performance on real-world medical examinations.

Conclusion and Future Directions

Agent Hospital demonstrates that autonomous simulations can effectively bridge the gap between medical knowledge and clinical expertise. While currently limited by frozen model weights and high-level planning, future iterations aim to incorporate actual weight updates, multi-departmental consultations, and robust debiasing techniques. This research paves the way for scalable, risk-free training of medical AI.

Summary updated

BibTeX
@misc{li2024agent,
  author = {Junkai Li and Siyu Wang and Meng Zhang and Weitao Li and Yunghwei Lai and Xinhui Kang and Weizhi Ma and Yang Liu},
  title = {{Agent Hospital: A Simulacrum of Hospital with Evolvable Medical Agents}},
  year = {2024},
  eprint = {2405.02957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.02957},
}
Figure