Medical Graph RAG: Towards Safe Medical Large Language Model via Graph Retrieval-Augmented Generation

Junde Wu, Jiayuan Zhu, Yunli Qi, Jingkun Chen, Min Xu, Filippo Menolascina, Vicente Grau

Abstract

We introduce a novel graph-based Retrieval-Augmented Generation (RAG) framework specifically designed for the medical domain, called \textbf{MedGraphRAG}, aimed at enhancing Large Language Model (LLM) capabilities for generating evidence-based medical responses, thereby improving safety and reliability when handling private medical data. Graph-based RAG (GraphRAG) leverages LLMs to organize RAG data into graphs, showing strong potential for gaining holistic insights from long-form documents. However, its standard implementation is overly complex for general use and lacks the ability to generate evidence-based responses, limiting its effectiveness in the medical field. To extend the capabilities of GraphRAG to the medical domain, we propose unique Triple Graph Construction and U-Retrieval techniques over it. In our graph construction, we create a triple-linked structure that connects user documents to credible medical sources and controlled vocabularies. In the retrieval process, we propose U-Retrieval which combines Top-down Precise Retrieval with Bottom-up Response Refinement to balance global context awareness with precise indexing. These effort enable both source information retrieval and comprehensive response generation. Our approach is validated on 9 medical Q\&A benchmarks, 2 health fact-checking benchmarks, and one collected dataset testing long-form generation. The results show that MedGraphRAG consistently outperforms state-of-the-art models across all benchmarks, while also ensuring that responses include credible source documentation and definitions. Our code is released at: https://github.com/MedicineToken/Medical-Graph-RAG.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Fake HealthMedGraphRAG (GPT-4)Accuracy86.5%+8.1 vs baselinemodel=GPT-4 · retrieval=MedGraphRAG
Source quote
L164: GPT-4 │ 86.5 │ 83.4 │ 91.3 │ 81.5 │ 83.3 │ 91.5 │ 98.1 │ 95.8 │ 93.2 │ 98.5 │ 96.4
MedQAMedGraphRAG (GPT-4)Accuracy91.3%+2.4 vs baselinemodel=GPT-4 · retrieval=MedGraphRAG
Source quote
L164: GPT-4 │ 86.5 │ 83.4 │ 91.3 │ 81.5 │ 83.3 │ 91.5 │ 98.1 │ 95.8 │ 93.2 │ 98.5 │ 96.4
MultiMedQAMedGraphRAG (human-evaluation table row printed “MedGrapgRAG”)CP (citation precision)92+8 vs baselineevaluation=human evaluation
Source quote
L179: MedGrapgRAG │ 97 │ 94 │ 92 │ 86
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
Fake HealthGraphRAG (GPT-4) baselineAccuracy78.4%model=GPT-4 · retrieval=GraphRAG
Source quote
L157: GPT-4 │ 78.4 │ 77.8 │ 88.9 │ 77.2 │ 77.9 │ 82.1 │ 95.1 │ 94.8 │ 82.6 │ 92.5 │ 94.0
MedQAGraphRAG (GPT-4) baselineAccuracy88.9%model=GPT-4 · retrieval=GraphRAG
Source quote
L157: GPT-4 │ 78.4 │ 77.8 │ 88.9 │ 77.2 │ 77.9 │ 82.1 │ 95.1 │ 94.8 │ 82.6 │ 92.5 │ 94.0
MultiMedQAMIRAGE baselineCP (citation precision)84evaluation=human evaluation
Source quote
L178: MIRAGE │ 95 │ 90 │ 84 │ 75 │ 91
BibTeX
@misc{wu2024medical,
  author = {Junde Wu and Jiayuan Zhu and Yunli Qi and Jingkun Chen and Min Xu and Filippo Menolascina and Vicente Grau},
  title = {{Medical Graph RAG: Towards Safe Medical Large Language Model via Graph Retrieval-Augmented Generation}},
  year = {2024},
  eprint = {2408.04187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.04187},
}

Loading related content...

Figure