arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.16247cs.AIcs.CL
收藏

AutoManual:通过交互式环境学习由LLM智能体构建指令手册

AutoManual: Constructing Instruction Manuals by LLM Agents via Interactive Environmental Learning

School of Computer Science, Hangzhou Dianzi University(杭州电子科技大学计算机学院);State Key Lab of CAD&CG, Zhejiang University(浙江大学CAD&CG国家重点实验室);School of Software Technology, Zhejiang University(浙江大学软件学院);Fullong Inc.(丰隆公司);NingBo Port Group(宁波港集团)

Minghao Chen, Yihang Li, Yanting Yang, Shiyu Yu, Binbin Lin, Xiaofei He

AI总结:

AutoManual框架通过两个智能体在线交互学习环境规则并生成手册,显著提升任务成功率,如GPT-4-turbo达97.4%。

摘要:

基于大型语言模型(LLM)的智能体在自主完成各领域任务方面展现出潜力,例如机器人、游戏和网页导航。然而,这些智能体通常需要精心设计和专家提示才能在特定领域解决问题,这限制了它们的适应性。我们提出了AutoManual,一个使LLM智能体能够通过交互自主构建理解并适应新环境的框架。AutoManual将环境知识分类为多种规则,并通过两个智能体以在线方式优化这些规则:1)规划器根据当前规则制定可操作的计划,以与环境交互。2)构建器通过结构良好的规则系统更新规则,该系统促进在线规则管理和关键细节保留。为缓解规则管理中的幻觉,我们为构建器引入了基于案例的条件提示策略。最后,制定器智能体将这些规则汇编成一份全面的手册。自动生成的手册不仅能提高适应性,还能指导较小LLM的规划,同时保持人类可读。仅凭一个简单演示,AutoManual显著提高了任务成功率,在ALFWorld基准任务上,使用GPT-4-turbo达到97.4%,使用GPT-3.5-turbo达到86.2%。代码可在https://github.com/minghchen/automanual获取。

英文摘要:

Large Language Models (LLM) based agents have shown promise in autonomously completing tasks across various domains, e.g., robotics, games, and web navigation. However, these agents typically require elaborate design and expert prompts to solve tasks in specific domains, which limits their adaptability. We introduce AutoManual, a framework enabling LLM agents to autonomously build their understanding through interaction and adapt to new environments. AutoManual categorizes environmental knowledge into diverse rules and optimizes them in an online fashion by two agents: 1) The Planner codes actionable plans based on current rules for interacting with the environment. 2) The Builder updates the rules through a well-structured rule system that facilitates online rule management and essential detail retention. To mitigate hallucinations in managing rules, we introduce a *case-conditioned prompting* strategy for the Builder. Finally, the Formulator agent compiles these rules into a comprehensive manual. The self-generated manual can not only improve the adaptability but also guide the planning of smaller LLMs while being human-readable. Given only one simple demonstration, AutoManual significantly improves task success rates, achieving 97.4\% with GPT-4-turbo and 86.2\% with GPT-3.5-turbo on ALFWorld benchmark tasks. The code is available at https://github.com/minghchen/automanual.

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

↑