Skip to main content
QUICK REVIEW

[论文解读] Reasoning on Efficient Knowledge Paths:Knowledge Graph Guides Large Language Model for Domain Question Answering

Yuqi Wang, Boran Jiang|arXiv (Cornell University)|Apr 16, 2024
Topic ModelingComputer Science被引用 3
一句话总结

本文提出了一种名为基于高效知识路径推理(RoK)的方法,利用知识图谱(KGs)在仅使用三次大语言模型(LLMs)调用的情况下,引导大语言模型在特定领域问答任务中进行推理。通过结合思维链(CoT)提示与PageRank算法实现高效子图检索,RoK能够识别出高概率的推理路径,从而减少幻觉现象并提升答案准确率。该方法在GenMedGPT-5k、CMCQA和WebQuestions数据集上均优于当前最优方法(SOTA)。

ABSTRACT

Large language models (LLMs), such as GPT3.5, GPT4 and LLAMA2 perform surprisingly well and outperform human experts on many tasks. However, in many domain-specific evaluations, these LLMs often suffer from hallucination problems due to insufficient training of relevant corpus. Furthermore, fine-tuning large models may face problems such as the LLMs are not open source or the construction of high-quality domain instruction is difficult. Therefore, structured knowledge databases such as knowledge graph can better provide domain background knowledge for LLMs and make full use of the reasoning and analysis capabilities of LLMs. In some previous works, LLM was called multiple times to determine whether the current triplet was suitable for inclusion in the subgraph when retrieving subgraphs through a question. Especially for the question that require a multi-hop reasoning path, frequent calls to LLM will consume a lot of computing power. Moreover, when choosing the reasoning path, LLM will be called once for each step, and if one of the steps is selected incorrectly, it will lead to the accumulation of errors in the following steps. In this paper, we integrated and optimized a pipeline for selecting reasoning paths from KG based on LLM, which can reduce the dependency on LLM. In addition, we propose a simple and effective subgraph retrieval method based on chain of thought (CoT) and page rank which can returns the paths most likely to contain the answer. We conduct experiments on three datasets: GenMedGPT-5k [14], WebQuestions [2], and CMCQA [21]. Finally, RoK can demonstrate that using fewer LLM calls can achieve the same results as previous SOTAs models.

研究动机与目标

  • 解决由于缺乏特定领域训练数据而导致大语言模型在特定领域问答中产生幻觉的问题。
  • 减少在知识图谱中进行多跳知识路径检索时对多次LLM调用的依赖。
  • 通过从知识图谱中识别高质量、逻辑连贯的推理路径,提升复杂多跳问题的推理准确率。
  • 通过将答案建立在结构化、可解释的知识路径之上,增强大语言模型生成答案的可解释性与可靠性。
  • 通过有效利用外部知识图谱,最小化对昂贵微调或高成本指令数据构建的需求。

提出的方法

  • 使用思维链(CoT)提示与原始大语言模型(vanilla LLM)从问题中提取关键实体,即使初始答案不正确也能实现。
  • 通过将关键实体与知识图谱中的实体进行匹配,扩展关键实体集合,以丰富潜在的推理路径。
  • 应用PageRank对关键实体之间的候选多跳路径进行排序,优先选择结构相关性更高、逻辑更连贯的路径。
  • 迭代探索所有关键实体对之间的多跳路径,以确保对潜在推理路径的全面覆盖。
  • 基于知识图谱中排名最高的推理路径构建最终提示,以最少的推理调用引导LLM生成最终答案。
  • 使用GPT-4进行答案排名与关键实体匹配,以客观评估性能,避免依赖LLM作为评估者。

实验结果

研究问题

  • RQ1基于知识图谱引导的推理路径选择方法是否能在保持或提升答案准确率的同时,减少大语言模型在特定领域问答中的调用次数?
  • RQ2思维链提示与PageRank的结合在识别知识图谱中高质量、逻辑连贯的推理路径方面有多高效?
  • RQ3与非结构化文档检索或直接大语言模型生成相比,知识图谱中的结构化知识路径在多大程度上能缓解大语言模型的幻觉现象?
  • RQ4该方法在需要跨多个实体与关系进行推理的复杂多跳问题上表现如何?
  • RQ5当初始实体匹配受限时,关键实体扩展在多大程度上能提升路径选择的鲁棒性?

主要发现

  • 在GenMedGPT-5k数据集上,RoK在GPT-4平均排名与关键实体匹配准确率方面均达到最高,显著优于原始GPT-3.5及其他检索增强方法。
  • 在GenMedGPT-5k上,尽管仅使用三次LLM调用,RoK仍展现出卓越的答案质量,表明其在推理路径选择方面具有极高的效率与有效性。
  • 在CMCQA与WebQuestions上,RoK也表现出色,关键实体匹配准确率优于MindMap与基于嵌入的检索方法,尤其在复杂推理场景中优势明显。
  • RoK的路径选择机制通过探索关键实体之间的所有成对多跳路径,相比依赖有限实体匹配的方法,生成了更准确、更完整的推理链。
  • 利用PageRank对候选路径进行排序,提高了选择包含正确答案路径的可能性,如所选路径与参考答案的一致性所示。
  • 即使初始CoT答案错误,关键实体扩展仍使RoK能够恢复并构建有效的推理路径,展现出对初始LLM错误的鲁棒性。

阅读本论文

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

在 Nubint 中阅读本论文

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