TUMS:利用多结构处理器增强 LLM 的工具使用能力
TUMS: Enhancing Tool-use Abilities of LLMs with Multi-structure Handlers
AI总结:
本文提出 TUMS 框架,通过意图识别、任务分解及多结构参数处理器,将工具调用从工具级细化到参数级,显著提升 LLM 在 ToolQA 上的工具使用表现。
摘要:
近年来,大语言模型(LLM)凭借其自然语言理解与生成能力,在解决各类 NLP 任务方面发挥着日益重要的作用。与外部工具集成进一步增强了 LLM 的有效性,使其能够提供更精确、及时且专业化的回答。然而,LLM 在处理不可执行动作和不当动作时仍面临困难,这些问题主要源于参数错误。LLM 生成参数的过程被限制在工具层面,采用粗粒度策略,而没有考虑不同工具的不同难度。为解决这一问题,我们提出 TUMS,这是一种新颖框架,旨在通过将工具层面的处理转化为参数层面的处理来增强 LLM 的工具使用能力。具体而言,我们的框架包含四个关键组件:(1)意图识别器,用于识别用户意图,帮助 LLM 更好地理解任务;(2)任务分解器,将复杂任务分解为更简单的子任务,每个子任务涉及一次工具调用;(3)子任务处理器,配备多结构处理器以生成准确参数;以及(4)执行器。我们的实证研究证明了 TUMS 框架的有效性和效率:在 ToolQA 的简单和困难基准上分别取得平均 19.6% 和 50.6% 的提升;同时,我们通过消融实验展示了各部分的关键贡献,为工具增强型 LLM 提供更多洞见并推动未来研究。
英文摘要:
Recently, large language models(LLMs) have played an increasingly important role in solving a wide range of NLP tasks, leveraging their capabilities of natural language understanding and generating. Integration with external tools further enhances LLMs' effectiveness, providing more precise, timely, and specialized responses. However, LLMs still encounter difficulties with non-executable actions and improper actions, which are primarily attributed to incorrect parameters. The process of generating parameters by LLMs is confined to the tool level, employing the coarse-grained strategy without considering the different difficulties of various tools. To address this issue, we propose TUMS, a novel framework designed to enhance the tool-use capabilities of LLMs by transforming tool-level processing into parameter-level processing. Specifically, our framework consists of four key components: (1) an intent recognizer that identifies the user's intent to help LLMs better understand the task; (2) a task decomposer that breaks down complex tasks into simpler subtasks, each involving a tool call; (3) a subtask processor equipped with multi-structure handlers to generate accurate parameters; and (4) an executor. Our empirical studies have evidenced the effectiveness and efficiency of the TUMS framework with an average of 19.6\% and 50.6\% improvement separately on easy and hard benchmarks of ToolQA, meanwhile, we demonstrated the key contribution of each part with ablation experiments, offering more insights and stimulating future research on Tool-augmented LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。