arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2306.07863cs.AI
收藏

Synapse:面向计算机控制的带记忆轨迹即示例提示方法

Synapse: Trajectory-as-Exemplar Prompting with Memory for Computer Control

NTU(南洋理工大学)

Longtao Zheng, Rundong Wang, Xinrun Wang, Bo An

AI总结:

本文提出 Synapse 计算机控制智能体,通过状态抽象、完整轨迹提示与可检索示例记忆,解决上下文受限、长程决策和新任务泛化问题,并在 MiniWoB++ 与 Mind2Web 上取得显著提升。

摘要:

使用大型语言模型(LLM)构建用于计算机控制的智能体是一个快速发展的研究领域;在该领域中,智能体接收计算机状态并执行动作以完成复杂任务。以往的计算机智能体已经展示了上下文学习(ICL)的优势;然而,它们的性能受到若干问题的制约。首先,LLM有限的上下文长度和复杂的计算机状态限制了示例数量,因为单个网页就可能占满整个上下文。其次,当前方法中的示例(例如高层计划和多项选择题)无法表示完整轨迹,导致在长周期任务中性能欠佳。第三,现有计算机智能体依赖于任务特定示例,忽视了任务之间的相似性,从而对新任务的泛化能力较差。为应对这些挑战,我们提出了 Synapse,这是一个包含三个关键组件的计算机智能体:i)状态抽象,从原始状态中过滤掉与任务无关的信息,从而在有限上下文中容纳更多示例;ii)轨迹即示例提示,使用经过抽象的状态和动作的完整轨迹来提示 LLM,以改进多步决策;iii)示例记忆,存储示例的嵌入,并通过相似度搜索进行检索,以泛化到新任务。我们在标准任务套件 MiniWoB++ 和真实网站基准 Mind2Web 上评估 Synapse。在 MiniWoB++ 上,Synapse 仅使用来自48个任务的演示,就在64个任务上取得了99.2%的平均成功率(相对提升10%)。值得注意的是,Synapse 是首个解决 MiniWoB++ 中 book-flight 任务的 ICL 方法。在 Mind2Web 上,Synapse 的平均步骤成功率相较此前最先进的提示方案也实现了56%的相对提升。

英文摘要:

Building agents with large language models (LLMs) for computer control is a burgeoning research area, where the agent receives computer states and performs actions to complete complex tasks. Previous computer agents have demonstrated the benefits of in-context learning (ICL); however, their performance is hindered by several issues. First, the limited context length of LLMs and complex computer states restrict the number of exemplars, as a single webpage can consume the entire context. Second, the exemplars in current methods, such as high-level plans and multi-choice questions, cannot represent complete trajectories, leading to suboptimal performance in long-horizon tasks. Third, existing computer agents rely on task-specific exemplars and overlook the similarity among tasks, resulting in poor generalization to novel tasks. To address these challenges, we introduce Synapse, a computer agent featuring three key components: i) state abstraction, which filters out task-irrelevant information from raw states, allowing more exemplars within the limited context, ii) trajectory-as-exemplar prompting, which prompts the LLM with complete trajectories of the abstracted states and actions to improve multi-step decision-making, and iii) exemplar memory, which stores the embeddings of exemplars and retrieves them via similarity search for generalization to novel tasks. We evaluate Synapse on MiniWoB++, a standard task suite, and Mind2Web, a real-world website benchmark. In MiniWoB++, Synapse achieves a 99.2% average success rate (a 10% relative improvement) across 64 tasks using demonstrations from only 48 tasks. Notably, Synapse is the first ICL method to solve the book-flight task in MiniWoB++. Synapse also exhibits a 56% relative improvement in average step success rate over the previous state-of-the-art prompting scheme in Mind2Web.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑