通过图修正构建LLM智能体中的连贯空间记忆
Constructing coherent spatial memory in LLM agents through graph rectification
AI总结:
提出LLM-MapRepair框架,通过版本控制和边影响评分检测并修正增量构建的导航图中的结构不一致性,在多个基准上显著提升节点和边召回率。
摘要:
给定通过全局遍历导航指令的地图描述,LLM通常能够推断隐式空间布局并通过提供最短路径来回答用户查询。然而,随着环境变大,这种依赖于上下文的查询变得不可行,这促使需要增量地图构建,即从逐步观察中构建完整的拓扑图。我们提出LLM-MapRepair,一个用于LLM驱动的地图构建和修复的框架,旨在检测、定位和修正增量构建的导航图中的结构不一致性。我们的贡献包括:用于图构建的版本控制机制、用于修复优先级的边影响评分,以及为LLM驱动的地图构建和修复量身定制的MANGO基准的清理变体。我们在四个评估设置上评估该框架:合成逐组件消融(gpt-4.1,每个单元n=20个种子)、跨供应商扫描(覆盖OpenAI、Anthropic和Google的七个LLM,在合成和TextWorld程序生成的文本冒险游戏上)、修复阶段评估(在所有42个清理后的MANGO游戏上,具有非零剩余冲突,共534个冲突;三个供应商×三种模式加上两个非LLM参考),以及在《红楼梦》第16-17章上的端到端自然文本部署。在DRC部署中,LLM-MapRepair使用GPT-4.1实现了94.3%的节点召回率(比直接LLM映射高8.6个百分点)和88.2%的边召回率(高55.8个百分点);召回率的提升伴随着预测节点和边数量约为真实值的4倍(表4),这反映了我们在局限性中讨论的离散化驱动的过度生成权衡。
英文摘要:
Given a map description through global traversal navigation instructions, an LLM can often infer the implicit spatial layout and answer user queries by providing shortest paths. However, such context-dependent querying becomes incapable as environments grow larger, motivating the need for incremental map construction that builds a complete topological graph from stepwise observations. We propose LLM-MapRepair, a framework for LLM-driven construction and map repair, designed to detect, localize, and correct structural inconsistencies in incrementally constructed navigation graphs. Our contributions include a Version Control mechanism for graph construction, an Edge Impact Score for repair prioritization, and a cleaned variant of the MANGO benchmark tailored for LLM-driven map construction and repair. We evaluate the framework on four evaluation settings: a synthetic per-component ablation (gpt-4.1, n=20 seeds per cell), a cross-vendor sweep over seven LLMs from OpenAI, Anthropic, and Google on both synthetic and TextWorld procedurally-generated text-adventure games, a repair-stage evaluation on all 42 cleaned-MANGO games with non-zero residual conflicts (534 conflicts; three vendors x three modes plus two non-LLM references), and an end-to-end natural-text deployment on Chapters 16-17 of Dream of the Red Chamber. On the DRC deployment, LLM-MapRepair achieves 94.3% node recall (+8.6 pp over direct LLM mapping) and 88.2% edge recall (+55.8 pp), using GPT-4.1; the recall improvements come with predicted node and edge counts that are roughly 4x the ground-truth counts (Table 4), reflecting the discretization-driven over-generation trade-off we discuss in the Limitations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。