Toolink: Linking Toolkit Creation and Using through Chain-of-Solving on Open-Source Model

Cheng Qian, Chenyan Xiong, Zhenghao Liu, Zhiyuan Liu
10/8/2023
40 citations
cs.CLcs.AI

Official code: qiancheng0/Toolink (5 stars, Python, last commit 2023-10-08).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

qiancheng0/ToolinkOfficial100%

The repository for paper "Toolink: Linking Toolkit Creation and Using through Chain-of-Solving on Open-Source Model"

50Python, ShellOct 8, 20233 years ago

Similar Papers

Cite this paper

@article{qian2023toolink,
  title  = {Toolink: Linking Toolkit Creation and Using through Chain-of-Solving on Open-Source Model},
  author = {Cheng Qian and Chenyan Xiong and Zhenghao Liu and Zhiyuan Liu},
  year   = {2023},
  eprint = {2310.05155},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.05155v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.05155.svg)](https://codeofpaper.com/paper/2310.05155)

Discussion