首个评估大模型跨应用调用多API能力的基准,揭示当前模型在复杂任务中表现极差。
AppBench: Planning of Multiple APIs from Various APPs for Complex User Instruction
- 构建跨应用多API执行图与权限约束的复杂任务规划框架
- GPT-4o在最复杂指令下仅2.0%成功率,凸显现有模型短板
- 适合研究大模型智能体、多系统协同与任务规划的学者
大型语言模型(LLMs)通过连接多样外部API可实现与真实世界的交互,提升问题解决与任务自动化能力。以往研究多聚焦单一来源、参数有限的API,或忽略不同API间的复杂依赖关系。然而,对于复杂用户指令,需跨多个应用(如iPhone中的不同App)协同调用多个API。本文提出 exttt{AppBench},首个评估LLMs在多源API协作下进行任务规划与执行能力的基准。针对两大挑战:1)图结构执行顺序——部分API可并行,部分需串行;2)权限约束——指定哪些来源可调用特定API。我们在9个不同LLM上进行了实验,结果显示:即使使用上下文学习和微调,GPT-4o在最复杂指令下的成功率仅为2.0%,表明当前顶尖模型在此类任务中仍表现不佳。代码与数据已公开于https://github.com/ruleGreen/AppBench。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。