LLM Agents Already Know When to Call Tools - Even Without Reasoning
Chung-En Sun, Linbo Liu, Ge Yan, Zimo Wang, Lily Weng
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › Agentic LLM Tool Management · Type: new method · Keywords: LLM agents, tool usage, benchmark, linear probe, API cost reduction, agentic AI
Areas: LLM Reasoning › Agentic Reasoning › Tool Use in Agents; AI Agents › Agent Systems and Interactions › Agentic Reasoning and Tool Use; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Tool Use in LLM Agents
Summary
When2Tool is a benchmark that measures tool necessity, and Probe&Prefill uses a linear probe to reduce unnecessary tool calls by 48% with minimal accuracy loss.
Explained to a 5-year-old
Some computer programs that think like people sometimes ask for help from other tools even when they could answer themselves. We made a big test with many little puzzles to see when asking for help is really needed. We discovered that the programs already have a secret signal that tells them whether they need help. We used that secret signal to tell the programs to be quiet and not ask for help when they don’t need it. This helps save money and makes the programs faster while still giving correct answers.
Explained to a 5-year-old, longer
Imagine a smart robot that can talk and also use other tools like calculators or maps. Sometimes it uses a tool even when it could answer the question by itself. Using a tool costs money and takes time, so we want it to only use tools when it really needs them. We created a big collection of different tasks, some easy and some hard, to test when a tool is necessary. The tasks include things like doing math, looking up facts, and checking if a tool will work correctly. We looked at how the robot thinks before it decides to use a tool. We found that the robot already has a hidden signal that tells whether a tool is needed. This signal is stronger than the robot’s own reasoning about whether to use a tool. We used this hidden signal to give the robot a gentle hint not to call a tool when it isn’t needed. The robot listened to the hint and avoided many unnecessary calls. This made the robot faster and cheaper while still giving correct answers. It also worked well on a real-world benchmark, cutting API usage a lot without hurting performance.
For a technical reader
The paper introduces a benchmark that systematically measures when a tool call is truly needed across different difficulty levels. It shows that language models already encode this necessity in their hidden representations, which can be linearly decoded with high AUROC. A lightweight probe reads this signal and prefills a steering sentence to guide generation, dramatically reducing unnecessary tool calls while preserving accuracy. Evaluations on both the new benchmark and a real-world agentic benchmark demonstrate substantial API-call savings with minimal performance loss.
Problem
Tool-augmented language models often call tools unnecessarily, wasting API costs and latency, and there is no systematic benchmark to study when a tool call is truly needed.
Method
The approach first introduces a benchmark with controlled difficulty levels across computational, knowledge, and reliability scenarios. It then uses a linear probe on hidden states to detect tool necessity and prefills a steering sentence to guide generation, reducing unnecessary calls.
Results
Probe&Prefill reduces tool calls by 48% with only 1.7% accuracy loss across models, and on the Search-o1 benchmark it cuts API calls by 20-56% without degrading accuracy.
Contributions
The paper introduces When2Tool, a systematic benchmark for tool necessity, and shows that models already encode this knowledge in hidden states. It then proposes a lightweight probing and prefilling technique to act on this knowledge, achieving large reductions in unnecessary tool calls.
Practical relevance
By cutting unnecessary API calls, the approach can significantly lower operational costs for deployed LLM agents.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction