Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum
Shen Gao, Zhengliang Shi, Minghang Zhu, Bowen Fang, Xin Xin, Pengjie Ren, Zhumin Chen, Jun Ma, Zhaochun Ren
Abstract
Augmenting large language models (LLMs) with external tools has emerged as a promising approach to extending the capability of LLMs. Although there are some works that 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 scenario compared to both tuning-free (e.g., ChatGPT, Claude) and tuning-based baselines (e.g., GPT4Tools).
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
21 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsets cites PAL: Program-aided Language Models
- CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsets cites ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings
- Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents cites CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsets
- Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents cites PAL: Program-aided Language Models
- Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents cites ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings
- SeRL: Self-play Reinforcement Learning for Large Language Models with Limited Data cites GPT4Tools: Teaching Large Language Model to Use Tools via Self-instruction
- Prompt Injection Attack to Tool Selection in LLM Agents cites CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsets
- ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings cites PAL: Program-aided Language Models
- ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings cites Chameleon: Plug-and-Play Compositional Reasoning with Large Language Models
- Chameleon: Plug-and-Play Compositional Reasoning with Large Language Models cites PAL: Program-aided Language Models
Cited by top-tier papers21
- Prompt Injection Attack to Tool Selection in LLM AgentsJiawen Shi, Zenghui Yuan, Guiyao Tie, Pan Zhou et al.NDSS 2026 · 181 citations
- CRAFT: Customizing LLMs by Creating and Retrieving from Specialized ToolsetsLifan Yuan, Yangyi Chen, Xingyao Wang, Yi Fung et al.ICLR 2024 · 117 citations
- Tool Learning in the Wild: Empowering Language Models as Automatic Tool AgentsZhengliang Shi, Shen Gao, Lingyong Yan, Yue Feng et al.WWW 2025 · 59 citations
- SeRL: Self-play Reinforcement Learning for Large Language Models with Limited DataWenkai Fang, Shunyu Liu, Yang Zhou, Kongcheng Zhang et al.NeurIPS 2025 · 53 citations
- Harnessing Multi-Role Capabilities of Large Language Models for Open-Domain Question AnsweringHongda Sun, Yuxuan Liu, Chengwei Wu, Haiyu Yan et al.WWW 2024 · 16 citations
Builds on7
- PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations
- Language Models can Solve Computer TasksGeunwoo Kim, Pierre Baldi, Stephen McAleerNeurIPS 2023 · 539 citations
- Chameleon: Plug-and-Play Compositional Reasoning with Large Language ModelsPan Lu, Baolin Peng, Hao Cheng, Michel Galley et al.NeurIPS 2023 · 515 citations
- GPT4Tools: Teaching Large Language Model to Use Tools via Self-instructionRui Yang, Lin Song, Yanwei Li, Sijie Zhao et al.NeurIPS 2023 · 340 citations
- ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool EmbeddingsShibo Hao, Tianyang Liu, Zhen Wang, Zhiting HuNeurIPS 2023 · 315 citations
Related papers
- ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIsYujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu et al.ICLR 2024 · 1,469 citations
- GenTool: Enhancing Tool Generalization in Language Models through Zero-to-One and Weak-to-Strong SimulationJie He, Jennifer Neville, Mengting Wan, Longqi Yang et al.ACL Findings 2025
- Learning to Use Tools via Cooperative and Interactive AgentsZhengliang Shi, Shen Gao, Xiuyi Chen, Yue Feng et al.EMNLP Findings 2024 · 14 citations
- Enhancing Tool Retrieval with Iterative Feedback from Large Language ModelsQiancheng Xu, Yongqi Li, Heming Xia, Wenjie LiEMNLP Findings 2024 · 4 citations
- AgentRefine: Enhancing Agent Generalization through Refinement TuningDayuan Fu, Keqing He, Yejie Wang, Wentao Hong et al.ICLR 2025
