2025-03-06 · 专家 · 数据科学 · 机器学习 · 自然语言处理

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

该论文提出了TOOLRET,一个大规模的工具检索基准,评估了信息检索模型在工具检索任务中的性能,并分析了检索对工具使用LLM端到端任务通过率的影响。

更新于 2025-03-06。作者:Zhengliang Shi、Yuhan Wang、Lingyong Yan、Pengjie Ren、Shuaiqiang Wang、Dawei Yin、Zhaochun Ren。

中文摘要

工具学习旨在通过增加各种工具来增强大型语言模型(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.

解读

一句话总结

该论文提出了TOOLRET,一个大规模的工具检索基准,评估了信息检索模型在工具检索任务中的性能,并分析了检索对工具使用LLM端到端任务通过率的影响。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt