首页|期刊导航|水利学报|基于意图识别的知识图谱增强大语言模型问答方法

基于意图识别的知识图谱增强大语言模型问答方法OA

Knowledge graph-augmented large language model question answering based on intent recognition:A case study of flood defense and rescue

中文摘要英文摘要

利用水利专业知识图谱增强大语言模型(LLM)在防汛抢险方面的应用时,用户问句的意图识别面临语料匮乏、术语繁多、语义理解困难等挑战,现有方法在小样本意图识别中表现不佳.本文提出一种基于投票策略的多模型融合方法,在小样本条件下准确识别问句意图并提取图谱知识,进而开发水利领域防汛抢险知识问答系统.首先,基于领域实体识别和文本语义表示,构建了基于规则、机器学习和LLM的意图识别单体模型;其次,采用灰狼优化算法,依据单体模型表现分配权重,采用投票策略构建意图识别联合模型.进而,基于联合模型查询防汛抢险知识图谱,基于LLM开发了知识问答系统,实现了自然语言与知识图谱的高效交互.实验结果表明,联合模型在小样本意图识别任务中五折交叉验证的平均F1为0.912,显著超越了以BERT为代表的深度学习模型.所开发防汛抢险知识问答系统实现了准确高效的领域知识检索与重用,为水利知识转化利用和智慧水利建设提供了新路径.

When enhancing the application of large language model(LLM)in flood defense and rescue with water conservancy knowledge graphs,intent recognition of user queries faces challenges such as limited corpora,an abun-dance of specialized terminology,and difficulties in semantic understanding.Existing methods perform poorly in low-resource intent recognition scenarios.This study proposes a multi-model ensemble method based on a voting strategy to accurately identify question intent and extract knowledge from knowledge graphs under low-resource conditions,leading to the development of a question-answering system for flood defense and rescue.Firstly,based on domain entity recognition and text semantic representation,three individual intent recognition models were constructed using rule-based methods,machine learning,and LLMs.Secondly,the Grey Wolf Optimization algorithm was used to assign weights to the individual models based on their performance,and a voting strategy was used to construct an intent recognition ensemble model.Finally,the ensemble model was subsequently employed to query the flood defense and rescue knowledge graph,and in combination with an LLM,a question-answering system was developed to facilitate efficient interaction between natural language queries and the knowledge graph.Experimental results show that the ensemble model achieves an average F1 score of 0.912 in five-fold cross-validation in low-resource intent recognition scenarios,markedly outperforming deep learning models such as BERT.The developed system enables accurate and efficient retrieval and reuse of domain knowledge,providing a new pathway for the transforma-tion and utilization of water conservancy knowledge and the advancement of smart water management.

张栋梁;马刚;周伟;王旭东;张义;王小毛

武汉大学 水工程科学研究院,湖北 武汉 430072||武汉大学 水资源工程与调度全国重点实验室,湖北 武汉 430072武汉大学 水工程科学研究院,湖北 武汉 430072||武汉大学 水资源工程与调度全国重点实验室,湖北 武汉 430072||武汉大学 水工岩石力学教育部重点实验室,湖北 武汉 430072武汉大学 水工程科学研究院,湖北 武汉 430072||武汉大学 水资源工程与调度全国重点实验室,湖北 武汉 430072||武汉大学 水工岩石力学教育部重点实验室,湖北 武汉 430072武汉大学 水资源工程与调度全国重点实验室,湖北 武汉 430072河南城建学院,河南 平顶山 467036武汉大学 水工程科学研究院,湖北 武汉 430072||武汉大学 水资源工程与调度全国重点实验室,湖北 武汉 430072||长江设计集团有限公司,湖北 武汉 430010

建筑与水利

防汛抢险意图识别知识问答投票策略大语言模型知识图谱

flood defense and rescueintent recognitionknowledge-based question answeringvoting strategylarge language modelknowledge graph

《水利学报》 2026 (2)

280-292,305,14

国家重点研发计划项目(2022YFC3005505)国家自然科学基金项目(52322907,52179141,U23B20149)

10.3724/j.slxb.20250256

评论