TL;DR
Most medical AI benchmarks hand a model the entire patient chart on a silver platter and ask for a diagnosis—ignoring the reality that doctors have to actively hunt for clues one test at a time. TraceDx trains AI agents using reinforcement learning to play clinical detective, rewarding them not just for guessing the right disease at the end, but for uncovering the specific, decisive medical facts along the way. Equipped with this training signal, smaller open-weight models manage to outperform several massive frontier models at interactive clinical diagnosis.
What Problem Does This Paper Address?
In real-world medicine, a patient doesn't walk into the ER with a neat summary of every lab result and CT scan they’ll ever need. Diagnosis is a sequential game of 20 Questions: you observe initial symptoms, form hypotheses, order targeted tests to rule things out, and repeat.
Evaluating Large Language Models (LLMs) on static, complete case vignettes misses half the job. Recently, researchers have started putting LLMs into interactive clinical simulators, forcing them to request tests iteratively. However, training an agent to excel in these environments is tricky. If you only reward the model at the very end for getting the final diagnosis right (a binary 1 or 0), it gets zero feedback on how it got there. Did it order a brilliant, targeted workup, or did it stumble into a lucky guess after ordering a battery of useless tests? Furthermore, unstructured medical records are messy streams of text, offering no obvious "points" for an agent to score when it uncovers a vital clue.
Methods
To teach an agent what good evidence-gathering looks like, the authors built TraceDx, a two-phase reinforcement learning (RL) framework.
- Offline Fact Atomization & Criticality Scoring (The Novel Signal): Before training begins, an LLM breaks down each messy, ground-truth patient record into discrete, standalone observations—"atomic facts" like Patient was afebrile or Diminished bowel sounds. Prior NLP work has used atomic facts to check text for hallucinations, treating every fact equally. TraceDx adapts this for medicine by having an LLM score each fact on a 0-to-3 criticality scale (given the true diagnosis):
0is clinically irrelevant noise, while3is a "pathognomonic" or hallmark finding that practically settles the case.
- Unconstrained Simulation & Policy Optimization: During training, the agent interacts with an LLM-powered clinical simulator using completely free-form text—no multiple-choice menus of tests or diagnoses. Critically, the simulator only sees the raw chart, never the final diagnosis, preventing it from accidentally dropping hints. At the end of a case, an evaluator checks which atomic facts the agent uncovered and computes Criticality Recall (the fraction of total diagnostic value found). The agent is then updated using a standard GRPO-style policy gradient, rewarded for a combination of getting the diagnosis right, uncovering high-criticality facts, and keeping the number of steps low.
Datasets
The authors train and evaluate on two existing datasets that test very different diagnostic muscles:
- MIMIC-CDM: Real emergency department records derived from MIMIC-IV covering three common abdominal conditions (cholecystitis, diverticulitis, pancreatitis). These charts are long—averaging 131 atomic facts, over 80% of which are criticality-0 routine noise. Here, the challenge is finding the needle in the haystack to tell similar conditions apart.
- Rare Disease Dataset: Complex gastrointestinal and hepatobiliary case reports from medical literature, where every case is a distinct, uncommon diagnosis. These are short and curated (averaging 10 facts), testing whether an agent can recognize the hallmarks of conditions it has barely seen.
Key Insights and Ideas
- Rewarding the destination isn't enough; you have to reward the clues. When the authors trained a model using only a binary reward for the final diagnosis, accuracy stagnated or even dropped slightly compared to the untrained base model. Adding the criticality-weighted evidence reward unlocked immediate jumps in performance.
- Statistical rarity $\neq$ clinical importance. Could you skip clinical scoring and just reward the agent for finding facts that other models rarely uncover? The authors tested inverse-frequency rewards ("Linear IDF" and "Band freq") and found they failed—one even tanked accuracy from 55.5% to 48.0%. Just because an obscure lab value is rarely requested doesn't mean it helps diagnose the patient.
- Quality completely trumps quantity. By feeding evidence gathered by 12 different agents into a single, fixed "reasoner" LLM, the authors ran a regression to see what actually drives diagnostic success. Ordering more tests (coverage) had no statistically significant effect ($p = 0.862$). Concentrating on criticality-3 hallmark facts was the only significant predictor of a correct diagnosis ($p = 0.002$).
- Knowing when to pivot. Qualitative case studies show TraceDx agents avoiding premature closure—abandoning an initial textbook hypothesis when an imaging result contradicts it, or ordering a specialized functional scan (like a HIDA scan) when standard ultrasounds leave two competing diagnoses tied.
Key Results
- Consistent boosts across scales: TraceDx improved both Qwen3-32B and Kimi-K2.5 by roughly 4.5 to 5.4 percentage points across both datasets (e.g., Qwen3-32B rose from 31.6% to 37.0% on Rare Disease, and 55.5% to 60.0% on MIMIC-CDM).
- Punching above their weight: Kimi-K2.5 + TraceDx hit 61.3% on MIMIC-CDM and 42.4% on Rare Disease, beating major closed-weight frontier models including GPT-5 (56.7% / 41.9%), GPT-5.4 (60.4% / 37.4%), and Claude Sonnet 4.5 (59.5% / 35.7%), trailing mainly Claude Opus 4.7 (65.3% / 45.6%).
- Disease structure matters: Gains were largest in conditions with clear, decisive tests like diverticulitis (where CT imaging is definitive), and muted in syndromic conditions like cholecystitis, which relies on piecing together multiple mild signs rather than one smoking gun.
Limitations and Future Work
- Syndrome dilution: As seen with cholecystitis, criticality-guided training is less effective when a disease lacks a single pathognomonic finding and instead requires synthesizing broad, low-level criteria.
- Noise compression: In dense hospital records like MIMIC-CDM, routine normal labs flood the chart with criticality-0 facts, compressing the signal range for case-level statistical inference (details on simulator limitations are also noted as being in the paper's appendices).
- Future directions: The authors suggest that this "atomize-and-score" pipeline isn't limited to medicine—it could serve as a reusable training and evaluation signal in other expert domains where sequential decisions hinge on gathering high-value evidence.
Summary updated