Enhancing LLM Generation with Knowledge Hypergraph for Evidence-Based Medicine

Chengfeng Dou, Ying Zhang, Zhi Jin, Wenpin Jiao, Haiyan Zhao, Yongqiang Zhao, Zhengwei TaoarXiv 2025 · DOI

Introduction

Evidence-Based Medicine (EBM) requires Large Language Models (LLMs) to retrieve and synthesize high-quality clinical evidence from vast, dispersed sources. While Retrieval-Augmented Generation (RAG) has become a standard approach, it faces significant hurdles in medical contexts. This paper introduces IdepRAG, a framework that leverages knowledge hypergraphs to capture complex medical relationships and an importance-driven algorithm to prioritize relevant evidence.

The Challenge: Relationship Mis-decomposition

Traditional RAG methods often fail in EBM due to two primary issues. First, vector-based retrieval can miss the broader context of scattered medical facts. Second, traditional Knowledge Graphs (KGs) represent data as binary triples (Subject-Predicate-Object). However, medical facts are inherently multivariate. For instance, a treatment's efficacy might depend on a specific disease subtype and specific patient conditions.

When standard LLMs attempt to force these multivariate facts into simple triples, they often strip away critical conditional variables. This "mis-decomposition" leads to oversimplified or incorrect extractions, such as reducing "intra-atrial reentrant tachycardia" to just "tachycardia."

Comparison of standard GraphRAG extraction versus the expected precise extraction, highlighting the 'mis-decomposition' trap.

Methodology: EbmKG and IdepRAG

To address these limitations, the authors propose a two-part solution: the EbmKG (Evidence-based medical Knowledge Graph) and the IdepRAG retrieval algorithm.

1. The Knowledge Hypergraph (EbmKG)

Unlike standard graphs, a hypergraph uses "hyperedges" that can connect any number of nodes, preserving the context of multivariate medical facts. The EbmKG is structured into two layers:

  • Entity-Based Index Layer: Medical entities are normalized using MeSH (Medical Subject Headings) to ensure terminological consistency.
  • Hierarchy Relationship Layer: This layer organizes information into "Evidence" (granular units from text) and "Topics" (higher-tier summaries that aggregate related evidence).

2. The IdepRAG Algorithm

The retrieval process follows a two-stage workflow designed to maximize relevance and precision:

  • Topic Locating: The system extracts search terms from a user query, matches them to entities, and uses a random walk on the hypergraph to identify relevant "Topic" clusters.
  • Importance-Driven Evidence Prioritization (IDEP): Instead of relying solely on similarity, an LLM generates "importance features" based on the query. The system then calculates an attention score between these features and the retrieved evidence to rank the most useful information.
The two-stage IdepRAG workflow: Topic Locating followed by Importance-Driven Evidence Ranking.

Evaluation and Results

The framework was evaluated across six datasets, including Medical QA (MedQA, NLPEC, CMB-clin), Hallucination Detection (CMHD), and a new Decision Support dataset (DDA) featuring simulated doctor-patient dialogs.

IdepRAG consistently outperformed both VectorRAG and GraphRAG across different LLM backbones like Qwen2.5-72B and GPT-4o. Notably, on the Qwen2.5-72B model, IdepRAG achieved an average score of 82.4, significantly higher than VectorRAG (79.5) and GraphRAG (76.3). The most dramatic improvement was seen in the DDA task, where IdepRAG outperformed the next best method by nearly 14 points (77.8 vs 63.4).

Key Insights and Discussion

  • Hypergraphs as Context Anchors: By grouping related evidence under "Topics" via hyperedges, the model maintains the "connective tissue" between facts that vector databases often lose.
  • The "LLM Ability" Paradox: The study observed that RAG benefits 7B-parameter models more than 3B models, suggesting that smaller models may lack the reasoning capacity to effectively utilize high-quality retrieved evidence.
  • Efficiency: EbmKG construction achieves a 41% lower token overhead compared to GraphRAG, making it more scalable for large medical libraries.

Limitations and Future Work

While IdepRAG shows great promise, the authors note that future work will focus on integrating evidence quality grading (e.g., distinguishing clinical trials from case studies) and improving the model's perception of fine-grained details, such as specific time-window constraints for treatments (e.g., "must be administered within 4.5 hours").

Summary updated

BibTeX
@misc{dou2025enhancing,
  author = {Chengfeng Dou and Ying Zhang and Zhi Jin and Wenpin Jiao and Haiyan Zhao and Yongqiang Zhao and Zhengwei Tao},
  title = {{Enhancing LLM Generation with Knowledge Hypergraph for Evidence-Based Medicine}},
  year = {2025},
  eprint = {2503.16530},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.16530},
}
Figure