Behavior Beyond Text: Evaluating Refusal Transfer Failure in LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance also fits: Tool learning and function calling
also in 1 more
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 21 of its 26 references that are in the map. Submitted 20 Oct 2026.
Builds on
21 of 26 references.
Closest ancestors · 2
Same direction, newest first
- 2024The Dark Side of Function Calling: Pathways to Jailbreaking Large Language Models25 Jul
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
Other references · 19
- 2022Training language models to follow instructions with human feedbackcited by 16,493
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,469
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,903
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,271
- 2022Locating and Editing Factual Associations in GPTcited by 2,951
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 2,083
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,584
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,530
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,174
- 2022Red Teaming Language Models with Language Modelscited by 1,093
7 more
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 794
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 785
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 579
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 528
- 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 281
- 2025A Survey of LLM-based Agents in Medicine: How far are we from Baymax?cited by 90
- 2025The Prompt Makes the Person(a): A Systematic Evaluation of Sociodemographic Persona Prompting for Large Language Modelscited by 51
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Mind the GAP: Text Safety Does Not Transfer to Tool-Call Safety in LLM Agents
- 2026Tool Mediation Alters Refusal Mechanisms in Large Language Models
- 2026Before Retrieval Begins: Safety and Tool-Use Decisions in LLM Agents
- 2025An Embarrassingly Simple Defense Against LLM Abliteration Attacks
- 2025When Refusals Fail: Unstable Safety Mechanisms in Long-Context LLM Agents
- 2025Refusal Direction is Universal Across Safety-Aligned Languages
- 2026AgentBoundary: Counterfactual Evaluation of Safety in Tool-Using LLM Agents
- 2026Lumen-bench: Cross-Lingual Safety Gaps and the Say-Do Problem in Tool-Calling Large Language Models