arXiv:2508.05152cs.IRcs.AI2025-08被引 5

用工具依赖图提升大模型工具检索准确率

Tool Graph Retriever: Exploring Dependency Graph-based Tool Retrieval for Large Language Models

  • 构建工具依赖图,用图卷积融合工具间关系
  • 在多个数据集上显著提升检索效果,达当前最优
  • 适合需要多工具协作的复杂任务场景

随着AI代理能力增强,其可调用工具数量迅速增加,但将全部工具信息纳入有限上下文已不现实,亟需高效工具检索方法。现有方法多依赖工具描述与用户查询的语义相似度,但常孤立处理各工具,忽视工具间的依赖关系,可能导致关键前置工具被遗漏。为此,本文提出工具依赖图检索器(TGR),利用工具间依赖关系学习更优的工具表示以用于检索。首先,构建名为TDI300K的数据集,用于训练识别工具依赖关系的判别器;其次,将所有候选工具建模为工具依赖图,通过图卷积网络融合依赖信息以更新工具表示;最后,使用更新后的表示进行在线检索。在多个常用数据集上的实验表明,TGR能显著提升现有主流方法性能,达到当前最优水平。深入分析进一步验证了工具依赖关系的重要性及TGR的有效性。

原文摘要 · Abstract (English)

With the remarkable advancement of AI agents, the number of their equipped tools is increasing rapidly. However, integrating all tool information into the limited model context becomes impractical, highlighting the need for efficient tool retrieval methods. In this regard, dominant methods primarily rely on semantic similarities between tool descriptions and user queries to retrieve relevant tools. However, they often consider each tool independently, overlooking dependencies between tools, which may lead to the omission of prerequisite tools for successful task execution. To deal with this defect, in this paper, we propose Tool Graph Retriever (TGR), which exploits the dependencies among tools to learn better tool representations for retrieval. First, we construct a dataset termed TDI300K to train a discriminator for identifying tool dependencies. Then, we represent all candidate tools as a tool dependency graph and use graph convolution to integrate the dependencies into their representations. Finally, these updated tool representations are employed for online retrieval. Experimental results on several commonly used datasets show that our TGR can bring a performance improvement to existing dominant methods, achieving SOTA performance. Moreover, in-depth analyses also verify the importance of tool dependencies and the effectiveness of our TGR.

工具检索依赖图大模型AI代理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。