Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum

Shen Gao, Zhengliang Shi, Minghang Zhu, Bowen Fang, Xin Xin +4 more
8/27/2023
cs.AIcs.CL

No official code found. Best implementation: mangopy/Confucius-tool-learning (152 stars, Apache-2.0, last commit 2025-03-07). 1 more below.

Abstract

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).

View on arXivView PDF

Code Implementations(2)

shizhl/ConfuciusCommunity100%

Official code for AAAI2023 paper`Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum`

4912PythonDec 21, 20231 years ago
large-language-modelstool-learningtool-use
Apache-2.0

Official Repo for AAAI 2024 paper "Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum"

1528PythonFeb 3, 20251 years agoApache-2.0
agentlanguage-modelslarge-language-modelstool-learning

Similar Papers

Cite this paper

@article{gao2023confucius,
  title  = {Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum},
  author = {Shen Gao and Zhengliang Shi and Minghang Zhu and Bowen Fang and Xin Xin and Pengjie Ren and Zhumin Chen and Jun Ma and Zhaochun Ren},
  year   = {2023},
  eprint = {2308.14034},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.14034v2}
}

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/2308.14034.svg)](https://codeofpaper.com/paper/2308.14034)

Discussion