Abstract
Large Language Models (LLMs) often struggle with the iterative nature of clinical differential diagnosis, frequently falling into traps of hallucination, inefficient questioning, and context loss. This paper introduces MedKGI, a framework designed to transform LLMs from associative token predictors into systematic clinical investigators. By grounding reasoning in a medical knowledge graph and utilizing information theory to optimize inquiry, MedKGI achieves state-of-the-art diagnostic accuracy while significantly reducing dialogue length.
Introduction
Differential diagnosis is a deductive process where clinicians weigh competing hypotheses against emerging evidence. While LLMs show promise in medical applications, they exhibit three primary "pathologies" that hinder clinical utility:
- Hallucinations: Models prioritize plausible linguistic patterns over verified medical facts.
- Inefficient Questioning: Models often ask redundant or non-discriminative questions, failing to narrow down the diagnosis effectively.
- Context Overloading: In multi-turn dialogues, LLMs frequently lose track of previous evidence, leading to inconsistent or contradictory conclusions.
MedKGI addresses these issues by bridging the gap between generative AI and clinical logic through structured knowledge grounding and information-guided inquiry.
Methodology
The MedKGI framework integrates three core components to align LLM behavior with clinical standards:
1. Knowledge-Anchored Grounding
To mitigate hallucinations, MedKGI utilizes PrimeKG, a comprehensive medical knowledge graph. The system maps patient symptoms to standardized entities using a multi-stage pipeline involving Exact Matching, Edit-Distance, and Semantic Embedding via PubMedBERT. This ensures the model's reasoning is constrained by verified medical relationships rather than purely statistical associations.
2. Information Gain-Based Inquiring
Rather than allowing the LLM to generate free-form dialogue, MedKGI treats medical inquiry as an optimization problem. Using Shannon Entropy, the system calculates the Information Gain (IG) for potential questions. By identifying "high-yield" symptoms that most effectively distinguish between competing disease hypotheses, the model avoids "fishing expeditions" and reaches a diagnosis faster.
3. OSCE-Aligned Record Management
To prevent context overloading and inconsistent reasoning, MedKGI maintains a structured diagnostic record in JSON format. This record is modeled after the Objective Structured Clinical Examination (OSCE) standard. It tracks confirmed symptoms, medical history, and clinical findings consistently across turns, providing a stable "state" for the model to reference.
Experimental Evaluation
The framework was evaluated across three diverse benchmarks:
- agent-MedQA: USMLE-style questions processed for agentic interaction.
- agent-CMB: The Chinese Medical Benchmark, testing cross-linguistic clinical performance.
- NEJM Image Challenge: Real-world cases from the New England Journal of Medicine to test multi-modal (image + text) reasoning.
Results and Discussion
MedKGI consistently outperformed 12 baseline models, including specialized medical LLMs like Meditron and HuatuoGPT.
- Diagnostic Accuracy: On the MedQA benchmark, MedKGI (using Qwen3-8B) achieved 69.81% accuracy, a significant improvement over standard dialogue setups.
- Dialogue Efficiency: The system reached diagnoses in an average of 9.11 rounds, compared to 11–18 rounds for baselines—a 30% improvement in efficiency.
- Robustness: The framework generalized well to complex visual cases, maintaining 69.09% accuracy on the multi-modal NEJM dataset.
Ablation studies highlighted the critical role of the Knowledge Graph; its removal resulted in a 25.47% drop in accuracy, confirming that external anchors are essential for maintaining medical reality in LLM outputs.
Conclusion and Future Work
MedKGI demonstrates that structured knowledge and information theory can significantly enhance the clinical reasoning of LLMs. While the current model assumes symptom independence and relies on cooperative patient agents, future work will focus on refining likelihood models to account for symptom clusters and testing against more complex, uncooperative patient simulations. MedKGI serves as a robust diagnostic assistant, though human validation remains a prerequisite for clinical action.
Summary updated