Toolink:通过开源模型上的链式求解连接工具包创建与使用
Toolink: Linking Toolkit Creation and Using through Chain-of-Solving on Open-Source Model
AI总结:
本文提出Toolink框架,通过创建工具包和链式求解方法,在开源模型上实现工具使用,微调LLaMA-7B得到LLaMA-CoS,其性能与ChatGPT相当并超越思维链方法,且能泛化到未见任务。
摘要:
大型语言模型(LLMs)在利用工具方面已展现出显著的进步,但其闭源性质和高推理成本限制了其适应性,因此需要一种有效的方法来利用更小型的开源模型。在本文中,我们介绍了Toolink,一个综合框架,通过首先创建工具包,然后通过链式求解(CoS)方法整合工具的规划与调用来执行任务。我们首先在ChatGPT上验证了Toolink在激发模型创造力和CoS能力方面的有效性。随后,我们整理了CoS-GPT,一个专为工具使用设计的链式求解数据集,并对LLaMA-7B模型进行了微调。由此产生了LLaMA-CoS,一个具有先进工具规划和工具调用能力的强大开源模型。对BIG-bench中多样任务的评估表明,其CoS能力与ChatGPT相当,而其性能超越了思维链方法。进一步的研究强调了LLaMA-CoS对未见任务的泛化能力,并展示了其使用并非专门为目标任务定制的工具包的能力,证实了其在现实场景中的鲁棒性。
英文摘要:
Large Language Models (LLMs) have demonstrated remarkable progress in utilizing tools, but their closed-source nature and high inference costs pose limitations on their adaptability, necessitating a valid method that leverages smaller, open-sourced models. In this paper, we introduce Toolink, a comprehensive framework that performs task-solving by first creating a toolkit and then integrating the planning and calling of tools through a chain-of-solving (CoS) approach. We first validate the efficacy of Toolink in harnessing the model's creativity and CoS ability on ChatGPT. Subsequently, we curate CoS-GPT, a chain-of-solving dataset designed for tool-using, and finetune the LLaMA-7B model. It results in LLaMA-CoS, a powerful open-source model with advanced tool-planning and tool-calling capabilities. Evaluation of diverse tasks from BIG-bench demonstrates its CoS ability matches that of ChatGPT while its performance surpasses the chain-of-thought approach. Further studies highlight the generalization of LLaMA-CoS to unseen tasks and showcase its capability in using toolkits not explicitly tailored for the target task, affirming its robustness in real-world scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。