Language Agents for Hypothesis-driven Clinical Decision Making with Reinforcement Learning

David Bani-Harouni, Chantal Pellegrini, Ege Özsoy, Nassir Navab, Matthias Keicher

TL;DR

Researchers have developed LA-CDM, a multi-agent system that mimics the iterative, "differential diagnosis" process used by clinicians. By combining supervised learning with reinforcement learning, the system learns not just to identify diseases, but to request the most informative and cost-effective medical tests while accurately verbalizing its own uncertainty.

What Problem Does This Paper Address?

Most current AI applications in medicine treat diagnosis as a static "one-and-done" classification task. They assume all patient data—labs, imaging, and history—is already sitting on a digital tray ready for analysis.

In reality, clinical decision-making is a dynamic cycle. A doctor sees a patient, forms a hypothesis, orders a specific test to confirm or rule it out, interprets the result, and repeats the process until they reach a confident conclusion. Existing Large Language Models (LLMs) often struggle here: they either hallucinate high confidence when they lack data, or they fail to understand the "cost-benefit" trade-off of ordering an expensive CT scan versus a simple blood test. The authors aim to move LLMs away from being "medical encyclopedias" toward being "active diagnostic agents."

Methods

The authors propose a two-agent architecture called LA-CDM (Language Agent for Clinical Decision Making):

LA-CDM Architecture
  1. The Hypothesis Agent: This agent looks at the current patient state and generates a likely diagnosis along with a numerical confidence score (e.g., "Pancreatitis, 7/10 confidence").
  2. The Decision Agent: This agent acts as the "manager." It evaluates the hypothesis and decides whether to diagnose the patient immediately or request a specific test (like an ultrasound or CBC) to gather more evidence.

The Training Secret Sauce: The system uses a hybrid training paradigm:

  • Supervised Fine-Tuning (SFT): Teaches the Hypothesis Agent to suggest the correct disease based on available text.
  • Reinforcement Learning (RL): Specifically using Group Relative Policy Optimization (GRPO). RL is used for two critical tasks:
  • Calibration: Training the model to be "honest." If it says it's 60% sure, it should be right exactly 60% of the time.
  • Efficiency: The Decision Agent receives a "reward" for a correct diagnosis but a "penalty" for every test it orders, based on real-world USD costs. This forces the model to learn the most efficient diagnostic pathways.

Datasets

The study uses MIMIC-CDM, a real-world dataset derived from the well-known MIMIC-IV clinical database. It focuses on four common abdominal conditions: appendicitis, cholecystitis, diverticulitis, and pancreatitis.

  • The dataset includes patient histories, physical exams, 140,000+ lab results, and nearly 6,000 imaging reports.
  • Crucially, it is structured to allow for "sequential" requests, meaning the agent only sees the results of tests it specifically asks for.

Key Insights and Ideas

  • The "Betting" Reward: To fix LLM overconfidence, the authors treated uncertainty as a betting game. If the model is wrong with high confidence, it gets a massive penalty; if it's wrong but admitted it was unsure, the penalty is smaller. This resulted in a significantly better-calibrated model (reducing Expected Calibration Error from 0.069 to 0.037).
  • Emergent Medical Logic: Without being explicitly told which tests are "best," the RL-trained agent learned to prioritize gold-standard procedures. For example, it learned to prioritize CT scans for suspected appendicitis (85.1% of cases) and ultrasounds for cholecystitis (64.9% of cases), mirroring human clinical guidelines.
  • Cost vs. Accuracy: The inclusion of a cost-based reward function successfully reduced the average diagnostic cost per patient (from ~$1427 down to ~$1295) without sacrificing significant accuracy.

Key Results

LA-CDM significantly outperformed "out-of-the-box" LLMs and other baseline methods:

Performance and Cost Comparison
  • Diagnostic Accuracy: LA-CDM achieved a mean accuracy of 81.3%, dwarfing the zero-shot OASST model (54.9%) and the popular ReAct prompting method (74.9%).
  • Efficiency: Compared to an untrained version of itself (Zero-Shot), the trained LA-CDM was not only more accurate but also saved over $225 per patient in unnecessary testing costs.
  • Robustness: The model proved sensitive to price changes. When the researchers artificially inflated the cost of a "Complete Blood Count" (CBC), the model autonomously learned to rely more on clinical presentation and less on that specific lab test.

Limitations and Future Work

The authors acknowledge several hurdles before this hits the clinic:

  • Retrospective Constraints: The model can only "order" tests that the original human doctors actually performed in the historical dataset. If an agent wants a test that wasn't done, the environment simply says "unavailable," which limits the exploration of truly novel diagnostic pathways.
  • Closed-World Assumption: Currently, the model only chooses between four diseases. Real-world medicine involves thousands of possibilities.
  • Safety: While the model provides reasoning traces (Chain-of-Thought), it can still occasionally reach high confidence in a wrong diagnosis too quickly (as seen in their failure case analysis).

Future work will likely focus on expanding the disease set and integrating more complex modalities like raw medical imaging alongside text.

Summary updated

BibTeX
@inproceedings{baniharouni2026language,
  author = {David Bani-Harouni and Chantal Pellegrini and Ege Özsoy and Nassir Navab and Matthias Keicher},
  title = {{Language Agents for Hypothesis-driven Clinical Decision Making with Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=7vHUQCMAzG},
}
Figure