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

一种用于知识库问答的上下文模式理解方法

An In-Context Schema Understanding Method for Knowledge Base Question Answering

School of Computer Science and Technology, University of Chinese Academy of Sciences(中国科学院大学计算机科学与技术学院);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Yantao Liu, Zixuan Li, Xiaolong Jin, Yucan Guo, Long Bai, Saiping Guan, Jiafeng Guo, Xueqi Cheng

AI总结:

本文提出一种上下文模式理解(ICSU)方法,通过提供模式相关标注示例使大型语言模型直接理解知识库模式,在KQA Pro和WebQSP数据集上取得有竞争力的性能。

摘要:

知识库问答(KBQA)任务旨在基于给定的知识库回答自然语言问题。近年来,大型语言模型(LLMs)在语言理解方面展现出强大的能力,可用于解决该任务。在此过程中,LLMs面临的一个主要挑战是克服知识库模式的庞大性和异构性。现有方法通过首先使用LLMs生成不含模式特定细节的逻辑形式草稿来规避这一挑战,随后使用额外模块向这些草稿注入模式信息。相比之下,本文提出了一种简单的上下文模式理解(ICSU)方法,利用上下文学习使LLMs能够直接理解模式。具体而言,ICSU通过使用与模式相关的标注示例向LLMs提供模式信息。我们研究了基于原始问题、匿名化问题和生成的SPARQL查询的三种示例检索策略。实验结果表明,与基线方法相比,ICSU在KQA Pro和WebQSP数据集上均展现出具有竞争力的性能。

英文摘要:

The Knowledge Base Question Answering (KBQA) task aims to answer natural language questions based on a given knowledge base. Recently, Large Language Models (LLMs) have shown strong capabilities in language understanding and can be used to solve this task. In doing so, a major challenge for LLMs is to overcome the immensity and heterogeneity of knowledge base schemas.Existing methods bypass this challenge by initially employing LLMs to generate drafts of logic forms without schema-specific details.Then, an extra module is used to inject schema information to these drafts.In contrast, in this paper, we propose a simple In-Context Schema Understanding (ICSU) method that enables LLMs to directly understand schemas by leveraging in-context learning. Specifically, ICSU provides schema information to LLMs using schema-related annotated examples. We investigate three example retrieval strategies based on raw questions, anonymized questions, and generated SPARQL queries. Experimental results show that ICSU demonstrates competitive performance compared to baseline methods on both the KQA Pro and WebQSP datasets.

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

↑