Skip to main content
QUICK REVIEW

[Paper Review] Biomedical knowledge graph-optimized prompt generation for large language models

Karthik Soman, Peter W. Rose|arXiv (Cornell University)|Nov 29, 2023
Topic ModelingComputer Science6 citations
TL;DR

This paper proposes a token-optimized Knowledge Graph-based Retrieval Augmented Generation (KG-RAG) framework that enhances biomedical LLMs using the SPOKE knowledge graph. By minimizing graph schema and using embedding-based context pruning, it reduces token consumption by over 50% while boosting performance—achieving a 71% improvement on a challenging multiple-choice biomedical dataset with Llama-2-13b, demonstrating cost-effective, accurate, and provenance-aware generation on open-source and proprietary LLMs.

ABSTRACT

Large Language Models (LLMs) are being adopted at an unprecedented rate, yet still face challenges in knowledge-intensive domains like biomedicine. Solutions such as pre-training and domain-specific fine-tuning add substantial computational overhead, requiring further domain expertise. Here, we introduce a token-optimized and robust Knowledge Graph-based Retrieval Augmented Generation (KG-RAG) framework by leveraging a massive biomedical KG (SPOKE) with LLMs such as Llama-2-13b, GPT-3.5-Turbo and GPT-4, to generate meaningful biomedical text rooted in established knowledge. Compared to the existing RAG technique for Knowledge Graphs, the proposed method utilizes minimal graph schema for context extraction and uses embedding methods for context pruning. This optimization in context extraction results in more than 50% reduction in token consumption without compromising the accuracy, making a cost-effective and robust RAG implementation on proprietary LLMs. KG-RAG consistently enhanced the performance of LLMs across diverse biomedical prompts by generating responses rooted in established knowledge, accompanied by accurate provenance and statistical evidence (if available) to substantiate the claims. Further benchmarking on human curated datasets, such as biomedical true/false and multiple-choice questions (MCQ), showed a remarkable 71% boost in the performance of the Llama-2 model on the challenging MCQ dataset, demonstrating the framework's capacity to empower open-source models with fewer parameters for domain specific questions. Furthermore, KG-RAG enhanced the performance of proprietary GPT models, such as GPT-3.5 and GPT-4. In summary, the proposed framework combines explicit and implicit knowledge of KG and LLM in a token optimized fashion, thus enhancing the adaptability of general-purpose LLMs to tackle domain-specific questions in a cost-effective fashion.

Motivation & Objective

  • To address the high computational and domain expertise costs of fine-tuning LLMs in biomedicine.
  • To reduce token consumption in RAG pipelines without sacrificing factual accuracy in biomedical reasoning.
  • To enable open-source LLMs like Llama-2 to match or exceed proprietary models (e.g., GPT-3.5, GPT-4) on domain-specific biomedical tasks.
  • To integrate explicit and implicit knowledge from biomedical knowledge graphs with LLMs in a robust, cost-effective manner.
  • To provide accurate provenance and statistical evidence for LLM-generated claims in biomedical contexts.

Proposed method

  • The framework uses the SPOKE biomedical knowledge graph as a retrieval source for factual grounding.
  • It applies minimal graph schema to extract context, reducing irrelevant or redundant information.
  • Embedding-based methods are used to prune low-relevance context, optimizing token usage.
  • Retrieved knowledge is integrated into prompts with structured formatting to guide LLM reasoning.
  • The approach supports both open-source (Llama-2-13b) and proprietary LLMs (GPT-3.5-Turbo, GPT-4).
  • Provenance and statistical evidence are automatically linked to claims in generated responses.

Experimental results

Research questions

  • RQ1Can a knowledge graph-optimized RAG framework reduce token consumption in biomedical LLM prompting without sacrificing accuracy?
  • RQ2To what extent can such a framework enhance the performance of open-source LLMs on domain-specific biomedical benchmarks?
  • RQ3How does the integration of explicit and implicit knowledge from a biomedical KG improve factual consistency and provenance in LLM outputs?
  • RQ4Can minimal schema and embedding-based pruning maintain or improve performance while reducing computational cost?
  • RQ5How does the framework compare to standard RAG methods in terms of robustness and efficiency across diverse biomedical prompts?

Key findings

  • The KG-RAG framework reduced token consumption by over 50% compared to standard RAG techniques, without compromising accuracy.
  • On a challenging biomedical multiple-choice question (MCQ) dataset, Llama-2-13b showed a 71% performance boost when using KG-RAG.
  • The framework enhanced the performance of proprietary models, including GPT-3.5-Turbo and GPT-4, across diverse biomedical prompts.
  • Generated responses included accurate provenance and statistical evidence where available, improving trustworthiness.
  • The method demonstrated robustness across different LLMs, enabling cost-effective deployment on proprietary and open-source models.
  • The integration of explicit and implicit knowledge from SPOKE significantly improved factual grounding and reasoning in LLM outputs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.