Looking Is Not Picking: An Attention-Segment Account of Tool-Selection Failures in LLM Agents
- ID: 4380b131
- 原文链接: https://arxiv.org/abs/2606.16364
- PDF: https://arxiv.org/pdf/2606.16364
- 作者: Shiyang Chen
- 日期: 2026-06-15
- 分类: agents
- 来源类型: paper
- 标签: tool-selection, attention, bfcl, agent-failures, inference-intervention
- 质量评分: 4/5
- 抓取时间: 2026-10-27T23:54:36
中文导读
工具选错时,直觉是模型在拥挤的 harness 里没看到正确工具。这篇在 BFCL 真实失败案例上测模型对工具定义段的注意力:失败案例中注意力最强的工具恰好是正确工具的比例有 80%(随机约 21%),正确工具被冷落只占 10%——模型看着对的工具,在读出端选错。修输入端(重排、复制正确工具)最多挽回 23% 的失败,读出端干预(注意力 logit 偏置或 steering 向量)挽回 59-91%,两类干预挽回的失败集合几乎重合(Jaccard 0.865)。据此做的免训练选择器在 BFCL 提升 11.9 个点、Seal-Tools 提升 14.9 个点,全部受测模型为正。
为什么值得关注
工具选择失败卡在读出端而非输入端:精简工具列表收益上限两成多,读出端干预能挽回六到九成。元数据与摘要经 opencli arxiv paper 直取核对,结论数字以论文摘要为准。
关键信息
- 论文标题: Looking Is Not Picking: An Attention-Segment Account of Tool-Selection Failures in LLM Agents
- 作者: Shiyang Chen
- arXiv: https://arxiv.org/abs/2606.16364
- 发布时间: 2026-06-15
- 关联标签: tool-selection, attention, bfcl, agent-failures, inference-intervention
English Abstract
LLM agents mis-call tools, and the natural guess is that the model failed to see the right tool in a crowded harness. We show the opposite through a lens concurrent work sets aside -- the model's attention to labeled tool-definition segments. On real BFCL failures, 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 under-attended segment on only 10%: it looks at the right tool and still picks wrong. This directly refutes the intuitive "crowded-harness / lost-in-the-middle" explanation: the failure is at the decision readout, not the harness, and we pin it there three ways. (1) Input vs. readout: repairing the prompt (reordering or duplicating the gold tool) recovers <=23% of failures, while readout-side interventions recover 59-91%. (2) Representation-invariance: two gold-pointed interventions in different representations -- an 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), so the bottleneck is localized to the readout independent of which representation is poked. (3) A training-free, gold-free selector: per-segment attention closes most of the gold-free-vs-oracle gap on BFCL (+11.9 pts pooled function-name selection vs. +17.9-pt oracle headroom) and adds +14.9 pts on Seal-Tools; every model positive (exact McNemar p<=8e-4 each). Scopes differ: the causal attention-bias dose-response is bidirectional and monotonic on 10 mask-honoring models (3-32B), the full 0.5-32B span carrying only the correlational diagnostic; the deployable selector is evaluated on 5 single-turn models and does not yet transfer to a multi-turn loop.
Obsidian Notes
- 来源笔记: OpenClaw定时任务/Agent实践探索/2026-10-27-Agent实践探索.md
- 抓取方式: opencli arxiv paper 2606.16364 -f json(元数据 + 摘要)