Lune

WWW2025Top-tier venue

Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents

Zhengliang Shi, Shen Gao, Lingyong Yan, Yue Feng, Xiuyi Chen, Zhumin Chen, Dawei Yin, Suzan Verberne, Zhaochun Ren

Abstract

Augmenting large language models (LLMs) with external tools has emerged as a promising approach to extend their utility, enabling them to solve practical tasks. Previous methods manually parse tool documentation and create in-context demonstrations, transforming tools into structured formats for LLMs to use in their step-by-step reasoning. However, this manual process requires domain expertise and struggles to scale to large toolsets. Additionally, these methods rely heavily on ad-hoc inference techniques or special tokens to integrate free-form LLM generation with tool-calling actions, limiting the LLM's flexibility in handling diverse tool specifications and integrating multiple tools. In this work, we propose AutoTools, a framework that enables LLMs to automate the tool-use workflow. Specifically, the LLM automatically transforms tool documentation into callable functions, verifying syntax and runtime correctness. Then, the LLM integrates these functions into executable programs to solve practical tasks, flexibly grounding tool-use actions into its reasoning processes. Extensive experiments on existing and newly collected, more challenging benchmarks illustrate the superiority of our framework. Inspired by these promising results, we further investigate how to improve the expertise of LLMs, especially open-source LLMs with fewer parameters, within AutoTools. Thus, we propose the AutoTools-Learning approach, training the LLMs with three learning tasks on 34k instances of high-quality synthetic data, including documentation understanding, relevance learning, and function programming. Fine-grained results validate the effectiveness of our overall training approach and each individual task. Our methods are an important step towards the use of LLMs for solving real-world tasks with external tools.

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.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Gorilla: Large Language Model Connected with Massive APIs cites PAL: Program-aided Language Models
  • Gorilla: Large Language Model Connected with Massive APIs cites HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face
  • Divide-Then-Aggregate: An Efficient Tool Learning Method via Parallel Tool Invocation cites PAL: Program-aided Language Models
  • LIMA: Less Is More for Alignment cites Training language models to follow instructions with human feedback
  • HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face cites PAL: Program-aided Language Models
  • HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face cites Training language models to follow instructions with human feedback
  • SPRINT: Enabling Interleaved Planning and Parallelized Execution in Reasoning Models cites HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face
  • Automated Creation of Reusable and Diverse Toolsets for Enhancing LLM Reasoning cites PAL: Program-aided Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Self-Challenging Language Model AgentsYifei Zhou, Sergey Levine, Jason E. Weston, Xian Li et al.NeurIPS 2025 · 52 citations
  2. StepSearch: Igniting LLMs Search Ability via Step-Wise Proximal Policy OptimizationXuhui Zheng, Kang An, Ziliang Wang, Yuhang Wang et al.EMNLP 2025 · 41 citations
  3. Divide-Then-Aggregate: An Efficient Tool Learning Method via Parallel Tool InvocationDongsheng Zhu, Weixian Shi, Zhengliang Shi, Zhaochun Ren et al.ACL 2025 · 16 citations
  4. SPRINT: Enabling Interleaved Planning and Parallelized Execution in Reasoning ModelsEmil Biju, Shayan Talaei, Zhemin Huang, Mohammadreza Pourreza et al.NeurIPS 2025 · 9 citations
  5. Automated Creation of Reusable and Diverse Toolsets for Enhancing LLM ReasoningZhiyuan Ma, Zhenya Huang, Jiayu Liu, Minmao Wang et al.AAAI 2025 · 8 citations

Builds on31

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging FaceYongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li et al.NeurIPS 2023 · 1,778 citations
  3. Gorilla: Large Language Model Connected with Massive APIsShishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. GonzalezNeurIPS 2024 · 1,715 citations
  4. LIMA: Less Is More for AlignmentChunting Zhou, Pengfei Liu, Puxin Xu, Srinivasan Iyer et al.NeurIPS 2023 · 1,486 citations
  5. PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations

Related papers

  1. Generalizable End-to-End Tool-Use RL with Synthetic CodeGymWeihua Du, Hailei Gong, Zhan Ling, Kang Liu et al.ICLR 2026 · 13 citations
  2. ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool EmbeddingsShibo Hao, Tianyang Liu, Zhen Wang, Zhiting HuNeurIPS 2023 · 315 citations
  3. Feedback-Driven Tool-Use Improvements in Large Language Models via Automated Build EnvironmentsJunjie Ye, Changhao Jiang, Zhengyin Du, Yufei Xu et al.ACL Findings 2026 · 1 citation
  4. From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven InteractionsChangle Qu, Sunhao Dai, Xiaochi Wei, Hengyi Cai et al.ICLR 2025
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines