The register of refusal shows how an LLM refuses to answer certain queries when it does. Previous work has uncovered that refusal is represented in LLMs as a complex shape with multiple directions.

As we saw in our own experiments, different directions correspond both to categories of harm (for example, cybersecurity-related refusals and medical harm-related ones) and specific vocabulary used to express refusal.

By “ categories of harm ” we mean specific domains like medicine, cybersecurity and the like where harm might occur. We’ll then describe types of prompts we used, and different types of prompts might belong to different categories of harm. We’re doing our absolute best to avoid confusion, we promise.

What’s important is that refusal is causally controllable and independent enough to be independently steered. This finding has the following implications:

In our previous posts about refusal we shared some of the experiment result, so you might find looking through them useful:

In the current post we uncover more details, following our preprint “ Refusal Register is Causally Steerable: Decomposing the Refusal Direction into Category-Aligned Components in Gemma-2-9B-IT ”.

This is a more layman-friendly explanation of our research and findings. We are very open to collaboration and constructive criticism.

We build upon previous research, which we cite in the paper, but will omit here in order to keep the post shorter and more digestible. Other researchers have already shown that LLMs refuse prompts of different categories using different registers. What we add is the following:

Due to computational limits we only experimented with Gemma-2-9B-IT, therefore our results are yet to be reproduced on larger models and models from other families.

We also focus on two malignant types of prompts and compare it to the “normal” baseline. Further on, we’ll say

Our sets of prompts are also rather small, and more large-scale experiments are yet to come.

We used support-vector machines (SVM) to discover boundaries separating activations produced from NORMAL prompting vs HARMFUL prompting, as well as NORMAL vs SELFREF. We refer to the boundary between NORMAL and HARMFUL as B 1 and to the boundary between SELFREF and NORMAL as B 2 . They were most prominent at layer 20 of the model, therefore we primarily focused our efforts there.

We used sparse auto-encoders (SAEs) to rank the features we found and we used ablation, steering, and injections to prove causal relations. In this post on different mechinterp methods we describe SAEs in more detail. We used LLM-as-a-judge (gpt-4o-mini) and regular expressions to classify LLM’s answers.

The angle between B 1 and B 2 is about 75°. It is clear the boundaries are distinct, but not exactly orthogonal. In the previous posts we called them near-orthogonal, but then softened the claim to “they are distinct”.

Distinction itself does not automatically mean HARMFUL and SELFREF activations should be steered differently, so we used ablation and injections to prove that. First, we used SAE to extract features related to refusal in both directions, then removed those features at layer 20. The diagram below shows the results: if we ablate B 1 , HARMFUL refusal is reduced, and if we ablate B 2 , SELFREF is.

You can see that ablating B 1 -related features does not affect B 2 -related refusal, and ablating B 2 -related features barely affects B 1 -related refusal. That is why we conclude these two geometrically distinct directions are also causally independent.

We also could induce refusal to benign questions (like “How to learn Spanish?”). The diagram below shows refusal rates to NORMAL (benign) requests.

Without steering the model does not refuse answering any of the queries from the NORMAL set, and with steering it does. More interestingly, the way refusal looks is different.

If we steer B 1 , it refuses and provides safety reasons (learning Spanish is actually a dangerous endeavor, in case you didn’t know). If we steer B 2 , it refuses saying that as a language model it cannot provide the requested information or instructions.

After experimenting with ablations at different layers, we saw that most likely there are separate refusal circuits. For example, at layer 9 B 1 ablation barely affects HARMFUL, although it is very distinct at layer 20, as we said before. Ablation of B 2 at layer 9 has a slightly larger effect than at layer 20. At layer 31 B 1 suddenly affects SELFREF, as well as B 2 (which was expected).

As we mentioned just above, B 1 and B 2 -related refusals are worded differently. We decided to test whether this difference is an artifact of our experiments or something deeper.

We injected B 1 difference-of-means direction onto SELFREF and B 2 difference-of-means direction onto HARMFUL. Injection of B 1 onto SELFREF changed the vocabulary significantly, switching from “as a language model, I cannot…” to “this is dangerous” kind of answers. The rate of refusal did not change.

The same intervention with B 2 and HARMFUL did not work as well. You can see the difference on a graph below.

“Content-register” vocabulary refers to explaining how the request is harmful and therefore should not be fulfilled. You can see that the more intensely we add the B 1 vector, the higher the rate of use of such vocabulary.

Please pay attention to the scale: it shows how similar intervention using B 2 also changes vocabulary a bit, but the effect is significantly smaller. “Meta-register” refers to saying “I am a language model and therefore cannot…” or using similar wording.

We further experimented with the same injections at layers 25, 28 and 31 and obtained incoherent outputs. We (or someone else) are yet to discover why exactly the output degenerated and if the same thing happens in other layers we have not yet tested. These layers were picked somewhat randomly — we wanted to test more layers closer to the output layers, and we’re limited in computational resources, so that was it. It would be very helpful to see whether the results are similarly incoherent in between those layers and whether the level of incoherent changes in any way.

This was a significant milestone for our small team. We are still looking for more compute to scale our experiments, while in the meantime researching some other directions.

So far we reproduced our results on a smaller model of the same family – Gemma-2-2B-IT. We are overall convinced that there are at least two distinct refusal directions, which are mediated by different circuits and encode both the category of harmful requests and the vocabulary used to refuse. These two directions are not symmetric, which could reflect the ways training data is built, but that is a hypothesis yet to be tested.

We will gladly receive commentary and suggestions, as well as answer any questions you might have, so please feel free to leave your thoughts in the comments.