arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.01763cs.CLcs.AIcs.IR
收藏

检索模型并不精通工具:面向大语言模型的工具检索基准测试

Retrieval Models Aren't Tool-Savvy: Benchmarking Tool Retrieval for Large Language Models

Shandong University(山东大学);Baidu Inc.(百度公司);Leiden University(莱顿大学)

Zhengliang Shi, Yuhan Wang, Lingyong Yan, Pengjie Ren, Shuaiqiang Wang, Dawei Yin, Zhaochun Ren

AI总结:

本文提出ToolRet基准,含7.6k任务和43k工具,发现传统IR模型在工具检索上表现差,并贡献200k训练数据以提升其能力。

摘要:

工具学习旨在为大语言模型(LLMs)配备多样化的工具,使其能够作为智能体解决实际任务。由于使用工具的LLMs上下文长度有限,采用信息检索(IR)模型从大型工具集中选择有用工具是关键的第一步。然而,IR模型在工具检索任务中的表现仍未得到充分探索和明确。大多数工具使用基准通过为每个任务手动预标注一小部分相关工具来简化此步骤,这远不符合现实场景。在本文中,我们提出了ToolRet,一个异构工具检索基准,包含7.6k个多样化的检索任务,以及从现有数据集收集的43k个工具语料库。我们在ToolRet上对六种类型的模型进行了基准测试。令人惊讶的是,即使在传统IR基准中表现强劲的模型,在ToolRet上也表现不佳。这种低检索质量降低了工具使用LLMs的任务通过率。作为进一步步骤,我们贡献了一个包含超过200k实例的大规模训练数据集,该数据集显著优化了IR模型的工具检索能力。

英文摘要:

Tool learning aims to augment large language models (LLMs) with diverse tools, enabling them to act as agents for solving practical tasks. Due to the limited context length of tool-using LLMs, adopting information retrieval (IR) models to select useful tools from large toolsets is a critical initial step. However, the performance of IR models in tool retrieval tasks remains underexplored and unclear. Most tool-use benchmarks simplify this step by manually pre-annotating a small set of relevant tools for each task, which is far from the real-world scenarios. In this paper, we propose ToolRet, a heterogeneous tool retrieval benchmark comprising 7.6k diverse retrieval tasks, and a corpus of 43k tools, collected from existing datasets. We benchmark six types of models on ToolRet. Surprisingly, even the models with strong performance in conventional IR benchmarks, exhibit poor performance on ToolRet. This low retrieval quality degrades the task pass rate of tool-use LLMs. As a further step, we contribute a large-scale training dataset with over 200k instances, which substantially optimizes the tool retrieval ability of IR models.

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

↑