Manuscript Offprint

arXiv:2609.04721

Locating and Steering Refusal Beyond Attention

Preethi Carmel Bosco, Gopalakrishnan Srinivasan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Where inside a language model does refusal live, and does that place change when the architecture does? In a transformer, refusal is governed by a single direction in the residual stream, a finding that safety and interpretability tooling now depend on. State-space models (SSMs) route information through a recurrent update instead of attention. They share no token-mixing mechanism with a transformer. Does the same safety representation survive this shift, or must it be rediscovered for each new architecture? It survives. We find that a single rotation aligns one model's representation space with another's. Under this rigid rotation, which can only reorient a space and not reshape it, the alignment shows the two models genuinely share the representation. A harm probe trained on a transformer then flags an SSM's harmful inputs, and removing the aligned direction makes a model answer attacks it would otherwise refuse, while a random direction of the same size does far less. What is architecture-specific is not where the direction is steered but where it must be read. Each layer computes a fresh output that is then added into the residual stream, and harm is cleanly readable at this output, the write site, before the addition. A control that holds the intervention's strength fixed shows that what matters is where the direction is estimated, not where it is applied: a direction estimated at the write site controls refusals, while one estimated in the summed stream does not. Applied through a detector-triggered gate (a lightweight classifier flagging harmful prompts), this direction lowers jailbreak success in all four architecture families we test (SSM, transformer, recurrent, and hybrid). On the SSM it holds against an attacker that tunes its prompt against the defense: the classifier fires on all 100 attacked prompts and attack success stays at 1.0% (from 15.0%). The defense only matches, and does not beat, a trivial rule that returns a fixed refusal whenever the same detector fires, so the gate adds no defense strength of its own. The contribution is that the direction it amplifies transfers across architectures. Where target labels are scarce, a transported direction used as a harm detector (on our Llama-to-Falcon-Mamba pair) flags 11.4 percent points more of the harmful prompts than one trained from the same few labels, at a matched 5.0% false-alarm rate. Two human raters validate the automated judge behind these numbers, agreeing with it 94.8% of the time (κ=0.90\kappa=0.90), and the judge's few mistakes only overstate attacks, so our defense numbers are not inflated. Safety tooling built on refusal therefore ports to a new architecture by re-estimating the direction at that architecture's write site, not by rebuilding it.

1 Introduction

The safety of a deployed language model rests on its refusals: it is safe only if it refuses what it should not answer, the one behavior every jailbreak targets. In a transformer, refusal is governed by a single linear direction in the residual stream, and a growing safety stack reads and steers that direction to detect and block harm (Arditi et al. 2024; Zou et al. 2023a; Lee et al. 2025). Every one of these results is in a transformer, where information between positions is routed by attention. State-space models (SSMs) such as Mamba (Gu and Dao 2023; Zuo et al. 2024) route it through a recurrent state update instead, and are now entering deployment. If refusal is a property of attention, this stack breaks whenever a model routes information differently, and each new architecture needs its safety tooling rediscovered from scratch. Is refusal a property of the transformer architecture, or the same function every model learns, and where inside a model does it live?

We find that it is the function. The refusal representation is shared across architectures that route context in completely different ways: by attention (Llama-3.1, Mistral), by a selective scan (Falcon-Mamba), by token-shift recurrence (RWKV-6), or by a mix of attention and scan (Zamba2). A refusal direction read in a transformer and mapped into a Mamba state space is still the state-space model's refusal trigger, and removing it there jailbreaks the model (Table 4). We also find that what is architecture-specific is not where refusal is steered but where it must be read: harm is cleanly decodable at the fresh contribution each architecture writes before the residual accumulates it (the attention output in a transformer, the selective-scan block output in an SSM; Figures 1 and 3 sketch this per architecture), and a matched-magnitude control shows the direction estimated there controls refusal while one estimated in the accumulated residual degenerates. This yields one rule: refusal is architecture-independent as a representation and architecture-specific as a readout site. We study this in Falcon-Mamba-7B, with Llama-3.1-8B (Grattaftiori et al. 2024) and Mistral-7B (Jiang et al. 2023) as transformer references, and confirm it on RWKV-6 (Peng et al. 2024) and the hybrid Zamba2-7B (Glorioso et al. 2024). We make three contributions.

  • Refusal is a shared representation across architectures. A single rigid (Procrustes) rotation (Schönemann 1966) both aligns the representation spaces and causally transports the refusal direction. Removing the transported direction jailbreaks the target: decisively across the transformer-SSM pair and at the hybrid Zamba2-7B's Mamba write site, more weakly at its attention site and on the single-checkpoint RWKV-6. A refusal-orthogonal random direction has a far smaller effect. This is the paper's central result.

  • The refusal direction must be read at the fresh write,

not the accumulated residual. Harm peaks in decodability at each architecture's write site: a linear probe separates harmful from benign prompts with AUROC 0.99 (1.0 is perfect separation, 0.5 chance) on the surface-controlled subset, where a surface-only probe scores 0.54. A matched-magnitude control (Table 7) shows the direction estimated there controls refusal while one estimated in the residual degenerates, and that the intervention's location is irrelevant.

  • Applied through a detector-triggered gate, that direction causally controls refusal in all four architecture classes. The gate is a causal test of the readout claim, not a defense contribution: its numbers only match a simpler baseline that returns a fixed refusal whenever the same detector fires, so what ports across architectures is the direction, not defense strength (Section 5). The gate lowers prefix-injection attack success on Falcon-Mamba (98.0% to 5.0%) and on three further classes (the two transformers, the recurrent RWKV-6, and the hybrid, Table 6). On Falcon-Mamba it also holds under a suffix optimized through the gate: the detector fires on all 100 attacked prompts and attack success stays at 1.0% (from 15.0%), where the same adaptive attack erodes a transformer's detector.

References (56)