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

Re-Invoke:面向零样本工具检索的工具调用重写

Re-Invoke: Tool Invocation Rewriting for Zero-Shot Tool Retrieval

Google Cloud AI Research(谷歌云人工智能研究部);Google DeepMind(谷歌DeepMind);Google(谷歌公司)

Yanfei Chen, Jinsung Yoon, Devendra Singh Sachan, Qingze Wang, Vincent Cohen-Addad, Mohammadhossein Bateni, Chen-Yu Lee, Tomas Pfister

AI总结:

提出无监督工具检索方法Re-Invoke,通过合成查询生成、查询意图提取和多视图相似性排序,在零样本设置下显著提升大规模工具集的检索性能。

摘要:

大语言模型(LLMs)的最新进展使自主智能体能够利用广泛的工具进行复杂推理和任务执行。然而,随着工具集规模的增长,有效识别给定任务最相关的工具成为关键瓶颈,阻碍了可靠的工具利用。为此,我们提出Re-Invoke,一种无监督工具检索方法,旨在无需训练即可有效扩展至大型工具集。具体而言,首先在工具索引阶段生成一组多样化的合成查询,全面覆盖与每个工具文档相关的查询空间的不同方面。其次在推理阶段利用LLM的查询理解能力,从用户查询中提取关键工具相关上下文和潜在意图。最后采用基于意图的多视图相似性排序策略,为每个查询精准定位最相关工具。评估表明,Re-Invoke在单工具和多工具场景中均显著优于现有替代方案,且完全在无监督设置下实现。值得注意的是,在ToolE数据集上,单工具检索的nDCG@5相对提升20%,多工具检索提升39%。

英文摘要:

Recent advances in large language models (LLMs) have enabled autonomous agents with complex reasoning and task-fulfillment capabilities using a wide range of tools. However, effectively identifying the most relevant tools for a given task becomes a key bottleneck as the toolset size grows, hindering reliable tool utilization. To address this, we introduce Re-Invoke, an unsupervised tool retrieval method designed to scale effectively to large toolsets without training. Specifically, we first generate a diverse set of synthetic queries that comprehensively cover different aspects of the query space associated with each tool document during the tool indexing phase. Second, we leverage LLM's query understanding capabilities to extract key tool-related context and underlying intents from user queries during the inference phase. Finally, we employ a novel multi-view similarity ranking strategy based on intents to pinpoint the most relevant tools for each query. Our evaluation demonstrates that Re-Invoke significantly outperforms state-of-the-art alternatives in both single-tool and multi-tool scenarios, all within a fully unsupervised setting. Notably, on the ToolE datasets, we achieve a 20% relative improvement in nDCG@5 for single-tool retrieval and a 39% improvement for multi-tool retrieval.

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

↑