How Do Agentic LLMs Decide to Call Tools? A Scaffold Default Controlled by Suppression
Xijie Gong, Tingxu Han, Jiahao Zhang, Wei Song, Ziqi Ding, Hanqi Yan, Youcheng Sun, Lijie Hu
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › Agentic LLM Tool Management · Type: new method · Keywords: agentic LLMs, tool calling, mechanistic interpretability, contrastive prompting, vector control, programming assistance
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 › LLM Agent Tool Use
Summary
The paper discovers that tool-calling decisions in agentic LLMs stem from a scaffold-induced default that can be flipped by analysis verbs, identifying a single controllable vector μΔ that determines whether a model calls a tool.
Explained to a 5-year-old
When a smart computer talks, it sometimes needs to use extra tools to help. It decides whether to use a tool based on a hidden rule. If you ask it to do something like 'write' code, it will use a tool, but if you ask it to 'talk about' something, it will just answer. The researchers found a tiny piece of information that controls this rule. This helps us understand how these computers make choices.
Explained to a 5-year-old, longer
Imagine a robot brain that can ask for help from other programs when it needs to do something hard. It has to decide whether to ask for help or just answer itself. The robot looks at the words you give it and uses a hidden rule to make that choice. If the word tells it to do something like 'write' or 'run', it thinks about using a tool. If the word tells it to 'talk about' or 'explain', it decides not to use a tool. The researchers gave the robot many pairs of sentences that only changed one small word. By looking at these pairs, they found a single tiny piece of information that decides the choice. This piece works like a switch that turns tool use on or off. The robot then uses this switch to pick its first answer. The same switch works in different kinds of robot brains. This discovery lets us see exactly how these computers decide to use tools.
For a technical reader
The study isolates the tool-calling decision by creating contrastive prompt pairs that differ only in a single request verb. By analyzing these pairs, the authors pinpoint a single vector μΔ that is both necessary and sufficient for the decision, showing it is read out by attention and MLP layers. This mechanism is consistent across multiple model families, providing a clear, reproducible way to understand and potentially control agentic tool usage.
Problem
It is difficult to understand how agentic language models decide when to invoke external tools because existing prompts are complex and entangled, making it hard to isolate the underlying decision mechanism.
Method
The approach converts complex agentic prompts into minimal contrastive pairs where a single request verb determines tool-calling, enabling isolation of the decision variable. By constructing thousands of paired prompts across multiple programming languages, the study traces the decision to a single vector μΔ and shows it is both necessary and sufficient. Downstream attention and MLP layers read out this vector into the first output token.
Results
The approach identifies a single vector μΔ that is both necessary and sufficient for the tool-calling decision, and this mechanism replicates across diverse model families. On the held-out evaluation set of 300 prompts, the approach achieves high accuracy in predicting tool usage.
Contributions
The paper provides a systematic method to isolate the tool-calling decision by using contrastive verb pairs, reveals that a scaffold-induced default is suppressed by analysis verbs, and demonstrates that a single vector controls this decision across models. It also offers a large collection of paired prompts for mechanistic analysis.
Research questions this paper is counted under
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