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

API-Bank:面向工具增强型大语言模型的综合基准

API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMs

Alibaba Group(阿里巴巴集团);Hong Kong University of Science and Technology(香港科技大学);Peking University(北京大学);Shenzhen Intelligent Strong Technology Co., Ltd(深圳智能强科技有限公司)

Minghao Li, Yingxiu Zhao, Bowen Yu, Feifan Song, Hangyu Li, Haiyang Yu, Zhoujun Li, Fei Huang, Yongbin Li

AI总结:

本文提出API-Bank基准,通过可运行评估系统和训练集系统研究LLMs的工具利用能力,并训练Lynx模型,其性能超过Alpaca超过26个百分点,接近GPT-3.5。

摘要:

近期研究表明,大语言模型(LLMs)可以通过利用外部工具来增强自身能力。然而,三个关键问题仍未得到解答:(1)当前LLMs在利用工具方面的效果如何?(2)我们如何增强LLMs利用工具的能力?(3)要利用工具,需要克服哪些障碍?为了解决这些问题,我们提出了API-Bank,这是一个开创性的基准,专为工具增强型LLMs设计。针对第一个问题,我们开发了一个包含73个API工具的可运行评估系统。我们标注了314个工具使用对话,共包含753次API调用,以评估现有LLMs在规划、检索和调用API方面的能力。针对第二个问题,我们构建了一个全面的训练集,包含来自2,138个API、覆盖1,000个不同领域的1,888个工具使用对话。利用该数据集,我们训练了Lynx,这是一个从Alpaca初始化的工具增强型LLM。实验结果表明,与GPT-3相比,GPT-3.5在工具利用方面表现出改进,而GPT-4在规划方面表现突出。然而,仍然存在进一步改进的巨大潜力。此外,Lynx在工具利用性能上超过Alpaca超过26个百分点,并接近GPT-3.5的效果。通过错误分析,我们强调了该领域未来研究需要应对的关键挑战,以回答第三个问题。

英文摘要:

Recent research has demonstrated that Large Language Models (LLMs) can enhance their capabilities by utilizing external tools. However, three pivotal questions remain unanswered: (1) How effective are current LLMs in utilizing tools? (2) How can we enhance LLMs' ability to utilize tools? (3) What obstacles need to be overcome to leverage tools? To address these questions, we introduce API-Bank, a groundbreaking benchmark, specifically designed for tool-augmented LLMs. For the first question, we develop a runnable evaluation system consisting of 73 API tools. We annotate 314 tool-use dialogues with 753 API calls to assess the existing LLMs' capabilities in planning, retrieving, and calling APIs. For the second question, we construct a comprehensive training set containing 1,888 tool-use dialogues from 2,138 APIs spanning 1,000 distinct domains. Using this dataset, we train Lynx, a tool-augmented LLM initialized from Alpaca. Experimental results demonstrate that GPT-3.5 exhibits improved tool utilization compared to GPT-3, while GPT-4 excels in planning. However, there is still significant potential for further improvement. Moreover, Lynx surpasses Alpaca's tool utilization performance by more than 26 pts and approaches the effectiveness of GPT-3.5. Through error analysis, we highlight the key challenges for future research in this field to answer the third question.

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

↑