arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.18901cs.SEcs.AIcs.CLcs.LG
收藏

AppWorld:一个由应用和人物组成的可控世界,用于对交互式编码智能体进行基准测试

AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents

Stony Brook University(石溪大学);Allen Institute for AI(艾伦人工智能研究所);Saarland University(萨尔大学)

Harsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank Gupta, Ashish Sabharwal, Niranjan Balasubramanian

AI总结:

针对现有工具使用基准仅支持简单API调用的不足,构建了包含9个应用和457个API的AppWorld执行环境及750项任务的基准,揭示GPT-4o等模型在交互式编码任务上的局限性。

摘要:

处理日常数字任务(例如为家庭订购杂货)的自主智能体,不仅需要通过API操作多个应用(例如笔记、消息和购物应用),还需要基于其与环境的交互,以迭代方式生成具有复杂控制流的丰富代码。然而,现有的工具使用基准并不充分,因为它们仅涵盖需要简单API调用序列的任务。为了弥补这一差距,我们构建了AppWorld Engine,这是一个高质量的执行环境(60K行代码),包含9个日常应用,可通过457个API进行操作,并填充了模拟约100名虚构用户生活的真实数字活动。随后,我们创建了AppWorld Benchmark(40K行代码),这是一套包含750个自然、多样且具有挑战性的自主智能体任务,需要生成丰富且交互式的代码。它支持使用基于状态的单元测试进行稳健的程序化评估,允许以不同方式完成任务,同时检查意外更改,即附带损害。最先进的LLM GPT-4o仅解决了约49%的“普通”任务和约30%的“挑战”任务,而其他模型解决的任务至少少16%。这突显了该基准的难度以及AppWorld推动交互式编码智能体前沿的潜力。项目网站位于 https://appworld.dev/。

英文摘要:

Autonomous agents that address day-to-day digital tasks (e.g., ordering groceries for a household), must not only operate multiple apps (e.g., notes, messaging, shopping app) via APIs, but also generate rich code with complex control flow in an iterative manner based on their interaction with the environment. However, existing benchmarks for tool use are inadequate, as they only cover tasks that require a simple sequence of API calls. To remedy this gap, we built $\textbf{AppWorld Engine}$, a high-quality execution environment (60K lines of code) of 9 day-to-day apps operable via 457 APIs and populated with realistic digital activities simulating the lives of ~100 fictitious users. We then created $\textbf{AppWorld Benchmark}$ (40K lines of code), a suite of 750 natural, diverse, and challenging autonomous agent tasks requiring rich and interactive code generation. It supports robust programmatic evaluation with state-based unit tests, allowing for different ways of completing a task while also checking for unexpected changes, i.e., collateral damage. The state-of-the-art LLM, GPT-4o, solves only ~49% of our 'normal' tasks and ~30% of 'challenge' tasks, while other models solve at least 16% fewer. This highlights the benchmark's difficulty and AppWorld's potential to push the frontiers of interactive coding agents. The project website is available at https://appworld.dev/.

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

↑