Agentifying Patient Dynamics within LLMs through Interacting with Clinical World Model

Minghao Wu, Yuting Yan, Zhenyang Cai, Ke Ji, Chuangsen Fang, Ziying Sheng, Xidong Wang, Rongsheng Wang, Hejia Zhang, Shuang Li, Benyou Wang, Hongyuan ZhaarXiv 2026

TL;DR

SepsisAgent is a novel AI assistant that pairs a Large Language Model (LLM) with a learned Clinical World Model to simulate how critical care patients will respond to different treatment options before a prescription is made. By training the agent through a specialized three-stage curriculum—spanning supervised learning, behavior cloning, and reinforcement learning—the system learns to avoid short-sighted clinical decisions, outperforming traditional reinforcement learning baselines and standard LLMs in both treatment value and patient safety.

What Problem Does This Paper Address?

Sepsis is a leading cause of mortality in Intensive Care Units (ICUs), requiring clinicians to continuously adjust intravenous fluids and vasopressors to maintain blood pressure and organ perfusion. This is a high-stakes, sequential decision-making problem: an aggressive treatment that stabilizes a patient's vitals in the short term might cause severe long-term harm, such as fluid overload leading to respiratory or renal failure.

While LLMs possess vast medical knowledge and can easily recite clinical guidelines, they lack an inherent understanding of patient dynamics—meaning they cannot accurately predict how a specific patient's physiological state will evolve over time in response to a precise drug dosage. Conversely, predictive simulators (world models) can forecast these physiological changes but lack the semantic reasoning, contextual understanding, and guideline-aware judgment of an LLM. This paper addresses the challenge of successfully fusing these two paradigms into a reliable, safe clinical decision-support agent.

Methods

The authors introduce SepsisAgent, which operates on a propose–simulate–refine workflow. When presented with a patient's state, the agent proposes candidate fluid-vasopressor interventions, queries a learned Clinical World Model (CWM) to simulate the patient's future vitals under those conditions, and refines its final prescription based on the simulated trajectories and clinical priors.

Figure 1: Illustration of SepsisAgent’s propose–simulate–refine workflow. Given the current patient state, the agent proposes candidate fluid–vasopressor actions, queries the World Model for predicted patient responses, and commits to a final treatment action based on the simulated trajectories.

The Clinical World Model (CWM)

The CWM acts as a virtual patient simulator. Built on a Gated Recurrent Unit (GRU) backbone, it features two primary prediction heads:

  1. State Transition Head: Predicts immediate physiological changes (e.g., MAP, lactate levels) and auxiliary metrics like SOFA scores and ventilation status.
  2. Outcome Head: Estimates long-term risk, specifically the probability of 90-day mortality.

The Three-Stage Training Curriculum

Crucially, the authors discovered that simply giving an off-the-shelf LLM access to a simulator leads to erratic performance. To fix this, they developed a multi-stage training pipeline:

Overview of the three-stage training pipeline
  • Stage I: Patient-Dynamics Supervised Fine-Tuning (SFT): The base LLM (Qwen3-4B-Instruct) is trained to predict long-term outcomes (in-hospital mortality) and short-term risks (24-hour vasopressor requirements) alongside one-step treatment reasoning. This embeds basic predictive capabilities directly into the model's weights.
  • Stage II: Propose–Simulate–Refine Behavior Cloning (BC): The model learns how to interact with the CWM by imitating multi-round simulation traces synthesized by a teacher model (GPT-4).
  • Stage III: World-Model-Based Agentic Reinforcement Learning (RL): Using Group Relative Policy Optimization (GRPO), the agent treats the CWM as a live environment. It samples multiple trajectories and optimizes its policy based on a composite reward function that balances long-term survival, organ stabilization (SOFA scores), and strict adherence to medical guidelines.

Datasets

  • MIMIC-IV: The primary dataset used to extract 20,092 ICU stays matching the Sepsis-3 criteria. Data was aggregated into 4-hour blocks containing 42 clinical variables. This dataset was split 7:2:1 for training, validation, and testing.
  • MIMIC-III: Used exclusively as an out-of-distribution (OOD) evaluation dataset containing 2,862 episodes to test the cross-dataset generalization of SepsisAgent.

Key Insights and Ideas

  • The "Greedy LLM" Trap: Simply giving an LLM access to a patient simulator without agent-specific training actually degrades performance in some cases. Untrained LLMs act too aggressively, choosing actions that show immediate, short-term improvements in vitals (like a quick rebound in blood pressure) while completely ignoring long-term risks like fluid overload.
  • Internalizing the Simulator: One of the most striking findings is that repeated interaction with the Clinical World Model during the RL stage causes the LLM to internalize patient dynamics. Even when the simulator access is entirely removed at test time, SepsisAgent's intrinsic ability to predict mortality and vasopressor needs remains significantly elevated. The agent learns the "physics" of the patient, not just how to maximize a reward score.

Key Results

Evaluated on a held-out test set of 725 clinical episodes, SepsisAgent demonstrated superior performance across off-policy evaluation (OPE) metrics and safety profiles:

  • Highest Policy Value: Achieved the highest Doubly Robust (DR) score of 10.01 and Weighted Per-Decision Importance Sampling (WPDIS) score of 23.40, outperforming traditional RL algorithms (like DDQN) and state-of-the-art LLMs (including OpenAI's o3).
  • Unmatched Safety Profile: Reached a sepsis guideline adherence rate of 97.95% (higher than the human clinician baseline of 94.76%).
  • Minimal Unsafe Actions: Reduced extreme underdosing to 0.08% and overdosing to 0.14%, significantly beating both vanilla LLMs and traditional RL models, which frequently defaulted to dangerous overdosing patterns.
  • Robust Generalization: Maintained strong performance when evaluated on the out-of-distribution MIMIC-III dataset, proving it didn't merely overfit the training environment.

Limitations and Future Work

The authors explicitly note that this work is strictly an academic proof-of-concept and is not intended for direct clinical deployment without human oversight. Key limitations include:

  • Retrospective Data Constraints: The models are trained and evaluated entirely on historical, observational data, which carries inherent biases.
  • Simplicity of the World Model: While a lightweight GRU was sufficient for this study, the authors note that higher-fidelity world models (e.g., advanced Transformer architectures) could further boost the agent's performance.
  • Action Space Discretization: The treatment space is currently mapped to a discrete 5x5 grid for fluids and vasopressors, which is less granular than real-world clinical titration.

Summary updated

BibTeX
@misc{wu2026agentifying,
  author = {Minghao Wu and Yuting Yan and Zhenyang Cai and Ke Ji and Chuangsen Fang and Ziying Sheng and Xidong Wang and Rongsheng Wang and Hejia Zhang and Shuang Li and Benyou Wang and Hongyuan Zha},
  title = {{Agentifying Patient Dynamics within LLMs through Interacting with Clinical World Model}},
  year = {2026},
  eprint = {2605.14723},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.14723},
}
Figure