TL;DR
When a doctor interviews you, they aren't just making conversation—they are running a mental probability engine, asking strategic questions to rule out diagnoses. Small Language Models (SLMs) are great at the conversational part and cheap enough for privacy-sensitive hospital servers, but they struggle to track diagnostic probabilities across multiple turns. ProbMedTOD solves this by automatically building a clinical Bayesian Network from scratch and pairing it with an SLM, giving lightweight models the structured, "System 2" clinical reasoning of an experienced physician.
What Problem Does This Paper Address?
Taking a patient's medical history is an exercise in reasoning under uncertainty. Symptoms overlap, patients use vague everyday language ("can't catch my breath" instead of dyspnea), and every answer shifts the odds of what might be wrong.
While massive Large Language Models (LLMs) are surprisingly good at medical Q&A, deploying them in real clinics is tough due to strict patient privacy laws, high costs, and latency. Small Language Models ($\le$8B parameters) are practical to run locally, but they operate mostly on fast, intuitive "System 1" pattern-matching. They lack an explicit "System 2" mechanism to maintain a probabilistic belief over candidate diseases and strategically pick the most informative next question.
Bayesian Networks (BayesNets)—probabilistic graphs that map causes to effects—are a classic, auditable tool for medical diagnosis. However, they are notoriously expensive to build by hand, requiring human experts to define medical ontologies, causal links, and exact conditional probabilities. The authors ask: Can we automate the creation of clinical BayesNets, and wire them into SLMs to guide patient interviews?
Methods
ProbMedTOD tackles both the construction of the probabilistic brain and its integration into a live dialogue system.
First, the system automatically synthesizes a tripartite BayesNet (connecting Risk Factors $\rightarrow$ Diseases $\rightarrow$ Symptoms, modeled via Noisy-OR gates) from just a small handful of clinical notes and web references, requiring zero human annotation:
- Ontology Building: An LLM extracts symptoms and risk factors from patient notes, using a clinical retriever (SapBERT) and clustering to merge synonyms and drop vague terms like "feeling unwell."
- Structure Prediction: To avoid learning spurious correlations from a tiny note corpus, an LLM searches authoritative web pages (like CDC or MedlinePlus) for each disease and draws causal edges only when the medical literature supports them.
- Parameter Estimation: An LLM directly estimates the numerical baseline disease priors and edge strengths (conditional probabilities).
Once built, ProbMedTOD runs a multi-agent dialogue loop powered by Chain-of-Thought prompting:
- BayesNet Agent: Translates free-form patient replies into clinical nodes using a retrieve-rerank pipeline, updates the confirmed/denied evidence state, and runs fast, linear-time probabilistic inference to update disease posteriors.
- Policy Agent: Combines the conversation history with the BayesNet's probability distribution to ask a follow-up question targeting the biggest source of diagnostic uncertainty—or decides it has enough evidence to stop.
- Diagnosis Agent: Weighs the final BayesNet probabilities against the full linguistic nuance of the transcript to output the top-5 likely diagnoses.
Datasets
Because fixed dialogue transcripts penalize valid alternative questioning orders (asking about fever before chills is just as valid as the reverse), the authors evaluate ProbMedTOD interactively using an LLM patient simulator (powered by Qwen3.8-27B), including a "noisy" variant that guesses or expresses uncertainty. They test on three datasets (split into tiny sets for BayesNet construction and larger sets for evaluation):
- DDXPlus: Synthetic patient profiles spanning 49 conditions across specialties (144 notes to build the network; 882 for testing, plus 1M cases used to build an upper-bound "Oracle" BayesNet).
- MIMIC-IV Notes (Pulmonary): Real, de-identified hospital discharge notes filtered to 17 clear pulmonary conditions like pneumonia and tuberculosis (66 build; 197 test).
- MIMIC-IV Notes (Abdominal): An established subset of real hospital notes covering 4 common abdominal diseases (100 build; 599 test).
Key Insights and Ideas
- Small models need explicit scaffolding; giants do it implicitly: BayesNet guidance gives 4B–8B models a massive boost, helping them avoid diagnostic tunnel vision. However, 32B+ and frontier models see almost zero gain over their base configurations—suggesting giant models already do reasonable implicit belief-tracking in their weights.
- Probabilistic reasoning beats flat RAG: Simply handing a model medical documents (Retrieval-Augmented Generation) doesn't tell it how to weigh conflicting evidence. Pairing RAG with the BayesNet consistently beats RAG alone—and even rescues larger models (like Qwen3-32B) when noisy RAG chunks degrade their baseline performance.
- Graph topology is the real bottleneck: When swapping auto-generated BayesNet parts with ground-truth "Oracle" components, fixing the graph structure (which diseases link to which symptoms) yielded a much bigger accuracy jump than perfecting the exact numerical probabilities.
- LLMs know reasonable clinical odds—with a tweak: The LLM-estimated disease–symptom probabilities aligned closer to empirical data than random or Gaussian baselines. While raw posteriors were overconfident, simple temperature scaling cleanly calibrated them.
Key Results
Evaluated on whether the true primary diagnosis lands near the top of the final ranked list using Mean Reciprocal Rank (MRR) and Hit@$k$:
- Substantial SLM Gains: Across DDXPlus and MIMIC-IV (Pulmonary), adding the BayesNet boosted MRR for Qwen3-4B and Qwen3-8B by 0.09–0.11, and Nemotron-Nano-4B by 0.04–0.06. For Qwen3-8B on Pulmonary notes, Hit@1 jumped from 38% to 49% (and Hit@5 from 68% to 77%).
- Complementary Mechanisms: Ablations show that using the BayesNet only to steer questions improves MRR by 0.01–0.06, while also feeding the final probabilities into the Diagnosis Agent adds another 0.04–0.08.
- Resilience to Patient Noise: Under the noisy simulator (ambiguous or guessed patient answers), absolute scores dropped across the board, yet ProbMedTOD still improved MRR across all SLM tests by 0.02–0.07.
- Standalone Signal: Even without an LLM dialogue agent, ranking test-set evidence purely via the auto-constructed BayesNet achieved 0.53 MRR on DDXPlus (vs. 0.09 random) and 0.45 on MIMIC-Pulm (vs. 0.19 random).
Limitations and Future Work
- Closed-World Assumption: ProbMedTOD requires a predefined list of candidate diseases to build its network. Handling shifting regional diseases or rare conditions will require extending the BayesNet dynamically on the fly.
- Simple Graph Topology: The 3-layer network (Risk Factors $\rightarrow$ Diseases $\rightarrow$ Symptoms) relies on a single-active-disease approximation for fast math. Expanding the topology to include diagnostic lab tests, treatments, or complex multi-disease interactions is left for future work.
- Construction Backbone & Language: The authors built the BayesNets using a fast, lightweight model (Gemini 3.8 Flash) and tested strictly in English. Using heavier reasoning models to synthesize the graph—and testing whether probabilistic clinical structures transfer across languages—are promising next steps.
Summary updated