Research: refusal direction transfers across architectures, safety tools can be re-estimated by write locationLocating and Steering Refusal Beyond Attention
Translation in progress — untranslated text is omitted.
The paper studies whether the location of refusal within language models changes with architecture. The authors find that the refusal representation, controlled by a single direction in the residual stream of Transformers, still exists in state space models (SSMs): a rigid rotation aligns the representation spaces of the two models, making them truly share this representation. A harm probe trained on Transformers can flag harmful inputs in SSMs, and removing the aligned direction makes the model answer attacks it previously refused, while random directions of the same size have a much weaker effect. The architectural difference is not in where the direction is applied, but in where it must be read: before each layer's new output is added to the residual stream, i.e., at the write location, harm can be clearly read; controlled experiments with fixed intervention strength show that the key is where the direction is estimated, not where it is applied.
- A Transformer's refusal is controlled by a single direction in the residual stream, and safety tools rely on that finding. Architectures like SSMs use recurrent updates rather than attention to pass information. The question is whether the refusal representation survives across architectures and where it should be read.
- Align representations across architectures with a rigid Procrustes rotation and transfer the refusal direction. The direction is estimated at each architecture's new output before it is written into the residual (the write point), then triggered by a linear detector and amplified over the whole generation.
- The authors report that the rotated direction still controls refusal on Falcon-Mamba. Write-point gating reduces prefix-injection ASR from 98.0% to 5.0%, and to 1.0% under an adaptive attack. The gating only ties with "fixed refusal after detection," and the authors say what transfers is the direction, not defense strength.
- The authors state that gating does not increase defense strength, persona role-playing requires bidirectional correction that does not generalize, and layers and gains cannot be directly transferred between models. Experiments cover SSM, Transformer, RWKV-6, and hybrid models, with the main ASR judged by Llama-Guard-3-8B and a human agreement rate of 94.8%.
Related papers
Show 3 more papers
- Target-free Latent Safety AlignmentDefensesarXiv