arXiv cs.AI· Ekagra Gupta, Raj Saha, Aniekan-Abasi Inyang, Adam Al Gharib·· 13 小时前AI 评分49
研究揭示 LLM 智能体的拒绝行为难以迁移到工具调用场景
Behavior Beyond Text: Evaluating Refusal Transfer Failure in LLM Agents
AI 导读
研究构建了包含 2,304 条提示词的基准,用配对三元组在纯文本、标准工具调用和对抗性工具调用三种设定下测试五个不同规模与家族的模型,发现聊天中被拒绝的有害请求在标准工具调用下有 10%-52% 仍触发不安全工具调用。
正文 · 原文
Abstract:While large language models are increasingly deployed as tool-calling agents, their safety evaluations still focus primarily on their ability to refuse harmful requests in text. We investigate whether the refusal behavior in text transfers to tool use. We construct a benchmark of 2,304 prompts across four domains, consisting of matched triplets that present the same harmful or benign request in text-only, standard tool-enabled, and adversarially framed tool-enabled settings. We then assess tool-call safety using 20 predefined forbidden actions. Testing five models of varying sizes and families, we find that requests refused in text frequently result in unsafe tool calls. Under standard tool-enabled prompting, this divergence occurs for 10-52 percent of harmful requests refused in chat. To mechanistically investigate this gap, we identify a refusal-associated direction in the residual stream of each of the five models. We find that in tool-enabled contexts, the activations along this direction decrease in four of five models. Furthermore, lower activation predicts unsafe tool calls across all five models (AUC 0.76-0.86). However, restoring the signal to the respective text-only value through activation patching only prevents a subset of unsafe calls, primarily by suppressing tool use rather than by producing safer calls. Steering along the refusal direction nearly eliminates unsafe calls only at strengths that also suppress benign tool use or degrade the output quality. Our findings indicate that the identified refusal direction contributes to whether a model acts, but only partially explains the refusal divergence. Therefore, evaluating the safety of tool-calling agents requires directly examining their actions along with their textual responses.
| Comments: | Raj Saha and Ekagra Gupta contributed equally and share first authorship |
| Subjects: | Artificial Intelligence (cs.AI); Software Engineering (cs.SE) |
| Cite as: | arXiv:2610.28982 [cs.AI] |
| (or arXiv:2610.28982v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2610.28982 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Raj Saha [view email]
[v1]
Tue, 20 Oct 2026 23:14:30 UTC (281 KB)
来源:arXiv cs.AI · arxiv.org