工具文档不足:简单的文档扩展提升工具检索
Tools are under-documented: Simple Document Expansion Boosts Tool Retrieval
AI总结:
针对工具文档不完整的问题,提出Tool-DE基准与框架,通过LLM驱动的文档扩展和专用模型Tool-Embed与Tool-Rank,显著提升工具检索性能,达到新最先进水平。
摘要:
大型语言模型(LLMs)近期在工具使用方面展现出强大的能力,然而工具检索的进展仍受制于不完整且异构的工具文档。为应对这一挑战,我们引入了Tool-DE,一个全新的基准和框架,通过结构化字段系统地丰富工具文档,以实现更有效的工具检索,并配套两个专用模型:Tool-Embed和Tool-Rank。我们设计了一个可扩展的文档扩展流水线,利用开源和闭源LLM以低成本生成、验证和优化丰富的工具档案,为基于嵌入的检索器生成包含5万实例的大规模语料库,为重排序器生成20万实例。在此数据基础上,我们开发了两个专门针对工具检索的模型:Tool-Embed,一个密集检索器,以及Tool-Rank,一个基于LLM的重排序器。在ToolRet和Tool-DE上的大量实验表明,文档扩展显著提升了检索性能,Tool-Embed和Tool-Rank在两个基准上均取得了新的最先进结果。我们进一步分析了各个字段对检索效果的贡献,以及文档扩展对训练和评估的更广泛影响。总体而言,我们的研究结果突显了LLM驱动的文档扩展的前景与局限,将Tool-DE连同所提出的Tool-Embed和Tool-Rank定位为工具检索未来研究的基础。
英文摘要:
Large Language Models (LLMs) have recently demonstrated strong capabilities in tool use, yet progress in tool retrieval remains hindered by incomplete and heterogeneous tool documentation. To address this challenge, we introduce Tool-DE, a new benchmark and framework that systematically enriches tool documentation with structured fields to enable more effective tool retrieval, together with two dedicated models, Tool-Embed and Tool-Rank. We design a scalable document expansion pipeline that leverages both open- and closed-source LLMs to generate, validate, and refine enriched tool profiles at low cost, producing large-scale corpora with 50k instances for embedding-based retrievers and 200k for rerankers. On top of this data, we develop two models specifically tailored for tool retrieval: Tool-Embed, a dense retriever, and Tool-Rank, an LLM-based reranker. Extensive experiments on ToolRet and Tool-DE demonstrate that document expansion substantially improves retrieval performance, with Tool-Embed and Tool-Rank achieving new state-of-the-art results on both benchmarks. We further analyze the contribution of individual fields to retrieval effectiveness, as well as the broader impact of document expansion on both training and evaluation. Overall, our findings highlight both the promise and limitations of LLM-driven document expansion, positioning Tool-DE, along with the proposed Tool-Embed and Tool-Rank, as a foundation for future research in tool retrieval.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。