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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Gao, Linfeng, Wang, Yaoxiang, Peng, Minlong, Tang, Jialong, Shang, Yuzhe, Sun, Mingming, Su, Jinsong
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909727186747392
author Gao, Linfeng
Wang, Yaoxiang
Peng, Minlong
Tang, Jialong
Shang, Yuzhe
Sun, Mingming
Su, Jinsong
author_facet Gao, Linfeng
Wang, Yaoxiang
Peng, Minlong
Tang, Jialong
Shang, Yuzhe
Sun, Mingming
Su, Jinsong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2508_05152
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Tool Graph Retriever: Exploring Dependency Graph-based Tool Retrieval for Large Language Models
Gao, Linfeng
Wang, Yaoxiang
Peng, Minlong
Tang, Jialong
Shang, Yuzhe
Sun, Mingming
Su, Jinsong
Information Retrieval
Artificial Intelligence
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.
title Tool Graph Retriever: Exploring Dependency Graph-based Tool Retrieval for Large Language Models
topic Information Retrieval
Artificial Intelligence
url https://arxiv.org/abs/2508.05152