Deep dives · 2026-11-23 · Advanced · By bombong
Abliteration: removing safety guardrails by erasing the refusal direction
Abliteration is a weight edit that finds the single direction inside a model responsible for 'refusal' and erases it from the weights, disabling safety alignment without retraining. Recent studies show that this surgery is not as clean as it seems, and that defenses to block or detect it are advancing quickly.
Contents
- Refusal behavior in aligned LLMs depends heavily on a single direction in the residual stream, and this direction can be easily obtained as the difference in mean activations between harmful and harmless prompts.
- Even when Abliteration removes refusal, code generation ability and the internal recognition that 'this request is harmful' largely remain. What is erased is not the judgment but the refusal at the output stage.
- That does not make it a clean surgery. Side effects such as optimism bias and shifts in expressed confidence appear even on tasks unrelated to refusal, and they differ by model family.
- Defenses are developing along three lines: hiding the refusal signal so it is hard to find, spreading safety across multiple components, and detecting modification from activation structure.
- The claim that Abliteration gets harder with newer models has not been consistently confirmed. Results vary widely by model family and method.
Why it became a problem: alignment is thinner than expected
After pretraining, conversational LLMs learn alignment through post-training: 'refuse harmful requests and answer harmless ones.' Because this process takes a lot of data and compute, alignment seemed like a property deeply embedded throughout the model. As research accumulated, however, it became clear that this refusal behavior is actually concentrated in a very small structure inside the model.
The WRDO study paper, summarizing prior work, explains that refusal is largely mediated by a single direction in the residual stream (the central pathway that runs between transformer layers and accumulates information), and that this direction is usually computed as the difference in mean activations between harmful and harmless prompts. The Addition by Subtraction study paper describes the same phenomenon as 'safety alignment is highly sparse.' In other words, pruning a small number of safety-critical neurons or erasing a single refusal direction is enough to badly break aligned behavior.
Abliteration exploits this weakness at the weight level. The AMRA study paper defines Abliteration as 'removing refusal capability by projecting weight matrices to be orthogonal to the extracted refusal direction,' and notes that it has become a major safety concern because it can bypass post-training alignment with only a small number of contrasting prompts. According to the 'Abliteration Is Not a Scalpel' study paper, this method is the standard recipe for producing popular 'uncensored' open-weight models. The core of the problem is that anyone with the released weights can strip out the safety guardrails without retraining.
Core idea: a single alarm wire
Imagine you thought a building was densely covered with security devices, but when you opened it up, every sensor ultimately fed into a single wire leading to the alarm. Leave the sensors in place and cut only that wire, and the alarm will not sound even when an intrusion is detected. Abliteration does something similar.
Inside the model, a prompt is represented as a point (activations) in a space with thousands of dimensions. When the model receives a harmful request, this point is pushed in a particular direction, and later layers read that directional component to produce a refusal such as 'Sorry, but I can't help with that.' This direction is the 'refusal direction.' If the weights are modified so that the model cannot write anything along this direction, then even if earlier layers recognize harmfulness, that signal does not lead to a refusal.
The key point of this analogy is that the sensors, that is, the recognition of harmfulness, are still working. As shown below, several studies have produced evidence that even after Abliteration, the model still internally distinguishes harmful intent. Whether there really is only one wire, and whether cutting it disturbs neighboring wires, are separate questions. These two questions form the main threads of later research.
How it works: the conceptual flow
This section is a conceptual explanation for understanding the principle, not a guide to carrying it out. The overall flow has three steps. First, prepare a set of prompts the model refuses and a set it answers readily, feed each into the model, and collect activations from intermediate layers. Second, subtract the mean activations of the two sets to get a difference vector. This is the refusal direction. Third, project the weight matrices that write values into the residual stream so that they are orthogonal to this direction. The model then cannot send a signal along that direction, whatever input it receives. The Willing but Unable study paper summarizes this as 'a low-rank weight edit that removes the refusal direction from the residual stream by orthogonal projection.'
The appeal of this design is its cost. Unlike fine-tuning, it uses no training data or gradient descent; it is done with only means and projections. Unlike methods that manipulate activations at runtime (steering), it modifies the weights themselves, so the result is simply a new checkpoint that can be distributed. The trade-off is precision. It rests on the assumption that a single mean difference represents all harmful requests.
That assumption is sensitive to how the contrasting sets are chosen. A study on the failure of topic-matched contrast baselines paper reported that on the Qwen 3.5 2B model, pairing harmful and harmless prompts on the same topic and subtracting them did not yield a working refusal direction at any layer or strength. Using the same code with contrasts that were not topic-matched, refusal disappeared completely at six layers. Geometric analysis showed that topic matching cancels out the main activation components shared by the two sets, shrinking the direction's magnitude below the threshold at which weight projection can perturb the residual stream. Intuitively, a 'cleaner control group' seems better, but because the refusal signal is entangled with topic information, that was not the case. The WRDO study paper targets the same assumption from the opposite side. Because uniformly averaging different harmful prompts can mix refusal phenomena of different kinds, it combines per-prompt directions with learned weights into a single composite direction.
What is erased and what remains
Several studies have checked from different angles whether Abliteration really erases 'only refusal.' The Willing but Unable study paper used Qwen2.5-Coder-Instruct 3B, 7B and 14B on a task of deliberately inserting SQL injection (CWE-89) into safe code to train vulnerability detectors. Originally, 14B refused such requests 100% of the time, 7B refused 73% or 5% depending on the prompt source, and 3B was barely blocked at all. After Abliteration, refusal dropped to zero or near zero at every size, while the share of syntactically correct code stayed above 93%. The interpretation is that in this setting, refusal and code generation ability are separable.
The LatentBiopsy study paper set a reference direction using 200 safe prompts and detected harmfulness by the angle at which a new prompt deviates from that direction. Even on Abliterated models, detection performance (AUROC) was at most 0.015 lower than on instruction-tuned models. The researchers see this as evidence that the representation of harmful intent and the downstream refusal-generation mechanism are geometrically separate. This corresponds to 'the sensors are still working' in the analogy from the previous section.
The 'Behind Harmful Compliance' study paper compared three ways of stripping safety guardrails from Qwen2.5-7B and Llama-3.1-8B. Harmful SFT (supervised fine-tuning), RLVR with harmful rewards, and Abliteration all brought harmfulness close to the maximum, but they broke the model in different ways. SFT caused the broadest capability loss and changes in internal representations; Abliteration suppressed refusal features locally but differently depending on the model family; and RLVR largely preserved basic capabilities, explicit safety judgment and representational structure while shifting only behavior toward compliance. In other words, models that look like the same 'jailbroken model' on the surface can differ inside.
That does not make Abliteration a clean surgery. The 'Abliteration Is Not a Scalpel' study paper compared the original and Abliterated versions of two MoE model families (Gemma-4-26B-A4B-it, Qwen3-30B-A3B-Instruct-2507) on a task where refusal never occurs: predicting weekly price moves for 60 stocks on the Warsaw Stock Exchange over 18 weeks (21,600 predictions in total). Because the task involves no refusal, every difference is a side effect. In both families, the Abliterated version was more optimistic (Gemma +12.2 pp, Qwen +7.4 pp), wrote longer self-justifications, and used fewer uncertainty words in self-critique. Expressed confidence decreased in Gemma and increased in Qwen, so the same surgery produced changes in opposite directions. The researchers stated that degraded instruction-following cannot explain these differences.
Three paths to stripping safeguards
Harmful SFTFine-tuning on harmful data
- Broadest capability loss
- Large internal representation changes
Harmful RLVRBehavior readjusted via rewards
- Preserves basic capability and safety judgment
- Responds to safety-reflection prompts
- Fabricates nonexistent targets
AbliterationRefusal direction removal
- Suppresses localized refusal features
- Effect varies by model family
공통 All three paths reach near-maximum compliance with harmful requests
Can it be stopped? Hiding, spreading, detecting
The first line of defense is making the refusal direction hard to find. The AMRA study paper argues that existing defenses miss the root cause: 'the refusal direction is too easy to extract.' This method applies a rank-k update to the matrices that write to the residual stream, replacing refusal-inducing activations with random aliases, and adjusts the downstream matrices that read that signal so the original behavior is preserved. On Llama-3-8B, the refusal score after Abliteration was 2.16 points higher than the undefended baseline, with MMLU degradation under 0.5 pp. On Gemma-2-9B, it was 14.70 points higher, but the utility cost was larger and the harmful output rate was similar to the baseline. This also shows that hiding the refusal signal is not the same as preventing harmful output itself.
The second line is not concentrating safety in a single component. The Addition by Subtraction study paper gradually removes safety-critical neurons during fine-tuning while using preference optimization to rebuild safety behavior in other parts of the model. The resulting model became more robust not only to pruning attacks but also to refusal-direction removal and black-box jailbreaks, lowering the success rate of some attacks by up to 90%. If 'the problem is that there is only one wire,' the idea is to add more wires.
The third line is detecting models that have already been modified. The AMS study paper determines whether safety training has been altered by measuring how far apart harmful and harmless concepts are in activation space. Across 14 model configurations from 4 families, cross-validated accuracy was 71% (10 out of 14). The study sorted modification methods into four types by their traces in activation space. Training removal collapses the gap between concepts; weight-orthogonalization Abliteration collapses the gap and also rotates the refusal direction; some Abliteration leaves the gap intact and rotates only the direction; and behavioral fine-tuning preserves both. The correlation between the gap metric and actual compliance with harmful requests was r = -0.546, which the researchers themselves described as pointing in the right direction but noisy. The WRDO study paper also experimented with a setting that runs the same optimization machinery in reverse to restore refusal in Abliterated checkpoints.
Where things are heading
There is a claim that 'as model developers respond, Abliteration gets harder with newer models.' The 'Is Abliteration Getting Harder?' study paper tested this directly. It was prompted by the developer of ARA (Arbitrary-Rank Ablation), an optimization-based variant, reporting that direction-based methods were increasingly failing on new models. The researchers edited five old/new version pairs of Qwen, Gemma, OLMo and Mistral with the same prompts, search budget and selection rules, and measured remaining refusal with 972 harmful prompts.
The conclusion is that it 'has not become uniformly harder.' After direction-based removal, the extra refusal retained by newer versions ranged from -1 pp to +37 pp, and after ARA from -26 pp to +34 pp. ARA lost less effectiveness on Gemma and OLMo, and actually lost more on Qwen. The researchers noted as limitations that each ARA verdict relied on a single run and that some verdicts changed depending on the allowed divergence budget or the variance model. In other words, it is hard to say that defenders are pulling clearly ahead.
The direction of defense research is also shifting. The weight appears to be moving away from restoring already-broken refusal after the fact (WRDO's reverse setting) or hiding the refusal signal (AMRA), toward redesigning alignment itself so that it is not sparse, as in Addition by Subtraction paper. The underlying view is that as long as attacks target the structural weakness of a 'single direction,' hiding alone has limits unless that structure changes.
Limitations and practical guidelines
First, there are measurement limitations. Many of the studies cited here rely on a handful of open-weight models in the 2B–30B range, specific prompt sets, and automated judge models. AMRA's paper effect differed greatly in size between Llama and Gemma, AMS's paper detection accuracy reached only 71%, and Abliteration's side effects paper even reversed direction depending on the model family. Conclusions such as 'this defense works' or 'this model is safe' should not be carried over directly to other models.
Teams that download and use open-weight models should consider three things. First, models labeled 'uncensored' or 'abliterated' are not simply the original minus refusal. Since dispositional changes such as optimism bias can appear even on judgment tasks unrelated to refusal paper, they should be evaluated side by side with the original on real work tasks. Second, check provenance. It is hard to tell from the outside whether a checkpoint in a public repository has had its safety training modified, and tools such as activation-based scans paper are only supplementary signals. Third, even when refusal is removed for research purposes (e.g., synthesizing vulnerable-code data, paper), access should be controlled so that the model does not leak or get used for other purposes.
Those releasing models should be wary of the habit of evaluating safety by refusal behavior alone. The Behind Harmful Compliance study paper warns that harmful compliance, harmfulness awareness and capability awareness are axes that can come apart, and that self-checking or hallucination patterns may not be reliable safety signals in the face of adaptive post-training. Given that the moment weights are released, the safety mechanisms inside the model become components users can modify, it is more realistic to layer serving-stage guardrails and input detection (e.g., activation-geometry-based detection, paper).
Common mistakes are also worth summarizing. The intuition that matching contrast prompts 'cleanly' will yield a better direction can be wrong paper. It is also risky to conclude there are no side effects because benchmark scores held up, since side effects can appear on tasks unrelated to refusal paper. Finally, the assumption that newer models are robust to Abliteration is weakly supported paper.
Checks before adopting an open-weight model
Provenance and modification
- Have you verified the checkpoint's provenance and modification history?
- Are activation-based scans used only as a supplementary signal?
Side-effect evaluation
- Have you compared it with the original on real work tasks unrelated to refusal?
- Have you checked for shifts in judgment tendencies such as optimism or confidence?
Safety design
- Do you avoid evaluating safety based on refusal behavior alone?
- Have you layered serving-time guardrails with input detection?
- Do you control access to refusal-free models used for research?
Further reading
If you are getting oriented, start with the introduction of WRDO paper. It briefly lays out the standard picture that refusal is mediated by a single difference-in-means direction, along with its limits. Then read the study on topic-matched contrast baselines paper to understand geometrically why finding that direction is more delicate than it looks.
If you want to know 'what gets erased and what remains,' read three papers together. Willing but Unable paper shows the separation between capability and refusal, LatentBiopsy paper shows that harm recognition is preserved, and Behind Harmful Compliance paper shows how SFT, RLVR and Abliteration fail in different ways. Add 'Abliteration Is Not a Scalpel' paper to get a balanced view that includes the side effects of this surgery.
On the defense side, go through three strands in order: AMRA paper for 'making extraction harder,' Addition by Subtraction paper for 'removing sparsity,' and AMS paper for 'detecting modification.' Finally, 'Is Abliteration Getting Harder?' paper treats experimental design and variance carefully, which makes it useful for developing judgment about how much to trust the conclusions of attack and defense research.
Related terms
Jailbreak Alignment Interpretability Open weights Post-training Red teaming Guardrails RLVR
References
Foundational papers
- WRDO: Weighted Refusal Direction Optimization in Aligned Language Models (2026)
- Abliteration Mitigation via Refusal Aliases (2026)
- Abliteration Is Not a Scalpel: Off-Target Effects of Refusal Removal on Decision Disposition Across Model Families (2026)
- On the Failure of Topic-Matched Contrast Baselines in Multi-Directional Refusal Abliteration (2026)
- Willing but Unable: Separating Refusal from Capability in Code LLMs via Abliteration (2026)
- The Geometry of Harmful Intent: Training-Free Anomaly Detection via Angular Deviation in LLM Residual Streams (2026)
- Behind Harmful Compliance: Behavioral and Mechanistic Divergence Across LLM Jailbreaks (2026)
- Detecting Safety Training Modification in Language Models via Activation Analysis (2026)
Recent research
- Addition by Subtraction: Toward Mitigating Fragile Safety Alignment in Large Language Models (2026)
- Is Abliteration Getting Harder? Not Uniformly: Refusal Removal by Direction-Based Ablation and ARA in Heretic on the Qwen3.8, Gemma 4, Olmo 3.1 and Mistral Small 3.2 LLMs Versus Their Predecessors (2026)
Written by AI from the listed references and reviewed. Please check the original sources for details.