Medical Graph RAG: Towards Safe Medical Large Language Model via Graph Retrieval-Augmented Generation
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 →
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| Fake Health | MedGraphRAG (GPT-4) | Accuracy | 86.5%+8.1 vs baseline | model=GPT-4 · retrieval=MedGraphRAGSource quoteL164: GPT-4 │ 86.5 │ 83.4 │ 91.3 │ 81.5 │ 83.3 │ 91.5 │ 98.1 │ 95.8 │ 93.2 │ 98.5 │ 96.4 |
| MedQA | MedGraphRAG (GPT-4) | Accuracy | 91.3%+2.4 vs baseline | model=GPT-4 · retrieval=MedGraphRAGSource quoteL164: GPT-4 │ 86.5 │ 83.4 │ 91.3 │ 81.5 │ 83.3 │ 91.5 │ 98.1 │ 95.8 │ 93.2 │ 98.5 │ 96.4 |
| MultiMedQA | MedGraphRAG (human-evaluation table row printed “MedGrapgRAG”) | CP (citation precision) | 92+8 vs baseline | evaluation=human evaluationSource quoteL179: MedGrapgRAG │ 97 │ 94 │ 92 │ 86 |
Reported baseline / comparator measurements (3)
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| Fake Health | GraphRAG (GPT-4) baseline | Accuracy | 78.4% | model=GPT-4 · retrieval=GraphRAGSource quoteL157: GPT-4 │ 78.4 │ 77.8 │ 88.9 │ 77.2 │ 77.9 │ 82.1 │ 95.1 │ 94.8 │ 82.6 │ 92.5 │ 94.0 |
| MedQA | GraphRAG (GPT-4) baseline | Accuracy | 88.9% | model=GPT-4 · retrieval=GraphRAGSource quoteL157: GPT-4 │ 78.4 │ 77.8 │ 88.9 │ 77.2 │ 77.9 │ 82.1 │ 95.1 │ 94.8 │ 82.6 │ 92.5 │ 94.0 |
| MultiMedQA | MIRAGE baseline | CP (citation precision) | 84 | evaluation=human evaluationSource quoteL178: 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},
}Ask Althea to put this paper to the test.
Loading related content...