arXiv:2610.28982cs.AIOct 2026

Manuscript Offprint

arXiv:2610.28982

Behavior Beyond Text: Evaluating Refusal Transfer Failure in LLM Agents

Ekagra Gupta, Raj Saha, Aniekan-Abasi Inyang, Adam Al Gharib

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.

1 Introduction

Increasingly, the use cases of large language models have shifted from simply generating text to taking actions in the form of agents. Many modern systems browse the web, execute code, call typed tools, and implement enterprise workflows [Schick et al., 2023, Yao et al., 2023, Qin et al., 2024]. With this shift in the deployment of LLMs, there is a corresponding shift in the meaning of their “safety”. That is, a tool-enabled agent can cause harm through its actions in the environment, not only by emitting an unsafe sentence as measured in text-based settings.

Indeed, safety alignment is currently overwhelmingly trained and evaluated on text. In particular red teaming, refusal training, and jailbreak benchmarks target harmful text-based completions [Ouyang

∗^{*}Equal contribution

Preprint.

et al., 2022, Bai et al., 2022a,b, Ganguli et al., 2022, Perez et al., 2022, Mazeika et al., 2024]. A model that has learned to say “I can’t help with that” has learned a behavior over its verbal output. Nonetheless, whether that behavior also governs the tool-call decision is a separate question that carries direct consequences as these agents move into financial, medical, and legal settings.

This distinction is important because tool-enabled agents are increasingly being developed and applied in high-risk domains such as finance and healthcare [Ding et al., 2024, Wang et al., 2025], where failures can lead to financial losses, privacy breaches, or the execution of malicious instructions extracted from external sources.

However, prior work has rarely investigated whether refusal mechanisms transfer to tool-call decisions. To address this gap, we evaluate models from five different families on a dataset we created spanning four domains. We run inference on all of these models using groups of three semantically similar requests: one text-only request and two other tool-enabled variants. We find that models that refuse harmful requests in text generation often fail to refuse similar requests when they are framed in the format of a tool invocation.

Behavioral finding: We evaluate our benchmark of prompt triples, in which each harmful request is posed as a plain chat prompt as well as two tool-enabled versions. We find that, although the models refuse 44–76% of harmful chat prompts, they oftentimes fail to refuse the same requests when phrased in the tool-use variant. This gap, which we call conditioned divergence, is substantial and does not track model size in our five models.

Mechanistic finding: Next, we ask why, seeking to find the mechanistic underpinnings of our behavioral results. We begin by identifying the refusal direction in each model, following the approach of prior work, which shows that refusal is mediated by a single direction [Park et al., 2024] in the residual stream [Arditi et al., 2024]. To directly address the behavioral finding, we then test whether that refusal direction also governs tool call safety. We find that it does, but only in part. That is, tool-enabled prompts suppress the activation of the refusal direction at the decision token in most models, and a lower activation predicts the unsafe call in all five models (AUC 0.76–0.86). Nonetheless, when we restore the refusal signal to its no-tool level, we find that for most models only a minority of unsafe calls revert, and most of those that do revert by emitting no tool call rather than a safer one. Hence, we conclude that refusal suppression explains only part of this transfer failure. The refusal direction is therefore a useful signal for monitoring but a comparatively blunt knob for control. Because the divergence recurs in all five model families, it may reflect a general property of how alignment is represented in models, although the internal mechanism differs between them.

References (28)