arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.16334cs.AI
收藏

Devil's Advocate:面向大语言模型智能体的预期性反思

Devil's Advocate: Anticipatory Reflection for LLM Agents

UPenn(宾夕法尼亚大学);Google DeepMind(谷歌DeepMind)

Haoyu Wang, Tao Li, Zhiwei Deng, Dan Roth, Yang Li

AI总结:

本研究提出一种赋予LLM智能体内省能力的三重预期性反思零样本方法,在WebArena基准测试中成功率达23.5%,较现有方法高3.5%,同时减少45%的尝试与计划修订次数,提升了复杂任务求解的一致性与效率。

摘要:

在本研究中,我们提出了一种为大语言模型(LLM)智能体赋予内省能力的新方法,以提升其在复杂任务求解中的一致性与适应性。我们的方法会提示LLM智能体将给定任务分解为可处理的子任务(即制定计划),并持续内省自身行动的合理性与结果。我们实现了三重内省干预机制:1)行动执行前对潜在失败情况与替代补救方案进行预期性反思;2)行动后与子任务目标对齐,并通过补救措施回溯,以确保计划执行的最大努力程度;3)计划完成后进行全面复盘,用于未来策略优化。我们在WebArena(网页环境基准测试平台)中对这种零样本方法开展了实际网页任务的部署与实验,结果显示我们的智能体表现更优,成功率达23.5%,较现有零样本方法高出3.5%。实验结果表明,这种内省驱动的方法不仅通过鲁棒的计划执行机制增强了智能体应对意外挑战的能力,还将完成任务所需的尝试次数与计划修订次数减少了45%,提升了效率。

英文摘要:

In this work, we introduce a novel approach that equips LLM agents with introspection, enhancing consistency and adaptability in solving complex tasks. Our approach prompts LLM agents to decompose a given task into manageable subtasks (i.e., to make a plan), and to continuously introspect upon the suitability and results of their actions. %; and when necessary, to explore ``the road not taken.'' We implement a three-fold introspective intervention: 1) anticipatory reflection on potential failures and alternative remedy before action execution, 2) post-action alignment with subtask objectives and backtracking with remedy to ensure utmost effort in plan execution, and 3) comprehensive review upon plan completion for future strategy refinement. By deploying and experimenting with this methodology -- a zero-shot approach -- within WebArena for practical tasks in web environments, our agent demonstrates superior performance with a success rate of 23.5% over existing zero-shot methods by 3.5%. The experimental results suggest that our introspection-driven approach not only enhances the agent's ability to navigate unanticipated challenges through a robust mechanism of plan execution, but also improves efficiency by reducing the number of trials and plan revisions by 45% needed to achieve a task.

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

↑