MedKGI: Iterative Differential Diagnosis with Medical Knowledge Graphs and Information-Guided Inquiring

Qipeng Wang, Rui Sheng, Yafei Li, Huamin Qu, Yushi Sun, Min ZhuarXiv 2025 · DOI

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:

  1. Hallucinations: Models prioritize plausible linguistic patterns over verified medical facts.
  2. Inefficient Questioning: Models often ask redundant or non-discriminative questions, failing to narrow down the diagnosis effectively.
  3. 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.

Comparison between baseline LLM dialogue and the MedKGI framework, highlighting improvements in efficiency and reasoning grounding.

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.

The MedKGI workflow, illustrating the integration of medical knowledge graphs, information gain calculations, and structured record management.

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

BibTeX
@misc{wang2025medkgi,
  author = {Qipeng Wang and Rui Sheng and Yafei Li and Huamin Qu and Yushi Sun and Min Zhu},
  title = {{MedKGI: Iterative Differential Diagnosis with Medical Knowledge Graphs and Information-Guided Inquiring}},
  year = {2025},
  eprint = {2512.24181},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.24181},
}
Figure