示例引导规划:增强KGQA的LLM智能体
Exemplar-Guided Planing: Enhanced LLM Agent for KGQA
AI总结:
提出示例引导规划(EGP)框架,通过实体模板化和FAISS检索示例推理路径,增强LLM智能体在KGQA中的任务分解与关系探索,显著提升PoG基线性能。
摘要:
大型语言模型(LLM)作为交互式智能体在知识图谱问答(KGQA)中展现出显著潜力,但常常难以处理自然语言查询与结构化知识图谱(KG)表示之间的语义鸿沟。这导致在KG上的规划次优和探索效率低下,而免训练方法往往未能充分利用训练数据中有价值的推理模式。为解决这些局限,我们提出了一种新颖框架——示例引导规划(EGP),该框架增强了LLM智能体在KGQA中的规划能力。EGP首先通过实体模板化对训练集问题进行处理,以规范化语义变化。随后,利用语义嵌入和高效的FAISS索引,从预处理后的集合中检索高度相似的示例问题及其成功推理路径。这些检索到的示例在两个关键阶段动态引导LLM的规划过程:(1)任务分解,通过将生成的子目标与已验证的推理步骤对齐;(2)关系探索,通过提供高质量的辅助信息以提高关系剪枝的准确性。此外,我们在关系探索过程中引入了一种智能前瞻机制,通过预先探索有希望的路径并可能提前终止探索来提高效率。我们将EGP应用于Plan-on-Graph(PoG)框架,称为PoG-EGP。在两个真实世界的KGQA数据集WebQSP和CWQ上进行的大量实验表明,PoG-EGP显著优于基线PoG系统及其他对比方法。
英文摘要:
Large Language Models (LLMs) as interactive agents show significant promise in Knowledge Graph Question Answering (KGQA) but often struggle with the semantic gap between natural language queries and structured knowledge graph (KG) representations. This leads to suboptimal planning and inefficient exploration on KG, while training-free approaches often underutilize valuable reasoning patterns in training data. To address these limitations, we propose a novel framework, Exemplar-Guided Planning (EGP), which enhances the planning capabilities of LLM agents for KGQA. EGP first preprocesses the training set questions via entity templating to normalize semantic variations. It then retrieves highly similar exemplary questions and their successful reasoning paths from this preprocessed set using semantic embeddings and an efficient FAISS index. These retrieved exemplars dynamically guide the LLM's planning process in two key phases: (1) Task Decomposition, by aligning generated sub-objectives with proven reasoning steps, and (2) Relation Exploration, by providing high-quality auxiliary information to improve relation pruning accuracy. Additionally, we introduce a Smart Lookahead mechanism during relation exploration to improve efficiency by preemptively exploring promising paths and potentially terminating exploration earlier. We apply EGP to the Plan-on-Graph (PoG) framework, termed PoG-EGP. Extensive experiments on two real-world KGQA datasets, WebQSP and CWQ, demonstrate that PoG-EGP significantly improves over the baseline PoG system and other compared methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。