Skip to main content
Back

Alibaba's OpenHospital Trains AI Doctors by Having Them Treat AI Patients

A research team introduces a simulated hospital where physician and patient LLM agents interact to evolve collective clinical intelligence through practice.

Pro

  • Researchers from Zhejiang University and collaborators introduce OpenHospital, an arena for evolving multi-agent LLM systems.
  • Physician agents interact with LLM patients across 19 departments, 583 diseases and 467 comorbidities.
  • Examination Precision improved from 45.05% to 61.31% over 22 training batches.
  • Total input tokens dropped from 16.04M to 14.83M while clinical accuracy rose across all metrics.
  • Agents spontaneously initiated cross-department consultations, showing emergent collective behavior.
  • Code released via the Agent-Kernel framework on GitHub.

A team of researchers from Zhejiang University, Zhejiang Gongshang University, and Alibaba's Tongyi Lab has released a paper introducing OpenHospital, a simulated clinical environment where LLM-powered physician agents learn by treating LLM-powered patients. The work targets one of the more uncomfortable problems in modern AI research: the industry is running out of high-quality human text to train on, and static benchmarks no longer capture what agents actually need to become better.

Rather than feeding models more scraped text, the authors propose that collective intelligence, meaning multiple agents coordinating and generating experience together, is the way forward. OpenHospital is their attempt to build an arena where that intelligence can measurably emerge.

The data wall, dressed in scrubs

The paper frames the current bottleneck as a data wall, where scaling laws hit limits as high-quality human corpora reach exhaustion, and argues that overcoming this barrier requires collective intelligence through multi-agent coordination that continuously synthesizes interaction data. The philosophical hook, borrowed from Kant, is that static datasets only capture the surface of reality, while true reasoning requires agents to probe a dynamic world themselves.

Clinical diagnosis fits neatly here. It is knowledge intensive, requires collaboration across specialties, and has objectively checkable ground truth. Existing hospital simulators like Agent Hospital and MedAgentSim exist, but the authors argue most focus on textbook cases with clear symptoms rather than the messy comorbidities that force real cooperation.

How the arena is built

The setup has two sides. On the patient side, a multi-stage synthesis pipeline powered by DeepSeek-v3.1 generates records covering 583 distinct diseases and 467 binary comorbidities across 19 clinical departments, producing 12,000 synthetic patient profiles. Patient agents only reveal information when asked, forcing doctors to actually investigate rather than receive a pre-packaged case description.

On the physician side, the baseline uses the Agent-Kernel framework with 38 physician agents, two per department across 19 specialties, all powered by Qwen3-Next-80B-A3B-Instruct. Agents can perceive the patient, ask targeted questions, order exams, consult other departments, retrieve knowledge, and finally prescribe treatment. After each case, they run a self-critique that compares their diagnosis against ground truth and updates their reasoning strategy.

The authors call this a data-in-agent-self paradigm: the training signal is not a fixed dataset but the interaction history the agents themselves generate.

What the numbers show

The 12,000 cases are split 9:1 for train and test, with the training portion divided into 22 sequential batches of roughly 500 cases each. Across those batches, the physician agents improve on every clinical axis while spending fewer tokens.

Line graph showing examination precision, diagnostic accuracy, and treatment plan alignment improving across 22 training batches

The headline numbers from the paper:

  • Examination Precision rose from 45.05% to 61.31%, meaning fewer wasted tests
  • Diagnostic Accuracy climbed from 48.11% to 57.34%
  • Treatment Plan Alignment increased from 58.49% to 61.52%
  • Total input tokens per batch dropped from 16.04 million to 14.83 million

The token trend matters. Getting better while getting cheaper suggests the agents are not just brute-forcing longer prompts, but actually learning to skip redundant inquiries. In one qualitative case, an agent that initially ordered irrelevant gonorrhea tests for a sore throat learned by batch 22 to run targeted syphilis serology and EBV panels, correctly diagnosing a viral infection.

Clinical decision flowchart comparing batch 1 versus batch 22 diagnostic pathways for a sore throat case

Emergent consultation, and where it falls short

The more interesting finding is qualitative. The authors report that agents spontaneously started consulting each other across departments. In one documented case, an infectious diseases agent suspected endocarditis, recognized it was outside its expertise, and initiated a consultation with cardiology, which recommended a TTE followed by TEE. Nobody scripted this handoff. It emerged from the reflection loop.

The limitations are real, and the authors are upfront about them. OpenHospital is text only, so specialties that lean on imaging like radiology and dermatology are out of scope. It also does not model how diseases evolve over time within a single patient. And the whole environment runs on synthetic data, which sidesteps HIPAA concerns but also means the arena is a proxy for clinical reality, not a substitute for it.

Why it matters beyond hospitals

The medical scenario is really a testbed for a broader claim: that a properly instrumented arena can grow multi-agent capability without needing new human-labeled data. If you are building agent systems in any collaborative domain, the recipe here is worth studying: dynamic environments that hide information until queried, multi-dimensional metrics that measure both quality and efficiency, and reflection loops that turn each interaction into training signal.

The code lives in the Agent-Kernel repository, and the full paper details the metrics and patient synthesis pipeline for anyone wanting to reproduce or extend the setup.