arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.17330cs.CL
收藏

面向大语言模型的生物医学知识图谱优化提示生成

Biomedical knowledge graph-optimized prompt generation for large language models

University of California San Francisco(加州大学旧金山分校);San Diego Supercomputer Center, University of California, San Diego(加州大学圣地亚哥分校圣地亚哥超级计算机中心);University of California, San Francisco(加州大学旧金山分校);Institute for Systems Biology(系统生物学研究所);Bakar Computational Health Sciences Institute, University of California, San Francisco(加州大学旧金山分校巴卡尔计算健康科学研究所);Mate Bioservices, Inc.(Mate 生物服务公司)
Karthik Soman, Peter W Rose, John H Morris, Rabia E Akbas, Brett Smith, Braian Peetoom, Catalina Villouta-Reyes, Gabriel Cerono, Yongmei Shi, Angela Rizk-Jackso… 展开作者

Karthik Soman, Peter W Rose, John H Morris, Rabia E Akbas, Brett Smith, Braian Peetoom, Catalina Villouta-Reyes, Gabriel Cerono, Yongmei Shi, Angela Rizk-Jackson, Sharat Israni, Charlotte A Nelson, Sui Huang, Sergio E Baranzini

AI总结:

本研究提出基于生物医学知识图谱SPOKE的令牌优化KG-RAG框架,通过极简图谱模式和嵌入剪枝降低令牌消耗,显著提升开源与专有大模型在生物医学问答任务上的性能,实现低成本的领域适配。

摘要:

大语言模型(LLM)正以前所未有的速度被推广应用,但在生物医学这类知识密集型领域仍面临挑战。预训练和领域特定微调等解决方案会带来巨大的计算开销,还需要额外的领域专业知识。为此,我们提出一种令牌优化且鲁棒的基于知识图谱的检索增强生成(Knowledge Graph-based Retrieval Augmented Generation, KG-RAG)框架,该框架借助大规模生物医学知识图谱SPOKE,与Llama-2-13b、GPT-3.5-Turbo和GPT-4等LLM结合,生成以已有知识为依据的高质量生物医学文本。\n与现有基于知识图谱的RAG技术相比,所提方法采用极简图谱模式进行上下文提取,并使用嵌入方法进行上下文剪枝。这种上下文提取优化可在不损失准确率的前提下将令牌消耗量降低50%以上,实现了在专有LLM上兼具成本效益与鲁棒性的RAG部署。KG-RAG通过生成基于已有知识的回答,并搭配准确的来源出处及统计证据(若存在)支撑结论,在各类生物医学提示任务中持续提升LLM的性能。\n在人工标注数据集(如生物医学判断题和选择题MCQ数据集)上的进一步基准测试显示,Llama-2模型在难度较高的MCQ数据集上的性能提升了71%,证明该框架能够赋能参数量更少的开源模型处理领域特定问题。此外,KG-RAG还提升了GPT-3.5、GPT-4等专有GPT模型的性能。综上,该框架以令牌优化的方式结合了知识图谱的显性知识与LLM的隐性知识,从而以高成本效益的方式增强了通用LLM处理领域特定问题的适配能力。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑