arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.00487cs.IRcs.CL
收藏

MassTool:一种面向大语言模型的多任务搜索式工具检索框架

MassTool: A Multi-Task Search-Based Tool Retrieval Framework for Large Language Models

Shanghai Jiao Tong University(上海交通大学);Huawei Noah’s Ark Lab(华为诺亚实验室)

Jianghao Lin, Xinyuan Wang, Xinyi Dai, Menghui Zhu, Bo Chen, Ruiming Tang, Yong Yu, Weinan Zhang

AI总结:

MassTool提出多任务搜索式工具检索框架,通过双塔架构、QC-GCN、SUIM和AdaKT联合优化查询理解与工具匹配,显著提升大语言模型工具检索准确性。

摘要:

工具检索是使大语言模型(LLMs)能够与外部工具有效交互的关键组成部分,其目标是将海量工具精确过滤为一小组候选工具,以供下游工具增强型大语言模型使用。然而,现有方法大多主要关注优化工具表示,往往忽视了精确查询理解的重要性。为弥补这一不足,我们提出了MassTool,一个多任务搜索式框架,旨在同时增强查询表示和工具检索准确性。MassTool采用双塔架构:一个工具使用检测塔用于预测是否需要函数调用,一个工具检索塔利用以查询为中心的图卷积网络(QC-GCN)实现有效的查询-工具匹配。该框架还融合了基于搜索的用户意图建模(SUIM)以处理多样化和分布外查询,并配备自适应知识迁移(AdaKT)模块以实现高效的多任务学习。通过联合优化工具使用检测损失、列表级检索损失和对比正则化损失,MassTool建立了稳健的双步序贯决策流程,实现精确的查询理解。大量实验证明了其在提高检索准确性方面的有效性。我们的代码可在https://github.com/wxydada/MassTool获取。

英文摘要:

Tool retrieval is a critical component in enabling large language models (LLMs) to interact effectively with external tools. It aims to precisely filter the massive tools into a small set of candidates for the downstream tool-augmented LLMs. However, most existing approaches primarily focus on optimizing tool representations, often neglecting the importance of precise query comprehension. To address this gap, we introduce MassTool, a multi-task search-based framework designed to enhance both query representation and tool retrieval accuracy. MassTool employs a two-tower architecture: a tool usage detection tower that predicts the need for function calls, and a tool retrieval tower that leverages a query-centric graph convolution network (QC-GCN) for effective query-tool matching. It also incorporates search-based user intent modeling (SUIM) to handle diverse and out-of-distribution queries, alongside an adaptive knowledge transfer (AdaKT) module for efficient multi-task learning. By jointly optimizing tool usage detection loss, list-wise retrieval loss, and contrastive regularization loss, MassTool establishes a robust dual-step sequential decision-making pipeline for precise query understanding. Extensive experiments demonstrate its effectiveness in improving retrieval accuracy. Our code is available at https://github.com/wxydada/MassTool.

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

↑