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

AppBench:面向复杂用户指令的来自不同 App 的多个 API 规划

AppBench: Planning of Multiple APIs from Various APPs for Complex User Instruction

The Chinese University of Hong Kong(香港中文大学);The Hong Kong Polytechnic University(香港理工大学);Beihang University(北京航空航天大学);The University of Edinburgh(爱丁堡大学)

Hongru Wang, Rui Wang, Boyang Xue, Heming Xia, Jingtao Cao, Zeming Liu, Jeff Z. Pan, Kam-Fai Wong

AI总结:

本文提出 AppBench 基准,从图结构依赖和权限约束两方面评估 LLM 跨 App 规划并执行多个 API 的能力;9 个模型实验显示,即使 GPT-4o 在最复杂任务上成功率也仅 2.0%。

摘要:

大语言模型(LLM)能够通过连接各种外部 API 与现实世界交互,从而获得更好的问题解决和任务自动化能力。以往研究主要关注来自单一来源、参数有限的 API,或忽视不同 API 之间复杂的依赖关系。然而,协同使用来自不同来源(例如 iPhone 中的不同 App)的多个 API 至关重要,尤其是对于复杂的用户指令。本文提出 AppBench,这是首个用于评估 LLM 规划并执行来自不同来源的多个 API、以完成用户任务的能力的基准。具体而言,我们考虑多个 API 中的两个重要挑战:1)图结构:一些 API 可以独立执行,而另一些需要逐个执行,从而产生图状执行顺序;2)权限约束:即哪个来源获得授权来执行 API 调用。我们在 9 个不同的 LLM 上得到实验结果;例如,GPT-4o 在最复杂指令上仅达到 2.0% 的成功率,这表明即使借助上下文学习和微调,现有的最先进 LLM 在这种情形下仍不能表现良好。我们的代码和数据公开发布于 https://github.com/ruleGreen/AppBench。

英文摘要:

Large Language Models (LLMs) can interact with the real world by connecting with versatile external APIs, resulting in better problem-solving and task automation capabilities. Previous research primarily focuses on APIs with limited arguments from a single source or overlooks the complex dependency relationship between different APIs. However, it is essential to utilize multiple APIs collaboratively from various sources (e.g., different Apps in the iPhone), especially for complex user instructions. In this paper, we introduce \texttt{AppBench}, the first benchmark to evaluate LLMs' ability to plan and execute multiple APIs from various sources in order to complete the user's task. Specifically, we consider two significant challenges in multiple APIs: \textit{1) graph structures:} some APIs can be executed independently while others need to be executed one by one, resulting in graph-like execution order; and \textit{2) permission constraints:} which source is authorized to execute the API call. We have experimental results on 9 distinct LLMs; e.g., GPT-4o achieves only a 2.0\% success rate at the most complex instruction, revealing that the existing state-of-the-art LLMs still cannot perform well in this situation even with the help of in-context learning and finetuning. Our code and data are publicly available at https://github.com/ruleGreen/AppBench.

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

↑