Researchers read and steer tool choice inside language models before generation
An arXiv paper reports that hidden states can predict which tool an agent will call, shift that choice without retraining, and flag likely mistakes in advance.
In plain words
AI agents pick tools to act in the world, and a wrong pick can be hard to undo. The paper's authors show that a model's internal activity, its hidden states, can reveal the pick before any text is generated. They also use this signal to nudge the model toward a chosen tool and to warn when a mistake seems likely.
What was announced
The authors, writing on arXiv, build a vector for each tool by averaging the model's hidden states over a few example requests. Comparing a new request against these vectors predicts the tool it needs, and the difference between two vectors gives a steering direction that moves the model toward a chosen tool without retraining. Across eight instruction-tuned models from 4B to 27B parameters, steering changed the generated call to a target tool in 56-78% of held-out tool pairs, with weaker results on real APIs from tau-bench and ToolBench. In three models examined in depth, the steering direction switched more calls in middle layers than a direction that only raises the target tool's score, suggesting the vectors capture tool choice before the final layer.
The same vectors also flag likely tool-selection errors before generation: calls are more likely wrong when a request sits similarly close to two tool vectors. On BFCL across three models, this signal reached an AUROC of 0.74-0.79, a measure of how well a detector separates correct from incorrect cases. The authors present this as a way to read, steer, and check tool choice before a call is made.
What it does not show
- The evidence is the paper's abstract, so the full method, experiments and caveats are not available for verification.
- Steering was less reliable on real APIs from tau-bench and ToolBench than on held-out tool pairs, per the authors.
- The error-detection AUROC figures come from three models on BFCL and are not shown for the broader eight-model set.
For security and IT teams
- Status
- The work is a preprint posted on arXiv describing research results, not a deployed product or tool.
Sources
Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 4 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.