ToolACE-DEV: Self-Improving Tool Learning via Decomposition and EVolution

Xu Huang, Weiwen Liu, Xingshan Zeng, Yuefeng Huang, Xinlong Hao, Yuxian Wang, Yirong Zeng, Chuhan Wu, Yasheng Wang, Ruiming Tang, Defu LianarXiv 2025 · DOI

Abstract

ToolACE-DEV introduces a novel training framework designed to enhance the tool-use capabilities of lightweight Large Language Models (LLMs) through autonomous self-improvement. By decomposing tool learning into distinct generation and invocation phases, the framework enables models to synthesize high-quality training data from unlabelled queries. Experimental results demonstrate that ToolACE-DEV allows an 8B parameter model to achieve state-of-the-art performance, outperforming significantly larger proprietary models on the Berkeley Function Call Leaderboard.

Introduction

The utility of Large Language Models (LLMs) as autonomous agents depends heavily on their ability to interact with external tools like APIs and search engines. Traditional methods for teaching open-source models these skills rely on distillation from massive proprietary models like GPT-4. However, this approach is limited by high inference costs, data compatibility issues where smaller models struggle to mimic the reasoning of larger ones, and privacy concerns regarding sensitive user data.

ToolACE-DEV addresses these challenges by asking whether a smaller model can teach itself to use tools through self-evolution, thereby minimizing reliance on external "teacher" models.

Methodology: The ToolACE-DEV Pipeline

The ToolACE-DEV framework consists of a three-stage training pipeline designed to bootstrap and then iteratively refine a model's tool-use proficiency.

Overview of the ToolACE-DEV training pipeline, including documentation adaption, query-aware tool generation, and the self-evolution loop.

1. Tool Documentation Adaption

The first stage focuses on "understanding" rather than "using." The model is fine-tuned on raw tool documentation, including JSON signatures, descriptions, and parameter constraints. This ensures the model develops a deep grasp of API syntax before attempting to solve user queries.

2. Query-Aware Tool Generation and Invocation

Standard training typically presents a model with a query and a fixed tool list. ToolACE-DEV decomposes this task. The model is trained to first generate relevant candidate tool signatures based on a user query and then perform the invocation. This auxiliary task forces the model to internalize the relationship between user intent and tool design.

3. Self-Evolution

In the final stage, the model utilizes its foundational skills to improve autonomously. Given unlabelled user queries, the model generates candidate tools and attempts multiple solutions. Using "majority voting" (self-consistency decoding), it identifies high-confidence tool invocations to create a self-generated training set. The model then fine-tunes itself on this data in an iterative loop.

Experimental Results

The framework was evaluated using the Berkeley Function Call Leaderboard (BFCL), API-Bank, and T-Eval. Training data included a subset of the ToolACE dataset (26,522 tools), 20,000 GPT-4 synthesized pairs for initialization, and 30,000 unlabelled queries for the self-evolution rounds.

Performance Benchmarks

ToolACE-DEV, built on a LLaMA-3.1-8B-Instruct backbone, achieved an overall accuracy of 82.44% on the BFCL. Notably, this 8B model outperformed Llama-3-70B-Instruct (81.69%), GPT-4o-mini (80.01%), and Claude-3.5-Sonnet (70.72%). On the API-Bank benchmark, the model's score jumped from a base of 54.11 to 67.82, surpassing GPT-4-turbo (63.39).

Performance scores across self-evolution rounds for Mistral-7B, Qwen-2.5-7B, and LLaMA-3.1-8B models.

Key Insights

  • Task Decomposition: Forcing the model to generate tool signatures before invocation significantly boosts baseline accuracy compared to standard methods.
  • Model Size Threshold: Self-evolution is highly effective for 7B and 8B models, which show consistent improvement across rounds. However, smaller models (1.5B and 3B) tend to plateau or overfit to their own data.
  • Complexity Advantage: The model showed more significant gains on complex, real-world "Live" subsets of benchmarks than on synthetic "Non-live" subsets, suggesting that self-generated data provides high informational value for difficult tasks.

Conclusion

ToolACE-DEV demonstrates that lightweight models can achieve elite tool-use performance through structured self-improvement. While the current study focused on models up to 8B parameters, the framework's success suggests even greater potential for larger open-source models. Future work will look to address the challenge of tool retrieval from massive databases, a critical step for scaling agentic AI systems.

Summary updated

BibTeX
@misc{huang2025toolace,
  author = {Xu Huang and Weiwen Liu and Xingshan Zeng and Yuefeng Huang and Xinlong Hao and Yuxian Wang and Yirong Zeng and Chuhan Wu and Yasheng Wang and Ruiming Tang and Defu Lian},
  title = {{ToolACE-DEV: Self-Improving Tool Learning via Decomposition and EVolution}},
  year = {2025},
  eprint = {2505.07512},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.07512},
}
Figure