NESTFUL:一个用于评估大语言模型嵌套API调用序列能力的基准测试
NESTFUL: A Benchmark for Evaluating LLMs on Nested Sequences of API Calls
AI总结:
针对现有工具调用基准难以覆盖嵌套API调用复杂度的问题,研究提出含1800余条可执行嵌套序列的NESTFUL基准,实验发现GPT-4o完整序列匹配准确率仅28%,为该领域研究提供基准与方向。
摘要:
基于大语言模型(LLM)构建的自主智能体再度兴起,被用于解决复杂的现实世界任务,这让人们愈发关注LLM的工具或函数调用这一基础能力。在这类智能体的核心运作中,LLM必须借助外部工具、API和自定义函数来完成规划、执行与响应。工具调用相关研究正蓬勃发展,但能够体现任务复杂度的评估基准与数据集却发展滞后。在本研究中,我们聚焦于嵌套排序这一复杂度维度,旨在拓展现有基准与评估体系。具体而言,我们提出了NESTFUL基准,用于评估LLM处理嵌套API调用序列的能力——这类序列中,一次API调用的输出会作为后续调用的输入。NESTFUL包含1800余条嵌套序列,其中所有函数调用均可执行。在多款模型上的实验结果显示,表现最佳的模型(GPT-4o)的完整序列匹配准确率为28%,胜率为60%,说明函数调用的嵌套排序能力仍有极大提升空间。我们对结果的分析除了提供一个可追踪进展的基准外,还为学界指明了未来可能的研究方向。我们已在https://github.com/IBM/NESTFUL 上以Apache 2.0许可证发布了NESTFUL数据集。
英文摘要:
The resurgence of autonomous agents built using large language models (LLMs) to solve complex real-world tasks has brought increased focus on LLMs' fundamental ability of tool or function calling. At the core of these agents, an LLM must plan, execute, and respond using external tools, APIs, and custom functions. Research on tool calling has gathered momentum, but evaluation benchmarks and datasets representing the complexity of the tasks have lagged behind. In this work, we focus on one such complexity, nested sequencing, with the goal of extending existing benchmarks and evaluation. Specifically, we present NESTFUL, a benchmark to evaluate LLMs on nested sequences of API calls, i.e., sequences where the output of one API call is passed as input to a subsequent call. NESTFUL contains 1800+ nested sequences where all the function calls are executable. Experimental results on a variety of models show that the best-performing model (GPT-4o) achieves a full sequence match accuracy of 28% and a win-rate of 60%, necessitating a large scope for improvement in the nested sequencing aspect of function calling. Our analysis of these results provides possible future research directions for the community, in addition to a benchmark to track progress. We have released the NESTFUL dataset under the Apache 2.0 license at https://github.com/IBM/NESTFUL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。