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

ToolRerank:面向工具检索的自适应且层级感知的重排序方法

ToolRerank: Adaptive and Hierarchy-Aware Reranking for Tool Retrieval

Yuanhang Zheng, Peng Li, Wei Liu, Yang Liu, Jian Luan, Bin Wang

AI总结:

本文提出ToolRerank,一种自适应且层级感知的工具检索重排序方法,通过自适应截断和层级感知重排序提升检索质量,从而改善LLM的工具执行效果。

摘要:

工具学习旨在借助外部工具扩展大语言模型(LLMs)的能力。工具学习中的一个主要挑战是如何支持大量工具,包括未见过的工具。为应对这一挑战,已有研究提出根据用户查询为LLM检索合适的工具。然而,此前提出的方法既未考虑已见工具与未见工具之间的差异,也未考虑工具库的层级结构,这可能导致工具检索性能欠佳。因此,为解决上述问题,我们提出ToolRerank,一种面向工具检索的自适应且层级感知的重排序方法,用于进一步优化检索结果。具体而言,我们提出的ToolRerank包括自适应截断,在不同位置对与已见工具和未见工具相关的检索结果进行截断;以及层级感知重排序,使检索结果对单工具查询更加集中,对多工具查询更加多样。实验结果表明,ToolRerank能够提升检索结果的质量,从而使LLM生成更好的执行结果。

英文摘要:

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.

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

↑