ToolRerank: Adaptive and Hierarchy-Aware Reranking for Tool Retrieval

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zheng, Yuanhang, Li, Peng, Liu, Wei, Liu, Yang, Luan, Jian, Wang, Bin
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914831018229760
author Zheng, Yuanhang
Li, Peng
Liu, Wei
Liu, Yang
Luan, Jian
Wang, Bin
author_facet Zheng, Yuanhang
Li, Peng
Liu, Wei
Liu, Yang
Luan, Jian
Wang, Bin
contents Tool learning aims to extend the capabilities of large language models (LLMs) with external tools. A major challenge in tool learning is how to support a large number of tools, including unseen tools. To address this challenge, previous studies have proposed retrieving suitable tools for the LLM based on the user query. However, previously proposed methods do not consider the differences between seen and unseen tools, nor do they take the hierarchy of the tool library into account, which may lead to suboptimal performance for tool retrieval. Therefore, to address the aforementioned issues, we propose ToolRerank, an adaptive and hierarchy-aware reranking method for tool retrieval to further refine the retrieval results. Specifically, our proposed ToolRerank includes Adaptive Truncation, which truncates the retrieval results related to seen and unseen tools at different positions, and Hierarchy-Aware Reranking, which makes retrieval results more concentrated for single-tool queries and more diverse for multi-tool queries. Experimental results show that ToolRerank can improve the quality of the retrieval results, leading to better execution results generated by the LLM.
format Preprint
id arxiv_https___arxiv_org_abs_2403_06551
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ToolRerank: Adaptive and Hierarchy-Aware Reranking for Tool Retrieval
Zheng, Yuanhang
Li, Peng
Liu, Wei
Liu, Yang
Luan, Jian
Wang, Bin
Information Retrieval
Tool learning aims to extend the capabilities of large language models (LLMs) with external tools. A major challenge in tool learning is how to support a large number of tools, including unseen tools. To address this challenge, previous studies have proposed retrieving suitable tools for the LLM based on the user query. However, previously proposed methods do not consider the differences between seen and unseen tools, nor do they take the hierarchy of the tool library into account, which may lead to suboptimal performance for tool retrieval. Therefore, to address the aforementioned issues, we propose ToolRerank, an adaptive and hierarchy-aware reranking method for tool retrieval to further refine the retrieval results. Specifically, our proposed ToolRerank includes Adaptive Truncation, which truncates the retrieval results related to seen and unseen tools at different positions, and Hierarchy-Aware Reranking, which makes retrieval results more concentrated for single-tool queries and more diverse for multi-tool queries. Experimental results show that ToolRerank can improve the quality of the retrieval results, leading to better execution results generated by the LLM.
title ToolRerank: Adaptive and Hierarchy-Aware Reranking for Tool Retrieval
topic Information Retrieval
url https://arxiv.org/abs/2403.06551