arXiv:2410.14211cs.CL2024-10中稿 · The Web Conference…被引 109

用知识图谱路径增强大模型推理,解决幻觉与知识缺失问题

Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoning

  • 通过三阶段动态路径探索,融合图谱与大模型知识进行多跳推理
  • 在五个基准数据集上平均准确率提升18.9%,GPT-3.5表现超ToG+GPT-4
  • 首次实现多实体深度路径检测,提升推理可解释性与可靠性

大语言模型在各类任务中表现优异,但在复杂推理与知识密集型任务中存在幻觉和知识缺失问题。知识图谱以结构化形式存储海量事实,是可靠的推理知识来源。然而现有基于知识图谱的模型面临多跳推理、多实体问题及图结构利用不足等挑战。为此,本文提出路径-图(PoG)方法,通过整合知识图谱中的推理路径来增强大模型推理能力,提升输出的可解释性与可信度。PoG采用三阶段动态多跳路径探索机制,结合大模型自身知识与图谱事实。为提高效率,先对图谱探索进行剪枝,引入三种高效剪枝技术:图结构特征、大模型提示与预训练语言模型(如SBERT),有效缩小候选路径范围。确保所有推理路径均包含高相关性信息,使推理过程更忠实可靠。PoG创新性地利用图结构进行噪声过滤,是首个在知识图谱上实现多实体深层路径检测的推理方法。在五个基准知识图谱问答数据集上的实验表明,PoG在GPT-3.5-Turbo与GPT-4上均优于当前最佳方法ToG,平均准确率提升18.9%。尤其值得注意的是,PoG使用GPT-3.5-Turbo的表现甚至超越ToG搭配GPT-4,最高领先23.9%。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have achieved impressive results in various tasks but struggle with hallucination problems and lack of relevant knowledge, especially in deep complex reasoning and knowledge-intensive tasks. Knowledge Graphs (KGs), which capture vast amounts of facts in a structured format, offer a reliable source of knowledge for reasoning. However, existing KG-based LLM reasoning methods face challenges like handling multi-hop reasoning, multi-entity questions, and effectively utilizing graph structures. To address these issues, we propose Paths-over-Graph (PoG), a novel method that enhances LLM reasoning by integrating knowledge reasoning paths from KGs, improving the interpretability and faithfulness of LLM outputs. PoG tackles multi-hop and multi-entity questions through a three-phase dynamic multi-hop path exploration, which combines the inherent knowledge of LLMs with factual knowledge from KGs. In order to improve the efficiency, PoG prunes irrelevant information from the graph exploration first and introduces efficient three-step pruning techniques that incorporate graph structures, LLM prompting, and a pre-trained language model (e.g., SBERT) to effectively narrow down the explored candidate paths. This ensures all reasoning paths contain highly relevant information captured from KGs, making the reasoning faithful and interpretable in problem-solving. PoG innovatively utilizes graph structure to prune the irrelevant noise and represents the first method to implement multi-entity deep path detection on KGs for LLM reasoning tasks. Comprehensive experiments on five benchmark KGQA datasets demonstrate PoG outperforms the state-of-the-art method ToG across GPT-3.5-Turbo and GPT-4, achieving an average accuracy improvement of 18.9%. Notably, PoG with GPT-3.5-Turbo surpasses ToG with GPT-4 by up to 23.9%.

知识图谱大模型推理多跳问答可解释性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。