GNNVerifier:基于图的LLM任务规划验证器
GNNVerifier: Graph-based Verifier for LLM Task Planning
AI总结:
本文提出基于图的验证器,通过构建任务计划的图结构,利用图神经网络评估计划的合理性,从而纠正LLM生成的计划中的错误。
摘要:
大型语言模型(LLM)促进了自主代理的发展。作为此类代理的核心组件,任务规划旨在将复杂的自然语言请求分解为具体的可解决子任务。由于LLM生成的计划经常容易产生幻觉且对长上下文提示敏感,最近的研究引入了计划验证器来识别和纠正潜在的错误。然而,大多数现有方法仍依赖于LLM作为验证器通过额外的提示进行计划审查或自我反思。基于LLM的验证器可能被合理的叙述误导,并且难以检测由步骤间的结构性关系引起的失败,例如类型不匹配、缺失中间变量或断裂的依赖关系。为了解决这些限制,我们提出了一种基于图的验证器用于LLM任务规划。具体而言,所提出的方法有四个主要组成部分:首先,我们将计划表示为具有丰富属性的有向图,其中节点表示子任务,边编码执行顺序和依赖约束。其次,图神经网络(GNN)然后执行结构评估和诊断,产生图层面的合理性分数用于计划接受,以及节点/边层面的风险分数以定位错误区域。第三,我们从真实计划图中构建可控的扰动,并自动生成带有细粒度注释的训练数据。最后,受GNN验证器的反馈引导,我们使LLM能够进行局部编辑(例如,工具替换或插入)以纠正计划,当图层面的分数不足时。在多样化的数据集、基础LLM和规划器上进行的大量实验表明,我们的GNNVerifier在提高计划质量方面取得了显著的进步。我们的数据和代码可在https://github.com/BUPT-GAMMA/GNNVerifier上获得。
英文摘要:
Large language models (LLMs) facilitate the development of autonomous agents. As a core component of such agents, task planning aims to decompose complex natural language requests into concrete, solvable sub-tasks. Since LLM-generated plans are frequently prone to hallucinations and sensitive to long-context prom-pts, recent research has introduced plan verifiers to identify and correct potential flaws. However, most existing approaches still rely on an LLM as the verifier via additional prompting for plan review or self-reflection. LLM-based verifiers can be misled by plausible narration and struggle to detect failures caused by structural relations across steps, such as type mismatches, missing intermediates, or broken dependencies. To address these limitations, we propose a graph-based verifier for LLM task planning. Specifically, the proposed method has four major components: Firstly, we represent a plan as a directed graph with enriched attributes, where nodes denote sub-tasks and edges encode execution order and dependency constraints. Secondly, a graph neural network (GNN) then performs structural evaluation and diagnosis, producing a graph-level plausibility score for plan acceptance as well as node/edge-level risk scores to localize erroneous regions. Thirdly, we construct controllable perturbations from ground truth plan graphs, and automatically generate training data with fine-grained annotations. Finally, guided by the feedback from our GNN verifier, we enable an LLM to conduct local edits (e.g., tool replacement or insertion) to correct the plan when the graph-level score is insufficient. Extensive experiments across diverse datasets, backbone LLMs, and planners demonstrate that our GNNVerifier achieves significant gains in improving plan quality. Our data and code is available at https://github.com/BUPT-GAMMA/GNNVerifier.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。