MedRAG: Enhancing Retrieval-augmented Generation with Knowledge Graph-Elicited Reasoning for Healthcare Copilot

Xuejiao Zhao, Siyan Liu, Su-Yin Yang, Chunyan Miao

Abstract

Diagnostic errors contribute significantly to global healthcare burdens, often stemming from the inability of AI systems to distinguish between diseases with overlapping symptoms. This paper introduces MedRAG, a novel framework that enhances Retrieval-Augmented Generation (RAG) by grounding Large Language Models (LLMs) in a structured, four-tier hierarchical Knowledge Graph (KG). By explicitly eliciting differential reasoning through expert-verified diagnostic differences, MedRAG reduces misdiagnosis rates and proactively suggests clarifying follow-up questions.

Introduction

In the United States alone, diagnostic errors are linked to nearly 800,000 deaths or permanent disabilities annually. While Large Language Models (LLMs) and standard RAG systems—which retrieve relevant documents to inform model responses—have shown promise in medical contexts, they frequently falter during complex clinical reasoning.

The primary challenge is manifestation overlap, where distinct conditions present with nearly identical symptoms (e.g., sciatica vs. lumbar canal stenosis). Standard RAG models often rely on heuristic-based similarity, resulting in vague or "middle-of-the-road" diagnoses. They lack the specialized "differential diagnosis" logic that human clinicians utilize to identify subtle "tie-breaker" symptoms. MedRAG addresses this gap by integrating structured medical knowledge directly into the generation process.

Comparison of standard RAG failures (a) versus MedRAG's KG-elicited reasoning and proactive questioning (b).

Methodology

MedRAG introduces a systematic "KG-elicited reasoning" architecture comprising several key modules:

  1. Four-Tier Hierarchical KG: The system utilizes a KG organized into Broad Categories, Subcategories, Specific Diseases, and Manifestations. This structure is tailored to specific Electronic Health Record (EHR) databases using LLM-based topic aggregation and hierarchical clustering.
  2. Manifestation Augmentation: To capture clinical nuances, the KG is augmented with "diagnostic key differences"—specific features that distinguish similar diseases, such as whether a specific posture relieves or exacerbates pain.
  3. Upward Traversal and Matching: Rather than performing a flat vector search, MedRAG decomposes input symptoms, matches them to the KG, and performs an "upward traversal" to identify the most probable disease subcategory.
  4. KG-Elicited Reasoning: The final LLM prompt includes both similar historical cases and the specific "diagnostic differences" extracted from the KG. This forces the model to reason through contradictions and nuances.
  5. Proactive Questioning: Using a "discriminability score" based on graph centrality, the system identifies missing information that would most effectively narrow the diagnosis, suggesting these as follow-up questions for the clinician.

Experimental Evaluation

The authors evaluated MedRAG on two distinct datasets:

  • DDXPlus: A large-scale public dataset of 1.3 million synthesized EHR records covering 49 diagnoses.
  • CPDD (Chronic Pain Diagnostic Dataset): A private, real-world dataset from Tan Tock Seng Hospital, containing 551 patients with 33 distinct chronic pain diagnoses, providing a rigorous test in "noisy" clinical environments.

Results and Discussion

MedRAG consistently outperformed state-of-the-art RAG baselines, such as FL-RAG and DRAGIN.

  • Accuracy Gains: On the real-world CPDD dataset, MedRAG improved specific diagnostic accuracy (L3 granularity) by 11.32% over the next best model.
  • Model Agnosticism: The framework provided robust gains across various backbones, including Llama-3, Mixtral, and GPT-4o. Notably, it improved the L3 accuracy of Mixtral-8x7B from 22.34% to 63.46%.
  • Proactive Utility: In scenarios with partial symptom data, the proactive questioning mechanism successfully recovered diagnostic accuracy, which rose from 52.83% to 66.04% as high-discriminability questions were answered.

A key insight is that in medicine, finding similar cases is insufficient; the value lies in identifying differences. By providing the "delta" between similar diseases, MedRAG moves from heuristic matching to true differential reasoning. Furthermore, structured KG knowledge acts as a "reasoning anchor," helping models navigate the noise inherent in retrieved text.

Conclusion and Future Work

MedRAG represents a significant advancement in medical AI assistants. Future research will focus on multimodal integration, incorporating medical imaging (MRI/CT) and laboratory results. Additionally, the team plans to implement "passive listening" capabilities, allowing the system to provide real-time suggestions during doctor-patient consultations without manual data entry.

Summary updated

BibTeX
@inproceedings{zhao2025medrag,
  author = {Xuejiao Zhao and Siyan Liu and Su-Yin Yang and Chunyan Miao},
  title = {{MedRAG: Enhancing Retrieval-augmented Generation with Knowledge Graph-Elicited Reasoning for Healthcare Copilot}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure