Skip to main content
QUICK REVIEW

[论文解读] Multi-hop Question Answering over Knowledge Graphs using Large Language Models

Abir Chakraborty|arXiv (Cornell University)|Apr 30, 2024
Topic ModelingComputer Science被引用 3
一句话总结

本文提出了一种新颖的少样本学习框架,用于基于大语言模型(LLMs)在知识图谱上进行多跳问答,结合了信息检索(IR)与语义解析(SP)方法。通过迭代提取并优化相关实体与关系,IR-LLM方法在复杂数据集(如ComplexWebQSP)上实现了最先进性能,Hits@1达到52.59%,优于监督基线方法与现有LLM方法。

ABSTRACT

Knowledge graphs (KGs) are large datasets with specific structures representing large knowledge bases (KB) where each node represents a key entity and relations amongst them are typed edges. Natural language queries formed to extract information from a KB entail starting from specific nodes and reasoning over multiple edges of the corresponding KG to arrive at the correct set of answer nodes. Traditional approaches of question answering on KG are based on (a) semantic parsing (SP), where a logical form (e.g., S-expression, SPARQL query, etc.) is generated using node and edge embeddings and then reasoning over these representations or tuning language models to generate the final answer directly, or (b) information-retrieval based that works by extracting entities and relations sequentially. In this work, we evaluate the capability of (LLMs) to answer questions over KG that involve multiple hops. We show that depending upon the size and nature of the KG we need different approaches to extract and feed the relevant information to an LLM since every LLM comes with a fixed context window. We evaluate our approach on six KGs with and without the availability of example-specific sub-graphs and show that both the IR and SP-based methods can be adopted by LLMs resulting in an extremely competitive performance.

研究动机与目标

  • 评估大语言模型(LLMs)在知识图谱(KGs)上回答复杂多跳问题的有效性。
  • 通过设计高效的检索与推理流水线,应对LLMs上下文窗口有限的挑战。
  • 比较基于IR与基于SP的提示策略在LLMs用于多跳问答时的性能表现。
  • 证明在某些知识图谱基准上,使用少样本示例的少样本学习可超越监督微调方法。
  • 研究子图提取与实体/关系定位对LLM在多跳问答任务中推理能力的影响。

提出的方法

  • 提出一种迭代式、由LLM驱动的流水线,基于问题语义从知识图谱中提取相关节点与边。
  • 采用少样本示例的上下文学习,引导LLM生成知识图谱上的准确推理路径。
  • 对于IR-LLM,将子图的线性化表示(即自然语言化的三元组)与实体/关系列表输入LLM。
  • 对于SP-LLM,提供知识图谱本体的自然语言化描述(类、关系、属性),以支持SPARQL查询生成。
  • 采用动态少样本提示策略,以适应WebQSP、Meta-QA与ComplexWebQSP等数据集间不同的复杂度。
  • 在流水线中实现决策机制,根据LLM生成的中间结果判断是否继续推理链。
(a) The main flow that invokes ’get 1-hop candidates’ component.
(a) The main flow that invokes ’get 1-hop candidates’ component.

实验结果

研究问题

  • RQ1基于大语言模型的上下文学习能否有效处理大规模知识图谱上的多跳问答?
  • RQ2在多跳问答场景中,基于IR的LLM提示策略与基于SP的提示策略性能如何比较?
  • RQ3少样本示例在不进行微调的情况下,能在多大程度上提升LLM在多跳问答中的泛化能力?
  • RQ4知识图谱的结构与规模是否会影响LLM最优提示策略的选择?
  • RQ5基于LLM的上下文学习是否能在复杂、开放域的多跳问答基准上超越监督微调方法?

主要发现

  • IR-LLM方法在ComplexWebQSP数据集上实现了52.59% Hits@1的新最先进性能,超越了此前监督方法的51.2%最先进水平。
  • 在WebQSP数据集上,IR-LLM性能相比现有方法提升了8%,展现出无需微调的强泛化能力。
  • 在Meta-QA-3hop上,IR-LLM方法相比先前基线实现了11%的性能提升,凸显其在复杂推理路径中的有效性。
  • 在LC-QuAD v1.0上,SP-LLM方法在同类LLM方法中取得了最高Hits@1表现,显著优于先前工作。
  • 在KQAPro上,SP-LLM方法实现了72.9% Hits@1与76.96%精确匹配准确率,优于先前基于ChatGPT的尝试,但在F1与EM指标上仍落后于微调模型。
  • 在已知与未知实体场景下,性能差距极小(KQAPro上分别为72.90%与71.98% Hits@1),表明少样本示例足以实现有效的SPARQL生成。
(b) Sub-components that get 1-hop nodes.
(b) Sub-components that get 1-hop nodes.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。