English

ToolGrad: Efficient Tool-use Dataset Generation with Textual "Gradients"

Computation and Language 2026-05-04 v2

Abstract

Prior work synthesizes tool-use LLM datasets by first generating a user query, followed by complex tool-use annotations like depth-first search (DFS). This leads to inevitable annotation failures and low efficiency in data generation. We introduce ToolGrad, an agentic framework that inverts this paradigm. ToolGrad first constructs valid tool-use chains through an iterative process guided by textual "gradients", and then synthesizes corresponding user queries. This "answer-first" approach led to ToolGrad-500, a dataset generated with more complex tool use, lower cost, and almost 100% pass rate. Experiments show that ToolGrad models outperform those trained on expensive baseline datasets and proprietary LLMs. The ToolGrad source code, dataset, and models are available at https://github.com/zhongyi-zhou/toolgrad.

Keywords

Cite

@article{arxiv.2508.04086,
  title  = {ToolGrad: Efficient Tool-use Dataset Generation with Textual "Gradients"},
  author = {Zhongyi Zhou and Kohei Uehara and Haoyu Zhang and Jingtao Zhou and Lin Gu and Ruofei Du and Zheng Xu and Tatsuya Harada},
  journal= {arXiv preprint arXiv:2508.04086},
  year   = {2026}
}

Comments

ACL 2026 Finding. Source code: https://github.com/zhongyi-zhou/toolgrad

R2 v1 2026-07-01T04:36:34.447Z