← Lab /AI/ML

LLM agents often attend to the correct tool yet still choose the wrong one

Tool-selection errors stem from the readout layer rather than from missing attention to the correct tool

AI/ML arXiv 15 Jun 2026 Measurement Prototype evidence

Published as “Looking Is Not Picking: An Attention-Segment Account of Tool-Selection Failures in LLM Agents”

Why it matters

Practitioners can improve single-turn tool-selection accuracy by up to ~15 points with a cheap, training-free attention-based selector, but the approach does not yet help argument generation or multi-turn agent loops.

Summary

LLM agents usually attend to the correct tool (80% of real BFCL failures) but still pick the wrong one, indicating a readout bottleneck; intervening on the readout via an additive attention-logit bias or a residual-stream steering vector recovers 59-91% of failures and a training-free, gold-free selector adds up to +14.9 points on real benchmarks, though the evidence is limited to single-turn function-name selection and the AUROC of the attention margin is only 0.751.

What they found 7

  1. The model attends to the correct tool in 80% of real BFCL failures, yet still mis-selects it.

    “by per-candidate attention argmax the model attends most to the correct tool 80% of the time (vs. 21% chance), and the gold is the literally under-attended segment on only 10%: it looks at the right tool and still picks wrong.”

  2. Prompt-side repairs recover at most 23% of failures, while readout-side interventions recover 59-91%.

    “(1) Input vs. readout: repairing the prompt (reordering or duplicating the gold tool) recovers ≤23% of failures, while readout-side interventions recover 59-91%.”

  3. Two readout levers (additive attention-logit bias and residual-stream steering vector) recover largely the same failures (Jaccard 0.865 pooled, 0.79-0.91 per model).

    “two gold-pointed interventions in different representationsan additive attention-logit bias and a residual-stream steering vector-recover largely the same failures (per-task Jaccard 0.865 pooled, 0.79-0.91 per model)”

  4. A training-free, gold-free selector improves BFCL function-name selection by +11.9 points pooled and Seal-Tools by +14.9 points pooled.

    “BFCL +11.9 pts pooled (+11.2 over five single-turn models incl. Qwen3-8B and tool-finetuned xLAM-2-8B) and Seal-Tools +14.9 pts pooled (an absolute gold-free gain; no Seal oracle ceiling run)”

  5. The attention margin separates failures with pooled AUROC 0.751.

    “pooled AUROC 0.751 ([0.686, 0.817]; permodel 0.679-1.000”

  6. Causal dose-response: boosting the gold segment raises P(gold) from 0.18 to 0.90 and success from 0.19 to 0.97 over δ ∈[-12, +12].

    “pooled, boosting the gold segment drives P(gold) 0.18→0.90 and success 0.19→0.97 over δ ∈[-12, +12]”

  7. Per-model Spearman correlation of P(gold) vs. δ is +0.857 to +0.964 (boost gold) and -0.893 to -1.000 (boost distractor).

    “Per-model Spearman of P(gold) vs. δ is +0.857 to +0.964 (boost gold) and -0.893 to -1.000 (boost distractor)”

Caveats 8

  • The attention-margin AUROC is only 0.751, indicating moderate predictive power.
  • The gold-free selector does not transfer to multi-turn settings; the pre-decision signal is near-chance.
  • Even with the selector, a residual gap of about 6 points remains compared to an oracle boost.
  • Interventions can still damage some successful calls (e.g., 2.7% damage for the oracle boost).
  • The fix is scoped to function selection, not arguments: the tool-definition segment carries no argument content (§8).
  • The selector does not transfer to multi-turn (pre-decision signal near-chance, §9).
  • The 4D-mask intervention needs a model that honors a passed mask (Phi-3 out of scope).
  • Causality of raw attention is contested (Jain and Wallace 2019; Wiegreffe and Pinter 2019), hence our headline is interventional.

What’s new here 4

  • Provides a per-segment attention metric (HAA) that localizes the gold tool in 80% of failures.
  • Shows that readout-side interventions (attention-logit bias, residual steering) recover far more failures than prompt-side edits.
  • Introduces a training-free, gold-free selector that improves tool-selection accuracy by up to 15 points without any per-tool corpus.
  • Demonstrates a bidirectional, monotonic causal dose-response of attention bias on tool-selection success.