Skip to content

T-Lens: Interpretable tool-call interception beyond uncertaintyT-Lens: Explainable Tool-Call Withholding Beyond Uncertainty

Carlo Malagnino, Xiaoyu Liang, Aliai Eusebi, Virginia Ceccatelli, Tobias Braun, Nils Loose, Suman Jana, Lorenzo Cavallaro
University College London; Technische Universität Darmstadt; Universität zu Lübeck; Columbia University; Mohamed bin Zayed University of Artificial Intelligence
arXivarXiv:2611.41747Originally published Indexed by this site · 2 days agoDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose a label-free tool-call interceptor, T-Lens, which blocks 52.2% of improper calls on BFCL at a matched 5% false-block rate, higher than P(True)'s 37.2%.

Threat modelThe defense sits after the model proposes a tool call and before the system executes it, handling calls the parser can decode; when a request is labeled as requiring no call, that call is improper. The goal is to block as many improper calls as possible while keeping the false-block rate on necessary calls at or below α, without judging whether arguments are correct.

Questions
Tool-using models often initiate calls even when facing tools that cannot serve the request, potentially leaking data or triggering unintended operations. The authors argue that uncertainty alone is insufficient to block such calls, and that whether a tool is applicable must also be judged.
Methods
T-Lens uses the Jacobian lens to construct directions from antonyms, splitting the tool-mismatch signal into U-Space uncertainty, A-Space applicability, and a discarded residual; it then sums the two hidden-state readings and the output entropy with standardized equal weights, blocking at a calibrated threshold and giving reasons.
Experiments and results
On the 14 BFCL configurations, T-Lens blocks 52.2% of inappropriate calls at a matched 5% false-blocking rate for necessary calls, and P(True) is 37.2%. With frozen directions transferred to RelyToolBench and MetaTool, the rates are 55.2% and 16.5% respectively; on MetaTool, P(True) is 34.7%.
Limitations and future work
The authors note that the current method only judges whether a call should be made and does not check arguments; multi-step use needs to consider historical calls, thresholds need recalibration under distribution shift, and the user value of explanations and weight optimization remain to be studied. The external evidence comes from two adapted benchmarks, and RelyToolBench's advantage mainly comes from Llama-3.1-8B.
Experimental setupQwen3-1.7B、Qwen3-8B et al. · Berkeley Function-Calling Leaderboard (BFCL) v4、RelyToolBench et al. · Prevention、Blocked et al.
AI summaryResearchers propose T-Lens, a method requiring no labels or training that intercepts improper tool calls before execution. LLMs often issue calls even when no available tool can serve the request, and uncertainty estimation alone is insufficient to prevent such calls; T-Lens reads two signals from the model's hidden states, measuring uncertainty with U-Space directions and tool applicability with concepts such as necessity and compatibility recovered from the model's vocabulary, then combines them with output entropy to decide whether to intercept. On BFCL, T-Lens intercepts 52% of improper calls at a 5% false-positive rate, whereas label-free baselines intercept at most 37% at the same false-positive rate; on RelyToolBench and MetaTool it intercepts 55% and 17% respectively, versus at most 23% and 13% for baselines without additional model calls.

Researchers propose T-Lens, a method requiring no labels or training that intercepts improper tool calls before execution. LLMs often issue calls even when no available tool can serve the request, and uncertainty estimation alone is insufficient to prevent such calls; T-Lens reads two signals from the model's hidden states, measuring uncertainty with U-Space directions and tool applicability with concepts such as necessity and compatibility recovered from the model's vocabulary, then combines them with output entropy to decide whether to intercept. On BFCL, T-Lens intercepts 52% of improper calls at a 5% false-positive rate, whereas label-free baselines intercept at most 37% at the same false-positive rate; on RelyToolBench and MetaTool it intercepts 55% and 17% respectively, versus at most 23% and 13% for baselines without additional model calls.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    To address the problem of calls still being initiated when no applicable tool exists, the authors propose an interceptor that reads both uncertainty and tool applicability before execution.

    Core question: when none of the available tools can serve the user's request, how can an LLM block inappropriate tool calls before execution and explain the reason for blocking.

    • Scenario and risk: Tools let LLMs retrieve information and operate external systems; the authors cite Ruan et al. (2024) to state that inappropriate calls may leak user data or trigger unintended operations. In the example in Figure 1, Gemma-3-4B still initiates a call for a triangle-area request when only a BMI tool is available.
    • Shortcomings of existing methods: The authors hold that output entropy, G-NLL, semantic entropy and P(True) only measure uncertainty, and that sampling or self-evaluation among them requires additional model calls; training probes requires labeled calls and provides no reasons. A model may be confident that a tool is needed while no tool is actually applicable.
    • Core observation and hypothesis: The authors hold that hidden states also contain a complementary "whether a tool is applicable" signal; decomposing the mismatch direction into uncertainty and applicability, then adding output entropy, can identify inappropriate calls better than uncertainty alone.
    • Proposed method: T-Lens is a label- and training-free runtime gate that trains no classifier and requires no inappropriate-call examples; it calibrates the score scale and threshold using calls that require tools, and reports the signals that triggered blocking.
    • Threat model: This is a defense setting; the paper does not posit an active attacker.
      • Protected object: The tool-using model and its surrounding execution system; the gate handles generated calls that the benchmark parser can decode.
      • Definition of inappropriate call: When a request is labeled as requiring no call, a call is inappropriate even if well-formed; whether to call and whether arguments are correct are treated separately.
      • Defense position and capability: After the model proposes a call and before execution, it reads hidden states and token distributions and can decide to allow or block.
      • Optimization objective: Maximize the inappropriate-call blocking rate while keeping the false-blocking proportion of necessary calls within α.
  2. What related research exists?

    Related work is divided into tool-call evaluation, output uncertainty, hidden-state probes, and the Jacobian lens; T-Lens is positioned as a label-free runtime gate.

    Tool calling and failure evaluation

    • Toolformer (Schick et al., 2023): lets language models learn to use tools; Ruan et al. (2024) use an LM-simulated sandbox to identify LM agent risks, and the paper uses this to illustrate the safety consequences of tool calling.
    • BFCL (Patil et al., 2025) and ToolBH (Zhang et al., 2024): the former evaluates call correctness and abstention, the latter examines whether a model can identify tasks that a given tool cannot solve.
    • SABEval (Liu et al., 2026): traces improper calls to tools whose parameters appear to match but which in fact cannot serve the request. The authors distinguish that these works measure or explain failures, whereas T-Lens intervenes at runtime.

    Uncertainty from model outputs

    • Output entropy, G-NLL and semantic entropy: read token probabilities, the negative log-likelihood of a single generation call, and the sampled semantic distribution, respectively; Ye et al. (2026) find that G-NLL's prediction of erroneous calls is comparable to semantic entropy.
    • P(True) (Kadavath et al., 2022): has the model evaluate its own answer. The authors note that sampling and self-evaluation add model calls, while entropy-based scores do not explain the reason.

    Signals from internal representations

    • Trained probes: Han et al. (2024) approximate uncertainty; Wu et al. (2026a) and Sun et al. (2026) estimate whether a tool is needed; Yeats et al. (2026) and Ke et al. (2026) detect tool-call errors. The authors note that such methods require per-model annotation and training, and do not provide explanations.
    • Jacobian lens and U-Space (Gurnee et al., 2026; Braun et al., 2026): the former maps between vocabulary and hidden-state directions, the latter uses four sets of antonyms to construct ambiguity, incompleteness, conflicting evidence, and general uncertainty directions; U-Lens multiplies U-Space scores by mean output entropy.
    • Other internal-representation methods: Wu et al. (2026b) predict the tool to be called using the mean hidden state of each tool's example requests; Foreword (Kim, Feldt, and Yoo, 2026) trains a test-failure predictor on Jacobian-lens features. The authors note that both require examples or labels.

    Baselines and data: baselines include entropy, first-token entropy/log-probability, mean answer log-probability, G-NLL, U-Space, U-Lens, as well as semantic entropy, sampled no-call rate, and P(True), which require additional calls; the supervised reference is a logistic probe on the same hidden states. The main benchmark is BFCL v4, and the transfer evaluation uses adapted RelyToolBench and MetaTool.

    The authors position this paper as following U-Space's label-free direction-construction approach, adding an applicability representation orthogonal to it, and connecting it to the distribution-shift problem of selective prediction.

  3. How does the paper address this problem?

    T-Lens label-free decomposes the mismatch direction into uncertainty and applicability, fuses it with output entropy at equal weight, and blocks and explains according to a calibrated threshold.

    The overall idea is to reuse the single forward pass that generates the call: T-Lens reads U-Space uncertainty and A-Space applicability separately from hidden states, and adds output entropy; the directions are constructed only once per model, and calibration requires no inappropriate-call labels.

    Seed direction and label-free decomposition

    • At the layer used by U-Space, a Jacobian lens maps and normalizes six sets of mismatch antonym pairs, and the mean of the positive words is subtracted from the mean of the negative words to obtain the seed direction: d=n(μ+−μ−). It represents the initial hidden-state direction of "tool and request mismatch."
    • Projecting d onto the four orthogonal U-Space directions gives dU; for the remainder, 429 candidate axes are constructed from WordNet 3.0 single-token adjective antonyms, with the U-Space component removed first.
    • Orthogonal matching pursuit selects the ten axes that best fit the remainder, whose span is called A-Space; dA is the orthogonal projection of the remainder onto that space, and the residual is discarded. The authors state that the residual mainly reflects the seed words and does not improve detection.

    Per-call scoring and calibration

    • The hidden state h is read at the last token before the answer; when reasoning is present, the answer-preceding position after it is used. Entropy covers reasoning tokens, or answer tokens when there is no reasoning.
    • The three readings are the cosines of h with dU and dA, and the mean entropy of T next-token distributions; the core score is s=z(u)+z(a)+z(e), where the mean and standard deviation of z come from calibration calls that require tools.
    • Blocking occurs when s is strictly greater than the threshold. In the main setting α=5%, the threshold is the corresponding quantile of scores on calibration calls of the same kind; the equal weights are used because the authors hold that fitting weights would require inappropriate-call labels.
    • The authors interpret this as split-conformal calibration: under the exchangeability assumption it gives an upper bound on false blocking of necessary calls; because the same calibration calls also fit the standardization parameters, T-Lens's bound is only approximate.

    Explanation method

    • For blocked calls, the percentile of each of the three components among calibration calls is reported separately; the U-Space component can further be broken down into the four uncertainty categories.
    • When a component or U-Space category alone enters the top 5% of calibration calls, it is named a refusal reason; explanations do not participate in the gating decision, which still uses only the total score.

    Tasks, costs and data protocol

    • Positives are inappropriate calls; prevention is the true positive rate, and blocking is the proportion of necessary calls that are blocked; correct lost separately counts the proportion of necessary calls that would originally have succeeded, as judged by the official tool-and-argument checker, that are blocked.
    • BFCL reuses the official v4 single-turn generation and verdicts, totaling 3,035 items; each category is split by source group into development 40%, calibration 20% and evaluation 40%, to avoid near-duplicate requests or requests sharing tool documentation crossing groups.
    • The evaluation set is 1,213 items and 12,484 emitted calls, used only for reporting; development labels are used only to train the supervised reference probe. For transfer, the BFCL directions, layers and signs are frozen, and each external source uses only its own tool-requiring calibration calls for standardization.

    Key implementation settings

    • Nine models and 14 BFCL configurations; Qwen3 and Llama each have prompt and function-calling modes, Gemma is in prompt mode, and eight configurations include reasoning traces.
    • Sampling baselines use five additional generations; semantic entropy performs AST clustering on sampled calls, treating calls parsed to the same function and arguments as the same meaning.
    • Statistical intervals are 95% intervals from 2,000 paired source-group bootstrap resamples, and ± in the tables is the interval half-width; the matched-cost and calibrated families are each Bonferroni-corrected.
  4. What experiments did the paper conduct?

    Experiments cover 14 BFCL configurations and two adapted external benchmarks, and examine component ablations, controlled edits, threshold transfer and refusal explanations.

    Experimental Setup

    • Models evaluated: Qwen3-1.7B/8B/14B/32B, Llama-3.1-8B-Instruct, Gemma-3-1B/4B/12B/27B, nine in total; 14 configurations on BFCL.
    • Data scale: BFCL v4 has 3,035 items and 1,226 source groups, with an evaluation set of 1,213 items and 12,484 calls; RelyToolBench has 330 pairs in the main text and MetaTool has 995 pairs, all author-adapted versions.
    • Baselines: single-generation methods are entropy, first-token entropy/log-probability, mean answer log-probability, G-NLL, U-Space, and U-Lens; extra-call methods are semantic entropy, sampled no-call rate, and P(True).
    • Supervised reference: a logistic probe trained on development labels over the same hidden states; it is not a label-free method.
    • Metrics and determination: prevention, blocked, correct lost, balanced accuracy, AUROC; improper calls are based on the benchmark's no-call labels, and argument correctness is determined by the official tool-and-argument checker; the paper did not use LLM judging.
    • Two threshold protocols: matched 5% sets each method to exactly 5% false blocking of necessary calls on the evaluation data, for comparing rankings; calibrated 5% sets the threshold using only calibration data, and the actual false-block rate may deviate.

    Main Results

    The table below shows prevention (%) at matched 5% blocking; BFCL is the mean over 14 configurations, each external source is the mean over six models, with directions frozen. According to Table 3.

    Swipe horizontally to read the table

    MethodBFCLRelyToolBenchMetaTool
    T-Lens52.255.216.5
    U-Space25.715.912.5
    U-Lens36.515.77.5
    Entropy34.915.06.9
    First-token entropy23.022.811.1
    G-NLL20.68.711.2
    P(True) (extra call)37.219.234.7
    • BFCL comparison: the authors report that T-Lens is 15.0, 15.7, 17.3, and 31.6 percentage points higher than P(True), U-Lens, entropy, and G-NLL, respectively; the main text also summarizes the four gains as 15.0 to 31.6 points, and states they remain significant after Bonferroni correction across thirteen comparisons.
    • Supervised reference: the main text states the supervised probe is 56.0%, and that T-Lens, without training, closes about 80% of the gap between the best label-free baseline and this reference; AUROC is 0.852, and the highest label-free baseline is P(True) at 0.820 (Appendix B).
    • External exception: on MetaTool, P(True) is higher than T-Lens; T-Lens's 3.9-point lead over U-Space is not significant. The authors suggest that explicitly asking whether a call is correct may be better suited to choosing among multiple plugins.

    Calibrated Deployment and Per-Configuration Results

    • Calibrated threshold: in Figure 2b, T-Lens has prevented 56.4 ± 5.2%, blocked 6.3 ± 2.0%, and correct lost 3.6 ± 1.1%; the trained probe corresponds to 61.3 ± 5.8%, 6.7 ± 1.8%, and 4.2 ± 1.1%.
    • Balanced accuracy: T-Lens is 75.1%, while U-Lens, entropy, P(True), and G-NLL are 67.9%, 67.0%, 66.8%, and 58.5%, respectively; the authors state that the relative gains of the first four are significant after Bonferroni correction.
    • Configuration exceptions: Table 4 shows T-Lens outperforms entropy in 11 of 14 configurations; Qwen3-1.7B-FC and Qwen3-32B-FC differ by −3.2 and −13.4 points, respectively, and Gemma-3-1B by 0.0 points.

    Components, Controlled Edits, and Mechanistic Explanation

    • Component ablation: in Table 1, on BFCL, U, A, and entropy alone are 41.9%, 38.1%, and 34.9%, and the combination of the three is 52.2%; the authors state that removing A, U, and entropy loses 4.4, 6.7, and 6.3 points, respectively, all significant.
    • Transfer ablation: after removing applicability, RelyToolBench and MetaTool lose 12.0 and 4.6 points, respectively; entropy alone on the external sources is only 15.0% and 6.9%, and the authors conclude from this that the applicability component's contribution transfers better.
    • Controlled edits: Appendix C edits 192 BFCL requests one by one across four models; inapplicable tools increase applicability by 1.5 to 5.9 standard deviations, and ambiguous argument values increase uncertainty by 0.5 to 4.0. For three models applicability does not rise with ambiguous values, with Gemma-3-12B as the exception; the authors state the two respond to different changes but are not independent.

    Explanation Reliability and Distribution Shift

    • Rejection reasons: Table 2 aggregates 2,001 rejections at the BFCL calibrated threshold, with an overall correctness of 68%, versus 21% for randomly blocking the same number; rejections naming incompleteness and applicability have correctness of 83% and 76%, respectively.
    • Rejections needing review: rejections naming only general uncertainty, conflicting evidence, or entropy account for 22%, with 51% correctness; the authors state such rejections are most worth a second check.
    • curated-to-live: in Table 5, after freezing the 5% threshold, T-Lens blocks 72.3%, but falsely blocks 18.8% of necessary calls and has correct lost 14.0%; entropy is 58.5%, 15.5%, and 9.1%, respectively. The authors conclude that ranking transfers better than threshold.
    • Concentration of external evidence: Appendix D reports that among RelyToolBench's 203 evaluation requests with no applicable tool, most models make only 6 to 11 calls, while Llama-3.1-8B makes 68; T-Lens's advantage comes mainly from this model, and it blocks none of Qwen3-32B's seven such calls.

    Other Ablations and Analyses

    • The seed direction alone is 46.6%, adding entropy gives 50.1%, and T-Lens is 52.2% (Table 7).
    • Removing the residual changes only 0.4 points, which the authors state is within noise (Section 5.2).
    • The average calibrated prevention over 200 random seed groups is 33.6%, with three groups reaching or exceeding T-Lens; the average over 50 groups of tool-irrelevant negative-adjective seeds is 53.8%, with five groups reaching or exceeding T-Lens (Appendix B).
    • On eight reasoning configurations, reading from the end of the prompt instead lowers matched prevention by 8.6 ± 5.4 points (Appendix B).
    • The Spearman correlation between U-Space and entropy is 0.35, and between A-Space and entropy is 0.17; the rank correlation between U-Lens and entropy is 0.98 (Sections 5.2 and 5.4).
  5. What are some points that can be further explored?

    The authors list directions including argument-level checking, multi-step gating, threshold recalibration, steering interventions and explanation evaluation, and the external evidence also has clear boundaries.

    Limitations and Future Directions Noted by the Authors

    • Granularity of judgment: currently only the benchmark labels are used to judge "whether a call should be made," not argument values; the authors propose reading hidden states at each argument to flag values unsuitable for the request (Section 6).
    • Multi-step scenarios: in multi-step use, the gate would also need to consider prior calls, their results, and dependencies between calls (Section 6).
    • External evidence: apart from BFCL used for development, evidence comes from two adapted benchmarks; on MetaTool, P(True), which requires an extra call, blocks more improper calls (Section 6).
    • Threshold transfer: that ranking transfers does not mean the threshold transfers, and recalibration is needed when the query distribution changes (Section 6).
    • Causal intervention: controlled edits only show that the two components respond to different changes and are not independent; the authors propose steering along the applicability direction to test whether the model acts accordingly, and exploring turning blocking into a more suitable tool or a clarifying question (Section 6).
    • Explanations and weights: whether the explanations help still requires user studies; the three components are currently equally weighted, and weight optimization is left for future work (Section 6).

    Scope of Experimental Coverage

    • Nine models are evaluated, with 14 configurations on BFCL; external transfer uses six of the prompt-mode models (Section 4).
    • The external data are all author-adapted rather than official settings: RelyToolBench retains 330 pairs, and MetaTool uses Subtasks 1 and 3 of Task 2, 995 pairs in total (Appendix D).
    • RelyToolBench scores only the first call proposed by the model; most models rarely call when no applicable tool exists, and the overall advantage comes mainly from Llama-3.1-8B (Appendix D).
    • Controlled edits cover Llama-3.1-8B, Qwen3-8B, Gemma-3-4B, Gemma-3-12B, and 192 requests; Qwen3-32B's component decoding yields irrelevant words, and the paper draws no mechanistic conclusion from it (Appendix C).
    • The paper reports no human evaluation or explanation user study; the code and data are stated in a footnote as to be released in a future version, which is the authors' plan.
  6. Summarize the main content of the paper

    T-Lens supplements uncertainty gating with label-free hidden-state directions, improving blocking on BFCL and providing reasons, but the threshold and external evidence have boundaries.

    T-Lens is a runtime defense for tool-using LLMs: after a call is generated and before execution, it decides whether to block when no tool is applicable, and controls the false-blocking cost of necessary calls.

    • Problem: The authors hold that a model may be confident that "a tool is needed" while misjudging "which tool is applicable," so output entropy or self-evaluated uncertainty does not cover tool mismatch; training probes in turn require per-model labeling.
    • Method: Uses Jacobian lens and antonym pairs to construct a mismatch direction, label-free decomposes it into U-Space uncertainty, A-Space applicability and a discarded residual; two hidden-state cosine readings and mean output entropy are standardized and added with equal weights, blocking occurs when the result exceeds a calibrated threshold, and component percentiles explain it.
    • Main BFCL results: Across 14 configurations at matched 5% blocking, T-Lens blocks 52.2% of inappropriate calls, versus 37.2%, 36.5% and 34.9% for P(True), U-Lens and entropy (Table 3).
    • Deployment-style calibration: At a calibrated 5% target, T-Lens blocks 56.4%, with actual false blocking of 6.3% and a loss of 3.6% of originally correct calls; the supervised reference probe has a blocking rate of 61.3% (Figure 2b).
    • Transfer and exceptions: With frozen directions, blocking rates on RelyToolBench and MetaTool are 55.2% and 16.5%; on MetaTool, P(True) reaches 34.7%, and T-Lens's lead over U-Space is not significant (Table 3, Section 5.6).
    • Explanations and boundaries: On BFCL refusals, naming applicability yields 76% correctness, versus 51% for relying only on general uncertainty, conflicting evidence or entropy (Table 2). The authors hold that applicability is the more transferable component, and note that argument checking, multi-step dependencies, threshold recalibration, causal validation of steering and explanatory user studies remain to be done.

Research lineage

1 foundations · 0 follow-ups in library
Explore in knowledge graph →
This paper
T-Lens: Explainable Tool-Call Withholding Beyond Uncertainty
2026-11-30
Follow-up work

No later in-library follow-ups recorded yet.

Hover or focus a connected paper to inspect the citation context.

Read originalarxiv.org