T-Lens: Explainable Tool-Call Withholding Beyond Uncertainty
Carlo Malagnino, Xiaoyu Liang, Aliai Eusebi, Virginia Ceccatelli, Tobias Braun, Nils Loose, Suman Jana, Lorenzo Cavallaro
Abstract
Large language models (LLMs) increasingly act through tools, enabling them to retrieve information and interact with external systems. Reliable tool use requires LLMs to recognize when none of the available tools can serve a request, yet models often make calls even in such situations. A natural safeguard is to withhold calls based on uncertainty estimates. However, on the Berkeley Function-Calling Leaderboard (BFCL), a widely used tool-calling benchmark, uncertainty alone is insufficient to prevent many inappropriate calls. We show that a model's hidden state carries a complementary signal: whether the available tools apply to the request. We introduce T-Lens, a label- and training-free method that withholds inappropriate tool calls before they run. It reads two signals from the model's hidden state: uncertainty, using U-Space directions, and applicability, using concepts such as necessity and compatibility recovered from the model's vocabulary. It combines these with output entropy to decide whether to withhold the call. On BFCL, T-Lens stops 52% of inappropriate calls at a 5% false positive rate, compared with at most 37% for label-free baselines at the same rate. The advantage carries over to RelyToolBench and MetaTool: using the same directions, T-Lens prevents 55% and 17% of inappropriate calls, respectively, compared with at most 23% and 13% for baselines requiring no extra model calls.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI, cs.LG
- Comments
- 11 pages, 9 figures, 7 tables
Related papers
When Budget Forcing Fails: Forced "Wait" Extensions Add Little Beyond the Token Cap and Run-to-Run Noise
Shared title terminologycs.CLLuis Leal
Explainable Oracle Bone Script Recognition via Multimodal Pictographic Reasoning
Shared title terminologycs.CLYin Wu, Zhengxuan Zhang, Jiayu Chen et al.
Speculate Wide, Answer Narrow: Lossless Speculative Tool Execution for Reasoning Agents
Shared title terminologycs.CLZihe Song, Wenting Zhao, Ye Liu et al.
Latent Tools and Latent Context: Grounding Generation in Deterministic Sources
Shared title terminologycs.CLLiwei Zhang, ZhiMing Tong, Mochen Guan et al.
AIDetx2: Lightweight and Explainable Detection of AI-Generated Text
Shared title terminologycs.CLDiogo M. Silva, Armando J. Pinho, Diogo Pratas
Nothing Is Harder Than Nothing, Until You Write It Down: Absence Conventions in Stateful Tool Use
Shared title terminologycs.CLMarek Šuppa, Jaroslav Kopčan