arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.06624cs.CL
收藏

RestGPT: 将大语言模型与真实世界RESTful APIs连接起来

RestGPT: Connecting Large Language Models with Real-World RESTful APIs

Peking University(北京大学);Huawei Technologies(华为技术有限公司)

Yifan Song, Weimin Xiong, Dawei Zhu, Wenhao Wu, Han Qian, Mingbo Song, Hailiang Huang, Cheng Li, Ke Wang, Rong Yao, Ye Tian, Sujian Li

AI总结:

针对现有工具增强大语言模型难处理真实世界复杂指令的问题,提出带粗到细在线规划与专用API执行器的RestGPT,并构建RestBench基准,实验证明其在复杂任务上表现出色且鲁棒性强。

摘要:

工具增强型大语言模型(LLMs)在处理各类任务上已取得显著进展,但现有方法主要局限于专门设计的工具,无法完成复杂指令,在面对真实世界场景时存在很大局限。本文探索了一种更贴合现实的场景:将LLMs与遵循Web服务开发中广泛采用的REST软件架构风格的RESTful APIs相连接。为解决处理复杂指令的实际挑战,我们提出RestGPT,它利用LLMs的能力,采用从粗到细的在线规划机制,以增强任务分解和API选择能力。RestGPT还包含一个专为调用RESTful APIs设计的API执行器,可精细构建参数并解析API响应。为全面评估RestGPT的性能,我们提出RestBench——一个高质量基准,包含两个真实世界场景以及带金标准解决方案路径的人工标注指令。实验表明,RestGPT能够在复杂任务中取得出色结果,且具备强鲁棒性,为通用人工智能(AGI)的发展开辟了新路径。RestGPT和RestBench已在https://restgpt.github.io/公开发布。

英文摘要:

Tool-augmented large language models (LLMs) have achieved remarkable progress in tackling a broad range of tasks. However, existing methods are mainly restricted to specifically designed tools and fail to fulfill complex instructions, having great limitations when confronted with real-world scenarios. In this paper, we explore a more realistic scenario by connecting LLMs with RESTful APIs, which adhere to the widely adopted REST software architectural style for web service development. To address the practical challenges of tackling complex instructions, we propose RestGPT, which exploits the power of LLMs and conducts a coarse-to-fine online planning mechanism to enhance the abilities of task decomposition and API selection. RestGPT also contains an API executor tailored for calling RESTful APIs, which can meticulously formulate parameters and parse API responses. To fully evaluate the performance of RestGPT, we propose RestBench, a high-quality benchmark which consists of two real-world scenarios and human-annotated instructions with gold solution paths. Experiments show that RestGPT is able to achieve impressive results in complex tasks and has strong robustness, which paves a new way towards AGI. RestGPT and RestBench is publicly available at https://restgpt.github.io/.

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

↑