yavin质观yavin质观// 2026
← 返回人才与论文主库 全部 53 篇里程碑论文 四层资本与股权穿透
新窗口全屏打开 PDF (1.95 MB) ↗ 下载站内原件 ↓ arXiv 官方页 ↗

[ToolLLM]ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs

arXiv:2307.16789 ICLR 2024 预训练、大模型与多模态 首次提交日期:2023-07-31 站内 PDF 镜像体积:1.95 MB

Authors: Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu 等 (19位作者)

ARCHITECTURAL BREAKTHROUGH & INDUSTRIAL SIGNIFICANCE // 核心架构突破与产业里程碑意义

构建覆盖 16,000+ 真实世界 RESTful API 的指令微调基准与深度优先决策树搜索(DFSDT),推动大模型向自主工具调用 Agent 演进。

ORIGINAL ARXIV ABSTRACT // 英文原版摘要

Despite the advancements of open-source large language models (LLMs), e.g., LLaMA, they remain significantly limited in tool-use capabilities, i.e., using external tools (APIs) to fulfill human instructions. The reason is that current instruction tuning largely focuses on basic language tasks but ignores the tool-use domain. This is in contrast to the excellent tool-use capabilities of state-of-the-art (SOTA) closed-source LLMs, e.g., ChatGPT. To bridge this gap, we introduce ToolLLM, a general tool-use framework encompassing data construction, model training, and evaluation. We first present ToolBench, an instruction-tuning dataset for tool use, which is constructed automatically using ChatGPT. Specifically, the construction can be divided into three stages: (i) API collection: we collect 16,464 real-world RESTful APIs spanning 49 categories from RapidAPI Hub; (ii) instruction generation: we prompt ChatGPT to generate diverse instructions involving these APIs, covering both single-tool and multi-tool scenarios; (iii) solution path annotation: we use ChatGPT to search for a valid solution path (chain of API calls) for each instruction. To enhance the reasoning capabilities of LLMs, we develop a novel depth-first search-based decision tree algorithm. It enables LLMs to evaluate multiple reasoning traces and expand the search space. Moreover, to evaluate the tool-use capabilities of LLMs, we develop an automatic evaluator: ToolEval. Based on ToolBench, we fine-tune LLaMA to obtain an LLM ToolLLaMA, and equip it with a neural API retriever to recommend appropriate APIs for each instruction. Experiments show that ToolLLaMA demonstrates a remarkable ability to execute complex instructions and generalize to unseen APIs, and exhibits comparable performance to ChatGPT. Our ToolLLaMA also demonstrates strong zero-shot generalization ability in an out-of-distribution tool-use dataset: APIBench.

HOSTED PDF READER // 阿里云站内高速原件直读

论文原版 PDF 在线阅读(免外网拥堵直出)

移动端/全屏直接打开 PDF ↗
RELATED MILESTONES

同领域(预训练、大模型与多模态)其他殿堂级代表论文