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

面向长时程交互式LLM智能体的强化学习

Reinforcement Learning for Long-Horizon Interactive LLM Agents

Apple Inc.(苹果公司)

Kevin Chen, Marco Cusumano-Towner, Brody Huval, Aleksei Petrenko, Jackson Hamburger, Vladlen Koltun, Philipp Krähenbühl

AI总结:

本文提出LOOP,一种数据和内存高效的近端策略优化变体,直接在目标数字环境中训练交互式LLM智能体,在AppWorld基准上以320亿参数模型超越更大规模的OpenAI o1达9个百分点,并验证了RL对长时程API交互任务的有效性。

摘要:

交互式数字智能体(IDAs)利用有状态数字环境的API来响应用户请求执行任务。虽然由指令微调大语言模型(LLMs)驱动的IDAs能够在多步交互中对接口调用的反馈作出反应,但它们尚未在各自的数字环境中接受训练。先前的方法在AppWorld等复杂基准测试中只能完成不到一半的任务。我们提出了一种强化学习(RL)方法,直接在目标环境中训练IDAs。我们将这种训练形式化为部分可观测马尔可夫决策过程,并推导出LOOP,一种数据和内存高效的近端策略优化变体。LOOP不使用价值网络,并且在内存中仅保留一份底层LLM的副本,使其实现简单直接,且内存效率与微调单个LLM相当。一个在AppWorld环境中使用LOOP训练的320亿参数智能体,比规模大得多的OpenAI o1智能体性能高出9个百分点(相对提升15%)。据我们所知,这是首次报道将RL应用于通过直接API调用与有状态、多领域、多应用环境交互的IDAs。我们的分析揭示了RL在这一领域的有效性,表明该智能体学会了查阅API文档、避免无根据的假设、减少虚构内容,并从挫折中恢复。

英文摘要:

Interactive digital agents (IDAs) leverage APIs of stateful digital environments to perform tasks in response to user requests. While IDAs powered by instruction-tuned large language models (LLMs) can react to feedback from interface invocations in multi-step exchanges, they have not been trained in their respective digital environments. Prior methods accomplish less than half of tasks in sophisticated benchmarks such as AppWorld. We present a reinforcement learning (RL) approach that trains IDAs directly in their target environments. We formalize this training as a partially observable Markov decision process and derive LOOP, a data- and memory-efficient variant of proximal policy optimization. LOOP uses no value network and maintains exactly one copy of the underlying LLM in memory, making its implementation straightforward and as memory-efficient as fine-tuning a single LLM. A 32-billion-parameter agent trained with LOOP in the AppWorld environment outperforms the much larger OpenAI o1 agent by 9 percentage points (15% relative). To our knowledge, this is the first reported application of RL to IDAs that interact with a stateful, multi-domain, multi-app environment via direct API calls. Our analysis sheds light on the effectiveness of RL in this area, showing that the agent learns to consult the API documentation, avoid unwarranted assumptions, minimize confabulation, and recover from setbacks.

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

↑