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

小型LLM是弱工具学习者:一个多LLM智能体

Small LLMs Are Weak Tool Learners: A Multi-LLM Agent

School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院);Alibaba Group(阿里巴巴集团)

Weizhou Shen, Chenliang Li, Hongzhan Chen, Ming Yan, Xiaojun Quan, Hehong Chen, Ji Zhang, Fei Huang

AI总结:

针对小型LLM工具学习能力弱的问题,提出多LLM智能体框架,将能力分解为规划器、调用器和总结器,采用两阶段训练范式,在多个基准上超越传统单LLM方法。

摘要:

大型语言模型(LLM)智能体显著扩展了独立LLM的能力,使其能够与外部工具(例如API、函数)交互并以自主方式完成各种任务。工具使用的挑战要求LLM不仅要理解用户查询并准确生成答案,还要在任务规划、工具调用和结果总结方面表现出色。传统工作集中于训练具备所有这些能力的单一LLM,但其性能局限性变得明显,特别是在较小的模型中。为了克服这些挑战,我们提出了一种新方法,将上述能力分解为规划器、调用器和总结器。每个组件由一个专注于特定能力并与其他组件协作以完成任务的单一LLM实现。这种模块化框架促进了单独更新,并为构建每项能力提供了使用较小LLM的潜力。为了有效训练这一框架,我们引入了两阶段训练范式。首先,我们在整个数据集上微调骨干LLM而不区分子任务,为模型提供对任务的全面理解。其次,使用微调后的LLM分别实例化规划器、调用器和总结器,并在各自的子任务上持续微调。跨多个工具使用基准的评估表明,我们提出的多LLM框架超越了传统的单LLM方法,突显了其在工具学习中的有效性和优势。

英文摘要:

Large Language Model (LLM) agents significantly extend the capabilities of standalone LLMs, empowering them to interact with external tools (e.g., APIs, functions) and complete various tasks in a self-directed fashion. The challenge of tool use demands that LLMs not only understand user queries and generate answers accurately but also excel in task planning, tool invocation, and result summarization. While traditional works focus on training a single LLM with all these capabilities, performance limitations become apparent, particularly with smaller models. To overcome these challenges, we propose a novel approach that decomposes the aforementioned capabilities into a planner, caller, and summarizer. Each component is implemented by a single LLM that focuses on a specific capability and collaborates with others to accomplish the task. This modular framework facilitates individual updates and the potential use of smaller LLMs for building each capability. To effectively train this framework, we introduce a two-stage training paradigm. First, we fine-tune a backbone LLM on the entire dataset without discriminating sub-tasks, providing the model with a comprehensive understanding of the task. Second, the fine-tuned LLM is used to instantiate the planner, caller, and summarizer respectively, which are continually fine-tuned on respective sub-tasks. Evaluation across various tool-use benchmarks illustrates that our proposed multi-LLM framework surpasses the traditional single-LLM approach, highlighting its efficacy and advantages in tool learning.

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

↑