Confucius:通过由易到难课程从内省反馈中进行迭代工具学习
Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum
AI总结:
本文提出Confucius框架,通过由易到难的课程和迭代内省反馈自我指导方法,训练LLM在现实场景中从大型工具集中选择和使用复杂工具,实验证明其优于现有基线。
摘要:
将外部工具增强到大型语言模型(LLMs)中已成为扩展LLMs能力的一种有前景的方法。尽管一些工作采用开源LLMs进行工具学习任务,但它们大多在受控环境中训练,其中LLMs仅学习执行人类提供的工具。然而,从大型工具集中选择合适的工具也是工具学习模型在现实应用中必须具备的关键能力。现有方法通常直接采用自我指导方法来训练模型,这忽略了工具复杂性的差异。在本文中,我们提出了Confucius,一种新颖的工具学习框架,用于训练LLM在现实场景中使用复杂工具,该框架包含两个主要阶段:(1)我们首先提出一种多阶段学习方法,通过由易到难的课程教会LLM使用各种工具;(2)随后,我们提出迭代式内省反馈自我指导(ISIF)方法,动态构建数据集以提高使用复杂工具的能力。在受控和现实场景中进行的大量实验表明,与无调优基线(如ChatGPT、Claude)和基于调优的基线(如GPT4Tools)相比,我们的工具学习框架在现实应用场景中具有优越性。
英文摘要:
Augmenting large language models (LLMs) with external tools has emerged as a promising approach to extending the capability of LLMs. Although some works employ open-source LLMs for the tool learning task, most of them are trained in a controlled environment in which LLMs only learn to execute the human-provided tools. However, selecting proper tools from the large toolset is also a crucial ability for the tool learning model to be applied in real-world applications. Existing methods usually directly employ self-instruction methods to train the model, which ignores differences in tool complexity. In this paper, we propose the Confucius, a novel tool learning framework to train LLM to use complicated tools in real-world scenarios, which contains two main phases: (1) We first propose a multi-stage learning method to teach the LLM to use various tools from an easy-to-difficult curriculum; (2) thenceforth, we propose the Iterative Self-instruct from Introspective Feedback (ISIF) to dynamically construct the dataset to improve the ability to use the complicated tool. Extensive experiments conducted on both controlled and real-world settings demonstrate the superiority of our tool learning framework in the real-world application scenarios compared to both tuning-free (e.g. ChatGPT, Claude) and tuning-based baselines (e.g. GPT4Tools).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。