arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.09613cs.CLcs.AI
收藏

面向大型语言模型的任务对齐工具推荐

Task-Aligned Tool Recommendation for Large Language Models

Rutgers University(罗切斯特大学)

Hang Gao, Yongfeng Zhang

AI总结:

本文提出了一种以精度为导向的工具推荐方法,旨在为大型语言模型提供定制化的工具集,以提高解决复杂问题的效率。

摘要:

通过将外部工具增强到大型语言模型(LLMs)中,其解决复杂问题的能力得到了显著提升。然而,尽管LLMs的解析能力持续进步,将所有可用工具同时包含在提示中仍然不现实,因为外部工具数量庞大。因此,有必要为特定任务提供一组精确的工具集,考虑数量和质量。当前的工具检索方法主要集中在优化工具排名列表,并直接包装固定数量的顶级工具作为工具集。然而,这些方法往往无法在执行前为LLMs提供最佳的工具集,因为不同任务的最佳工具数量可能不同,导致冗余或不合适的工具,阻碍了立即访问最相关工具。本文解决了为LLMs推荐精确工具集的挑战。我们引入了工具推荐问题,定义了其范围,并提出了一种新的以精度为导向的工具推荐(PTR)方法。PTR通过利用历史工具包使用情况捕获一个初始简洁的工具集,并通过执行工具匹配动态调整工具集,最终通过多视图的工具添加得出结论。此外,我们还提出了一个新的数据集RecTools和一个评估LLM工具推荐有效性的指标TRACC。我们通过全面的实验进一步验证了我们的设计选择,展示了在两个公开基准和我们的RecTools数据集上具有 promising 准确性。

英文摘要:

By augmenting Large Language Models (LLMs) with external tools, their capacity to solve complex problems has been significantly enhanced. However, despite ongoing advancements in the parsing capabilities of LLMs, incorporating all available tools simultaneously in the prompt remains impractical due to the vast number of external tools. Consequently, it is essential to provide LLMs with a precise set of tools tailored to the specific task, considering both quantity and quality. Current tool retrieval methods primarily focus on refining the ranking list of tools and directly packaging a fixed number of top-ranked tools as the tool set. However, these approaches often fail to equip LLMs with the optimal set of tools prior to execution, since the optimal number of tools for different tasks could be different, resulting in inefficiencies such as redundant or unsuitable tools, which impede immediate access to the most relevant tools. This paper addresses the challenge of recommending precise toolsets for LLMs. We introduce the problem of tool recommendation, define its scope, and propose a novel Precision-driven Tool Recommendation (PTR) approach. PTR captures an initial, concise set of tools by leveraging historical tool bundle usage and dynamically adjusts the tool set by performing tool matching, culminating in a multi-view-based tool addition. Additionally, we present a new dataset, RecTools, and a metric, TRACC, designed to evaluate the effectiveness of tool recommendation for LLMs. We further validate our design choices through comprehensive experiments, demonstrating promising accuracy across two open benchmarks and our RecTools dataset.

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

↑