How abliteration works: taking the refusal out of an open-weight model
A model's refusals run through one direction in its internal activations. Find that direction, remove it from the weights, and the model stops refusing. No retraining, no prompt tricks.
Our model candid is an abliterated model: an open-weight model whose refusal behaviour has been removed. This post explains how that is done, starting from what happens inside the model.
Refusal is a behaviour the model learned
A chat model is not built with a rule list. During training it sees many examples where the right reply to certain requests is "I can't help with that", and it learns to produce that reply. Refusal is a learned behaviour like any other, and it is stored in the same place as everything else the model knows: its weights.
That makes one question interesting. Is refusal spread all over the model, tangled up with its knowledge? Or is it one separate mechanism that sits on top?
One vector per token, passed from layer to layer
To follow the answer you need one fact about how these models work.
A transformer keeps a long list of numbers for every token it is processing: a vector with a few thousand entries. Each layer reads that vector, computes something, and adds its result back in. Researchers call this running vector the residual stream. By the last layer it holds everything the model has worked out about what to say next.
Because every layer writes into the same vector, a direction in that space can carry a meaning. "The text is in French" might be one direction. "This is a question" might be another.
Finding the refusal direction
In 2024 a group of researchers looked for a direction that means "I am going to refuse" (Arditi et al., Refusal in Language Models Is Mediated by a Single Direction). Their method is short:
- Take a set of requests the model refuses and a set of ordinary requests it answers.
- Run both sets through the model and record the residual stream at the end of each request.
- Average the vectors for the first set, average the vectors for the second set, and subtract one average from the other.
What is left is the difference between "about to refuse" and "about to answer". Scaled to length 1, that vector is the refusal direction. Call it r.
They tested 13 open-weight chat models, up to 72 billion parameters. Each one had such a direction.
Two experiments that show it is the cause
A direction that only correlates with refusal would not be useful. The paper shows this one causes it, with two experiments:
- Take it out. At every layer, subtract from the residual stream whatever part of it points along r. The model stops refusing requests it refused before, and answers them.
- Put it in. Add r to the residual stream while the model reads a harmless request. The model refuses it.
So for these models refusal behaves like a switch that runs through one direction, and it can be moved without touching the rest.
Writing the change into the weights
The first experiment changes activations while the model runs, so it needs special code at inference time. The same effect can be made permanent.
Only some of the model's weight matrices write into the residual stream: the token embeddings, and the output matrices of each attention and MLP block. For each of these matrices W, replace it with
W' = W − r rᵀ W
In words: whatever W was going to write, remove the part that points along r. After this edit no component of the model can write anything in the refusal direction, so the direction stays empty for every input.
The result is an ordinary set of weights. It loads and runs like the original model, with no extra code. The open-source community named this procedure abliteration, a play on "ablation", the term for removing a part of a network.
How it differs from the other ways to get an answer
| Approach | What changes | What it costs | Does it last? |
|---|---|---|---|
| Jailbreak prompt | The input | Tokens in every request | Until the wording stops working |
| Fine-tuning | All or many weights, by training | Training data and GPU time | Yes |
| Abliteration | One direction, removed from the weights | A few hundred prompts run through the model once | Yes |
Abliteration needs no training run and no training data beyond the two prompt sets. It removes one thing and leaves the rest of the weights as they were.
What it does not do
It adds no knowledge. The edit removes a gate. What comes out afterwards is what the base model already knew, and it can be wrong, as with any model.
It is not free of side effects. The refusal direction is not perfectly separate from everything else the model represents, so removing it shifts other outputs a little. People measure this by comparing the edited model's outputs with the original's on harmless prompts. Later variants of the method, such as projected abliteration and versions that keep the size of each weight row unchanged, exist to make that shift smaller.
One direction is not always the whole story. Later research found that in some models refusal spans several directions, or a cone of them, and not a single line (Wollschläger et al., 2025). A comparison of abliteration tools across models found that some models give up refusing easily and others keep some of it. An abliterated model can still decline now and then, or answer with a warning attached.
That is why we describe candid as built not to refuse, and do not promise that it never will.
What this means when you use candid
- You call it like our other models: same key, same endpoints, with
candidas the model name. The model page has the specs and sample code. - You do not need a jailbreak prompt or a special system prompt. The change is in the weights.
- The model reasons before it answers. The reasoning is not returned in the response.
- No refusals does not mean no rules. Our Acceptable Use Policy applies to candid as it does to every model we serve.
Setup guides and test results for 11 coding agents.
Agent setup, model evaluations, security testing: if it runs on LLM tokens, we take it on.