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

面向大型语言模型的完整性导向工具检索

Towards Completeness-Oriented Tool Retrieval for Large Language Models

Baidu Inc.(百度公司)

Changle Qu, Sunhao Dai, Xiaochi Wei, Hengyi Cai, Shuaiqiang Wang, Dawei Yin, Jun Xu, Ji-Rong Wen

AI总结:

提出模型无关的协同学习工具检索方法COLT,通过捕获语义相似性与工具协同信息构建完整多样化工具集,其小模型性能超越大30倍参数的大模型。

摘要:

最近,将外部工具与大型语言模型(LLMs)集成作为缓解其预训练数据固有局限性的有效策略,受到了广泛关注。然而,现实系统通常包含广泛的工具,由于长度限制和延迟约束,将所有工具输入LLMs是不切实际的。因此,为了充分发挥工具增强LLMs的潜力,开发有效的工具检索系统至关重要。现有的工具检索方法主要关注用户查询与工具描述之间的语义匹配,经常导致检索到冗余的相似工具。因此,这些方法无法提供解决LLMs遇到的多方面问题所需的完整多样化工具集。在本文中,我们提出了一种新颖的模型无关的基于协同学习的工具检索方法,COLT,它不仅捕获用户查询与工具描述之间的语义相似性,还考虑了工具的协同信息。具体而言,我们首先在语义学习阶段微调基于PLM的检索模型,以捕获查询与工具之间的语义关系。随后,我们在查询、场景和工具之间构建三个二分图,并在协同学习阶段引入双视图图协同学习框架,以捕获工具之间复杂的协同关系。在开放基准和新引入的ToolLens数据集上的广泛实验表明,COLT取得了卓越的性能。值得注意的是,采用我们提出的模型框架,BERT-mini(11M)的性能优于参数多30倍的BERT-large(340M)。此外,我们将公开发布ToolLens,以促进未来关于工具检索的研究。

英文摘要:

Recently, integrating external tools with Large Language Models (LLMs) has gained significant attention as an effective strategy to mitigate the limitations inherent in their pre-training data. However, real-world systems often incorporate a wide array of tools, making it impractical to input all tools into LLMs due to length limitations and latency constraints. Therefore, to fully exploit the potential of tool-augmented LLMs, it is crucial to develop an effective tool retrieval system. Existing tool retrieval methods primarily focus on semantic matching between user queries and tool descriptions, frequently leading to the retrieval of redundant, similar tools. Consequently, these methods fail to provide a complete set of diverse tools necessary for addressing the multifaceted problems encountered by LLMs. In this paper, we propose a novel modelagnostic COllaborative Learning-based Tool Retrieval approach, COLT, which captures not only the semantic similarities between user queries and tool descriptions but also takes into account the collaborative information of tools. Specifically, we first fine-tune the PLM-based retrieval models to capture the semantic relationships between queries and tools in the semantic learning stage. Subsequently, we construct three bipartite graphs among queries, scenes, and tools and introduce a dual-view graph collaborative learning framework to capture the intricate collaborative relationships among tools during the collaborative learning stage. Extensive experiments on both the open benchmark and the newly introduced ToolLens dataset show that COLT achieves superior performance. Notably, the performance of BERT-mini (11M) with our proposed model framework outperforms BERT-large (340M), which has 30 times more parameters. Furthermore, we will release ToolLens publicly to facilitate future research on tool retrieval.

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

↑