首页|MedKGGPT:基于知识图谱的医疗大型语言模型设计方法

MedKGGPT:基于知识图谱的医疗大型语言模型设计方法

扫码查看
大型语言模型(Large Language Models,LLM)已经成为现今主流的研究热点,而垂直领域行业大模型则成为落地应用的关键点,以医疗为代表的大型语言模型有着可解释性、可靠性、高安全性等要求。针对这类问题,提出MedKGGPT模型,一个基于ChatGLM的模型,并提出一种面向医疗领域的知识图谱(Knowledge Graphs,KGs)和LLM相结合的框架。框架主要包含两个部分:首先,通过KG三元组中的实体和关系,提出了一种基于KG结构数据的提示工程方法,使得LLM更加具有医学领域的专用知识,提高LLM的可解释性;其次,提出一种利用KG来对齐LLM的方法,将LLM的输出与KG的相关知识进行比较,验证LLM输出结果的一致性和准确性,从而增强了LLM在医疗领域的安全性。实验结果表明,最终生成的MedKGGPT模型能够输出更加具有安全性的结果,说明KG能够有效增强LLM的可解释性,为LLM应用在医疗领域提供了帮助。
MedKGGPT:A Design Method for Medical Large Language Models Based on Knowledge Graphs
Large Language Models(LLMs)have become a mainstream research focus,while large models in vertical industries have become the key to practical applications.LLMs,represented by the medical field,require interpretability,reliability,and high security.To address these issues,we propose the MedKGGPT,a model based on ChatGLM,and a framework that combines Knowledge Graphs(KGs)and LLMs specifically for the medical field.The framework mainly contains two parts.Firstly,through the entities and relationships in the triples of the KGs,we propose a prompt engineering method based on the structural data of the KGs,which makes the LLM more specialized in medical knowledge and improves the LLM's interpretability.Secondly,we propose a method of aligning the LLM with the KGs.This involves comparing the output of the LLM with the related knowledge in the KGs,verifying the consistency and accuracy of the LLM output,thereby enhancing the security of the LLM in the medical field.Experimental results demonstrate that the final MedKGGPT can output more secure results.It is indicated that KGs can effectively enhance the interpretability of the LLM,providing assistance for the application of LLMs in the medical field.

large language modelsmedicineknowledge graphprompt engineeringChatGLM

顾鹏辉、李涛、高阳

展开 >

武汉科技大学 计算机科学与技术学院,湖北 武汉 430065

武汉科技大学 智能信息处理与实时工业系统湖北省重点实验室,湖北 武汉 430065

大型语言模型 医疗 知识图谱 提示工程 ChatGLM

武汉市重点研发计划武汉东湖新技术开发区"揭榜挂帅"项目

20220122020150702022KJB126

2024

计算机技术与发展
陕西省计算机学会

计算机技术与发展

CSTPCD
影响因子:0.621
ISSN:1673-629X
年,卷(期):2024.34(6)
  • 20