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

基于逻辑编程与大语言模型的知识图谱领域特定问答

Domain Specific Question Answering Over Knowledge Graphs Using Logical Programming and Large Language Models

University at Buffalo(布法罗大学)

Navid Madani, Rohini K. Srihari, Kenneth Joseph

AI总结:

本研究针对领域特定知识图谱问答的特殊性,将Prolog逻辑编程与大语言模型结合生成程序推导答案,在MetaQA数据集上仅用少量标注数据即实现所有测试问题的准确回答,提供了可解释且鲁棒的解决方案。

摘要:

针对领域特定知识图谱的问答任务,由于关系数量有限且领域具有特殊性,需要采用定制化方法。我们的方法将经典逻辑编程语言集成到大语言模型(LLMs)中,得以利用逻辑推理能力解决知识图谱问答(KGQA)任务。通过将问题表示为可读性强、表征接近自然语言的Prolog查询,我们推动了程序推导式答案的生成。为验证方法的有效性,我们使用知名基准数据集MetaQA对其进行评估。实验结果表明,即便仅在少量标注数据上训练,我们的方法也能准确识别所有测试问题的正确答案实体。总体而言,本研究提出了一种解决领域特定图谱问答问题的可行方案,通过融入逻辑编程语言提供了一种可解释且鲁棒的解决方案。

英文摘要:

Answering questions over domain-specific graphs requires a tailored approach due to the limited number of relations and the specific nature of the domain. Our approach integrates classic logical programming languages into large language models (LLMs), enabling the utilization of logical reasoning capabilities to tackle the KGQA task. By representing the questions as Prolog queries, which are readable and near close to natural language in representation, we facilitate the generation of programmatically derived answers. To validate the effectiveness of our approach, we evaluate it using a well-known benchmark dataset, MetaQA. Our experimental results demonstrate that our method achieves accurate identification of correct answer entities for all test questions, even when trained on a small fraction of annotated data. Overall, our work presents a promising approach to addressing question answering over domain-specific graphs, offering an explainable and robust solution by incorporating logical programming languages.

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

↑