Abstract
Tool-integrated reasoning (TIR) augments large language models (LLMs) with the ability to invoke external tools during long-form reasoning, such as search engines and code interpreters, to solve tasks beyond the capabilities of internal reasoning. While reinforcement learning (RL) has shown promise in training such agents, most of existing approaches typically optimize only for final correctness without considering the efficiency or necessity of external tool use. This often leads to excessive tool calling, incurring high computational costs and hindering the development of internal reasoning capabilities - a phenomenon known as cognitive offloading. To this end, we propose Optimal Tool Call-controlled Policy Optimization (OTC-PO), a simple yet effective RL-based framework that encourages models to produce accurate answers with minimal tool calls. Our method introduces a tool-integrated reward that jointly considers answer correctness and corresponding tool use behavior of model to reach that answer. Experiments with Qwen-2.5 and Qwen-Math across multiple QA benchmarks show that our approach reduces tool calls by up to 68.3% and improves tool productivity by up to 215.4%, while maintaining comparable answer accuracy.
Introduction
As Large Language Models (LLMs) evolve into sophisticated reasoning agents, they are increasingly equipped with external tools like search engines and code interpreters. While these tools extend the model's capabilities beyond its internal knowledge, current training paradigms often lead to cognitive offloading. Models become "lazy," invoking tools for trivial tasks they could solve internally. This over-reliance increases computational costs and inhibits the development of robust internal reasoning.
Methodology: Optimal Tool Call-controlled Policy Optimization (OTC-PO)
To address the inefficiency of standard tool-integrated reasoning, we propose OTC-PO, a reinforcement learning framework designed to optimize for tool productivity—defined as the ratio of correct answers to total tool calls across test cases.
The Tool-Integrated Reward
The core innovation of OTC-PO is a multiplicative reward function: $$r_{final} = \alpha \cdot r_{tool} \cdot r_{correctness}$$
This structure ensures that the model is only rewarded for correct answers ($r_{correctness} > 0$), with the magnitude of the reward scaled by the efficiency of tool usage ($r_{tool}$). Unlike additive rewards, which can lead to "reward hacking" (where a model avoids tools entirely to minimize penalties even at the cost of accuracy), this multiplicative approach maintains stability and prioritizes correctness first.
Implementation Variants
We instantiated this framework within two popular RL algorithms:
- OTC-PPO: Implements a smooth cosine decay to penalize excessive tool calls within the Proximal Policy Optimization framework.
- OTC-GRPO: Utilizes Group Relative Preference Optimization to identify a "local optimal" number of tool calls within a group of trajectories for the same query, rewarding the most efficient successful paths.
Experimental Results
We evaluated OTC-PO across two domains: Search-based QA (NQ, HotpotQA) and Code-based Math (AIME, MATH). The results across Qwen-2.5 and Qwen-Math models were striking:
- Efficiency Gains: Tool calls were reduced by up to 68.3%, leading to significantly faster inference and lower computational overhead.
- Productivity Surge: Tool productivity improved by up to 215.4%, indicating that the models learned to use tools only when strictly necessary.
- Internal Reasoning Development: Models trained with OTC-PO showed superior generalization on out-of-domain tasks. This suggests that the pressure to be efficient forces the model to develop more robust internal reasoning pathways rather than relying on external retrieval as a crutch.
Conclusion
OTC-PO effectively mitigates cognitive offloading by aligning reinforcement learning objectives with tool efficiency. By rewarding "stingy" tool use, we can develop LLMs that are not only more accurate but also significantly more autonomous and computationally efficient. Future work will explore applying this framework to more diverse toolsets and complex, long-horizon planning tasks.
Summary updated