HyKGE: A Hypothesis Knowledge Graph Enhanced RAG Framework for Accurate and Reliable Medical LLMs Responses

Xinke Jiang, Ruizhe Zhang, Yongxin Xu, Rihong Qiu, Yue Fang, Zhiyuan Wang, Jinyi Tang, Hongxin Ding, Xu Chu, Junfeng Zhao, Yasha Wang

TL;DR

HyKGE is a novel framework designed to enhance medical AI by leveraging "hypotheses" to bridge the gap between informal user queries and structured Knowledge Graphs (KGs). By generating a potential answer first, the system effectively searches for factual evidence and complex reasoning chains, significantly reducing hallucinations and improving accuracy in high-stakes medical scenarios.

Introduction: The Challenge of Medical RAG

Large Language Models (LLMs) are increasingly applied in medicine but suffer from "hallucinations"—generating confident yet factually incorrect information. Retrieval-Augmented Generation (RAG) aims to mitigate this by fetching external data. However, standard RAG faces three critical hurdles:

  1. The Semantic Gap: User queries are often vague or non-professional (e.g., "my stomach hurts after eating"), making it difficult to match technical terms in structured KGs.
  2. Interaction Efficiency: Advanced RAG methods often require multiple slow and expensive LLM iterations.
  3. Knowledge Monotony: Standard retrieval often returns repetitive or irrelevant data by matching the entire query at once, missing the nuances of complex medical conditions.
Standard RAG often fails to bridge the semantic gap between user queries and technical KG entities.

Methods: The HyKGE Framework

The authors propose HyKGE (Hypothesis Knowledge Graph Enhanced RAG), which operates in four distinct stages to overcome these limitations:

  • Pre-retrieval (The Hypothesis): Instead of searching the KG with the raw query, HyKGE prompts an LLM to generate a "Hypothesis Output" (HO). This "best guess" provides professional medical keywords and potential diagnostic directions.
  • NER & Entity Linking: A specialized medical Named Entity Recognition (NER) model extracts entities from both the query and the hypothesis, mapping them to a massive medical KG (e.g., CMeKG) using dense embeddings.
  • Reasoning Chain Retrieval: HyKGE searches for multi-hop "reasoning chains" (Paths, Co-ancestors, and Co-occurrences) rather than isolated facts. This provides the underlying logic of a diagnosis.
  • HO Fragment Reranking: To address "knowledge monotony," the hypothesis and query are broken into small fragments. Retrieved reasoning chains are then reranked based on their alignment with these specific fragments, ensuring diverse and relevant context.
The HyKGE workflow: generating a hypothesis to guide KG search and retrieve complex reasoning chains.

Key Insights

  • Hallucinations as a Search Tool: HyKGE counter-intuitively uses the LLM’s internal knowledge to generate a hypothesis. Even if flawed, this hypothesis provides the "professional vocabulary" necessary to unlock correct facts within a structured database.
  • Logic over Triples: By focusing on multi-hop chains instead of simple triples, HyKGE helps the LLM understand why a symptom relates to a disease, mimicking clinical reasoning.
  • Granular Reranking: Breaking the hypothesis into fragments prevents the "lost in the middle" phenomenon, allowing the model to match specific parts of a complex medical story to relevant KG evidence.

Evaluation and Results

HyKGE was evaluated on major Chinese medical benchmarks, including MMCU-Medical, CMB-Exam, and CMB-Clin, utilizing KGs with over 1.2 million entities.

  • Accuracy: On MMCU-Medical with GPT-3.5, HyKGE improved Exact Match (EM) scores by 8.55% to 28.15% over existing RAG baselines.
  • Interpretability: In evaluations by 20 medical experts, HyKGE's retrieved knowledge was rated significantly higher in relevance and utility (gains of 84% to 378%).
  • Efficiency: By limiting LLM interactions to just two rounds, HyKGE maintains higher efficiency than many "Chain-of-Thought" RAG methods.

Conclusion

HyKGE demonstrates that "hypothesizing" before retrieving can significantly enhance the reliability of medical LLMs. While limited by current KG coverage and language specificity, it offers a robust path toward more accurate and interpretable AI-driven medical assistance. Future work will focus on multi-language support and dynamic granularity in reranking.

Summary updated

BibTeX
@inproceedings{jiang2025hykge,
  author = {Xinke Jiang and Ruizhe Zhang and Yongxin Xu and Rihong Qiu and Yue Fang and Zhiyuan Wang and Jinyi Tang and Hongxin Ding and Xu Chu and Junfeng Zhao and Yasha Wang},
  title = {{HyKGE: A Hypothesis Knowledge Graph Enhanced RAG Framework for Accurate and Reliable Medical LLMs Responses}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure