Introduction
Most current AI applications in medicine assume an unrealistic "all-at-once" data scenario where every lab result and imaging report is available from the start. In reality, clinical diagnosis is a dynamic, cyclic process called differential diagnosis. Doctors start with a patient history, form a hunch (hypothesis), and then decide which specific tests are worth the time and money to confirm or rule out that hunch.
Existing Large Language Model (LLM) approaches often fail here because they either lack task-specific training for this iterative loop or they can't handle the "cost-benefit" analysis of medical testing. The authors aim to bridge this gap with LA-CDM, a system designed to be both accurate and efficient, knowing exactly when it has enough information to stop testing and make a final call.
Methods
The authors propose a framework consisting of two specialized agents powered by the same underlying LLM (Qwen-2.5-7B):
- The Hypothesis Agent: This agent looks at the current patient state and generates a likely diagnosis along with a confidence score (0–10). It is trained via Supervised Fine-Tuning (SFT) for accuracy and Reinforcement Learning (RL) for calibration—ensuring that its reported confidence aligns with actual correctness.
- The Decision Agent: This agent acts as the "manager." It evaluates the hypothesis and decides whether to request a specific new test (e.g., a CT scan or a Blood Count) or commit to a final diagnosis and end the session.
The Training Paradigm: The system uses a hybrid training approach. While initial medical knowledge is tuned via SFT, the iterative logic is refined using Group Relative Policy Optimization (GRPO). The reward function is multi-faceted: it rewards correct diagnoses, punishes incorrect ones, and applies a penalty for every test ordered based on real-world dollar costs.
Datasets
The study utilizes MIMIC-CDM, a specialized subset of the MIMIC-IV dataset focusing on four common abdominal conditions: appendicitis, cholecystitis, diverticulitis, and pancreatitis. It includes 2,400 patient cases featuring clinical notes, 143,191 lab results, and nearly 6,000 imaging reports. Crucially, MIMIC-CDM is structured to allow for sequential requests, meaning the model can't see a test result until it explicitly asks for it.
Key Insights
- Uncertainty as a Signal: Training the model to verbalize its uncertainty (calibration) directly improves its efficiency. If the agent knows it is "guessing," it is more likely to order a clarifying test.
- Emergent Clinical Wisdom: Without being explicitly told which tests are "best," the RL-trained agent began to follow established medical guidelines, such as prioritizing Ultrasounds for suspected cholecystitis.
- The Cost-Accuracy Tradeoff: By penalizing expensive tests, the model learned to reach the correct conclusion using cheaper, faster alternatives when possible, mimicking the resource-management skills of an experienced clinician.
Key Results
LA-CDM demonstrates significant improvements in both accuracy and cost-effectiveness compared to baseline methods.
- Superior Accuracy: LA-CDM achieved a mean class-wise accuracy of 81.3%, vastly outperforming the zero-shot OASST baseline (54.9%) and specialized tabular RL models.
- Efficiency Gains: Compared to a standard "ReAct" prompting strategy, LA-CDM reached its diagnoses with roughly $200 less in test costs per patient while maintaining higher accuracy.
- Calibration Improvement: Training reduced the Expected Calibration Error (ECE) from 0.069 to 0.037, making the agent's confidence a much more reliable indicator of correctness.
Limitations and Future Work
The model was trained on retrospective data, meaning it could only "order" tests that human doctors had already performed. Furthermore, while abdominal pain is a strong test case, the current scope is limited to four diagnoses. Expanding this to the thousands of conditions seen in general practice remains a scaling challenge. Future work aims to move toward more holistic simulations and expanding the agent's toolbox to include complex medical interventions beyond diagnostic tests.
Summary updated