CodeTool: Enhancing Programmatic Tool Invocation of LLMs via Process Supervision
Not on the map. Why?
Abstract (arXiv)
Tool invocation significantly enhances the capabilities of Large Language Models (LLMs), yet challenges persist, particularly in complex task scenarios. Current methods, such as instruction-enhanced reasoning and supervised fine-tuning, often result in unnecessarily long reasoning paths and face difficulties in verifying the correctness of intermediate steps. In this paper, we propose CodeTool, a novel framework for stepwise code generation that improves LLM tool invocation by leveraging the concise and easily verifiable nature of code. CodeTool incorporates two distinct process rewards: the On-the-spot Reward, which provides immediate feedback on the accuracy of each tool invocation, and the Latent Reward, which assesses the contribution of each step toward overall task completion. By maximizing the cumulative reward of the On-the-spot and Latend Rewards at each step, LLMs are guided to follow efficient and accurate reasoning paths. Extensive experiments on StableToolBench and RestBench-TMDB demonstrate the superiority of CodeTool over existing approaches.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 19 of its 28 references that are in the map. First posted on arXiv 26 Mar 2025.
Builds on
19 of 28 references.
References · 19
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
- 2022Solving math word problems with process- and outcome-based feedbackcited by 871
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
7 more
- 2024Improve Mathematical Reasoning in Language Models by Automated Process Supervisioncited by 426
- 2025The Lessons of Developing Process Reward Models in Mathematical Reasoningcited by 402
- 2023Describe, Explain, Plan and Select: Interactive Planning with Large Language Models Enables Open-World Multi-Task Agentscited by 396
- 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Casescited by 383
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
- 2023RestGPT: Connecting Large Language Models with Real-World RESTful APIscited by 129
- 2024Advancing Tool-Augmented Large Language Models: Integrating Insights from Errors in Inference Treescited by 38
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025ToolRM: Outcome Reward Models for Tool-Calling Large Language Modelscited by 16
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestrationcited by 11
- 2025CogDual: Enhancing Dual Cognition of LLMs via Reinforcement Learning with Implicit Rule-Based Rewardscited by 6
- 2026Think Fast and Slow: Step-Level Cognitive Depth Adaptation for LLM Agentscited by 5
- 2026Learning to Rewrite Tool Descriptions for Reliable LLM-Agent Tool Usecited by 4
- 2026Teaching LLMs to Learn Tool Trialing and Execution through Environment Interactioncited by 2
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration24 Mar 2026
- 2026Learning to Rewrite Tool Descriptions for Reliable LLM-Agent Tool Use23 Feb 2026
- 2026Think Fast and Slow: Step-Level Cognitive Depth Adaptation for LLM Agents13 Feb 2026
- 2026Teaching LLMs to Learn Tool Trialing and Execution through Environment Interaction19 Jan 2026
- 2025ToolRM: Outcome Reward Models for Tool-Calling Large Language Models15 Sep 2025
- 2025CogDual: Enhancing Dual Cognition of LLMs via Reinforcement Learning with Implicit Rule-Based Rewards23 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2024Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents
- 2024LLM With Tools: A Survey
- 2025ToolCoder: A Systematic Code-Empowered Tool Learning Framework for Large Language Models
- 2024Language hooks: a modular framework for augmenting LLM reasoning that decouples tool usage from the model and its prompt
- 2025Code Execution as Grounded Supervision for LLM Reasoning
- 2023ART: Automatic multi-step reasoning and tool-use for large language models
- 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents