What is abliteration, and can an open model be made tamper-resistant?

12 min read

What is abliteration, and can an open model be made tamper-resistant?

Abliteration removes a language model's ability to refuse. Researchers found that refusal runs through a single direction in the model's internal activations. Abliteration finds that direction and edits the weights so the model can no longer use it. It works only on open-weight models. And no defence yet makes a public model tamper-proof.

The compass with north removed

Picture a compass with north removed. The needle can still point east, south, and west. It just lost one direction.

A language model has something like a compass inside it. Its internal activations are vectors pointing in many directions. An activation is a list of numbers the model computes as it processes text. A vector is a list of numbers with a direction and a length. Researchers found that one of those directions carries refusal. When the model is about to refuse, its activations point along that direction. Abliteration removes that direction, the way you would remove north from the compass. The model keeps working. It just cannot refuse any more.

This article explains what abliteration is and what can defend against it. It does not explain how to abliterate a model step by step.

What abliteration is

Abliteration is a weight edit. It takes an open-weight chat model and changes its weights so the model loses the ability to refuse requests. The name blends ablate and obliterate. It was coined in 2024 by an independent developer who publishes as FailSpy.

The method rests on a research finding. In June 2024, Andy Arditi and colleagues published Refusal in Language Models Is Mediated by a Single Direction. It was later accepted at NeurIPS 2024. They tested 13 open chat models from five families, up to 72 billion parameters. In each model they found a single direction in the residual stream that controls refusal. The residual stream is the main channel of numbers that flows through a transformer, with each layer adding to it.

The finding has two halves. Erasing the direction stops the model refusing harmful instructions. Adding the direction makes the model refuse harmless ones. That second half proves the direction is real. It is a control test. If the direction were a coincidence, adding it would do nothing.

A later paper refined the picture. Wollschläger and colleagues, in The Geometry of Refusal in Large Language Models, ICML 2025, showed the direction is better described as a narrow cone of directions. A cone here means a bundle of nearby directions, not one single line. The practical point stands.

Abliteration turns that finding into a permanent edit. The direction is found by comparing the model's activations on prompts it refuses with prompts it answers. The paper used 128 of each. The difference between the two averages is the candidate refusal direction. Then every matrix that writes to the residual stream is orthogonalised against that direction. Orthogonalised means adjusted so nothing it writes has any component along that direction. The embedding, each attention output, and each MLP output are all edited this way. An MLP is a small feed-forward network inside each transformer layer. The embedding is the layer that turns tokens into vectors.

The edit needs no retraining and no new data. General capabilities stay nearly intact. On MMLU, ARC, and GSM8K, the edited models stayed within the 99 percent confidence interval of the original scores, with two exceptions, Qwen 7B and Yi 34B. MMLU tests broad knowledge. ARC tests reasoning. GSM8K tests maths. TruthfulQA scores dropped for all edited models. TruthfulQA tests whether the model repeats common falsehoods.

The maths, demonstrated

The core operation is one line of maths. For a unit direction r, ablation replaces an activation x with x minus the projection of x onto r. A unit direction is a vector with length 1. A projection is the part of one vector that lies along another. Here is that operation in numpy, on made-up vectors. No model is involved.

python
import numpy as np

rng = np.random.default_rng(7)
x = rng.normal(size=8)          # a made-up activation vector
r = rng.normal(size=8)
r = r / np.linalg.norm(r)       # a made-up unit direction

x_ablated = x - (r @ x) * r     # remove the component along r
print("component along r before:", round(float(r @ x), 4))
print("component along r after:", round(float(r @ x_ablated), 10))
print("|x| before:", round(float(np.linalg.norm(x)), 4),
      "|x| after:", round(float(np.linalg.norm(x_ablated)), 4))

Running it prints:

component along r before: 0.7602
component along r after: -0.0
|x| before: 1.9868 |x| after: 1.8356

The component along r goes from 0.7602 to zero. The rest of the vector survives. Its length drops from 1.9868 to 1.8356, because only the part along r was removed.

Two properties follow from the same formula. A vector with no component along r is left unchanged, because its projection onto r is zero. And applying the same orthogonalisation to a whole weight matrix means nothing that matrix writes can point along r any more, which is what makes the edit permanent.

That is the whole mechanism, and the whole problem. The operation is simple, fast, and general.

Why open weights change the safety question

A closed model served through an API keeps its weights on the provider's servers. You can ask it things. You cannot edit it. An open-weight model ships the weights to anyone who downloads them. So anyone can edit them, including edits that remove safety behaviour.

That raises two questions, and the papers in the next section try to answer them. Can a public model be made tamper-resistant at all? And if not, can defence at least raise the attacker's cost?

Three facts frame the rest of this article. First, abliteration needs the weights. It does not work on a model you can only reach through an API. Second, it needs no training data and no GPU farm. One pass over the weights is enough, with no training run. Third, the edited model keeps nearly all of its general ability.

Defences, at full length

There is no defence that makes a public model tamper-proof. What exists is a set of defences that raise the cost, slow the attacker, and shrink the damage.

Tamper-resistant training. The most direct answer is to train safety in so deeply that fine-tuning cannot remove it. Tamirisa and colleagues, in Tamper-Resistant Safeguards for Open-Weight LLMs, ICLR 2025, propose a method called TAR. During training, the method simulates an attacker fine-tuning the model toward harmful behaviour, then penalises the model for letting that attack work. The paper's first version reported resistance up to 5,000 fine-tuning steps while preserving benign capabilities. Treat that number with care. The current version of the paper says "hundreds of steps" instead. And a re-evaluation published in December 2024 found that small changes to the attack, such as a different warmup length or learning rate schedule, defeated the defence. TAR is an honest attempt, and its headline number did not hold up as stated.

Removing the knowledge instead of the refusal. What if the model never learns the dangerous knowledge in the first place? A paper presented at ICLR 2026 tries that idea. It is called Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs. Its authors are Kyle O'Brien, Stephen Casper, and colleagues. It filters text about dual-use biology topics out of the pretraining data. Dual-use means knowledge that has both legitimate and harmful uses, here biothreat proxy knowledge. The authors trained several 6.9 billion parameter models from scratch with filtered data. The filtered models resisted adversarial fine-tuning for up to 10,000 steps and 300 million tokens of harmful text. They beat post-training baselines by more than an order of magnitude, with no observed damage to unrelated capabilities. But the paper reports a hard limit. The filtered models still use harmful information when it is handed to them in context, for example through search results. Filtering the training data does not stop the model from reading the same facts at run time.

Circuit breakers. A third defence works on the representations directly. Zou and colleagues published it in Improving Alignment and Robustness with Circuit Breakers, NeurIPS 2024. They train the model so that when its internal activations start heading toward a harmful output, they are rerouted to an incoherent target. The model cannot complete the harmful answer because its own internal state has been interrupted. The technique is called representation rerouting. It targets the internal signature of harmful intent rather than any specific attack, so it generalises to attacks the designers never saw. The paper reports large drops in attack success rates on a Llama-3-8B model with almost no capability loss. Circuit breakers do not stop someone with the weights from removing them, but they make the removal harder.

Spreading safety across many directions. If refusal lives in one direction, one edit removes it. If safety is spread across many directions, the attacker needs many edits, and each one risks breaking the model. This is the idea behind the cone finding above: a defence that works when refusal is one direction may fail when it is many.

Raising the attacker's cost in other ways. Not every defence lives in the weights. Publishers can release weights under licences that forbid removing safety features. They can watermark their releases so an abliterated copy can be traced. They can publish hashes of the official weights so anyone can check a downloaded copy. A hash is a short fingerprint computed from a file. If the file changes, the fingerprint changes. None of these stops a determined attacker. All of them raise the cost.

Detection after release. Once a model is public, the defence shifts to watching what happens: abuse reports, evaluations of popular community models, and checks for backdoors. The defence is verification. Check the hash against the publisher's official release, and treat an anonymous re-upload the way you would treat an unsigned binary from a stranger.

The honest answer

Can an open model be made tamper-resistant? Probably not perfectly. Once the weights are public, the attacker has the same material the defender has, unlimited time, and no need to preserve the safety behaviour. Every defence above has been measured against bounded attacks: hundreds of steps, 10,000 steps, 300 million tokens.

But perfect is the wrong bar. Safety training still achieves something real. It makes the default behaviour safe. Most users run the model as released. The fraction who will abliterate a model, or download an abliterated one, is small. Tamper-resistant training, data filtering, and circuit breakers push that fraction smaller and make the attack more expensive.

The compass analogy helps here too. The defences above are attempts to build a compass where north is not a single removable part but something woven into the whole instrument. Nobody has built that compass yet.

What this means if you deploy an open model

If you ship an open-weight model, here is a short checklist. Check the hash of the weights you deploy against the publisher's official release. Do not deploy a copy you cannot verify. Add your own safety layer outside the model: a filter on inputs and outputs, a classifier on the results, and a human review path for edge cases. The model's refusal is one layer. It should never be the only layer. Log what the model is asked and what it answers, within your privacy policy. Choose a base model whose safety has been tested against tampering, not just against jailbreak prompts. A jailbreak prompt is a crafted input that tries to talk the model past its refusals.

Try this

Pick one open-weight model you use. Find the publisher's official page and check three things: whether they publish a hash of the weights, whether they report any tamper-resistance evaluation, and what licence the weights carry.

FAQs

Does abliteration work on closed models like the ones behind chat APIs?

No. It needs the weights. A model behind an API cannot be abliterated by its users.

Does abliteration damage the model's other abilities?

Barely. On MMLU, ARC, and GSM8K, edited models stayed within the 99 percent confidence interval of the original scores, with two exceptions. TruthfulQA scores dropped for all edited models.

Is an abliterated model illegal?

That depends on where you are and what you do with it. Editing weights you legally downloaded is one thing. Using the result to cause harm is another.

Can safety training be made tamper-proof?

No method published so far claims that. TAR's first version reported resistance up to 5,000 fine-tuning steps, but the current version says hundreds, and a later re-evaluation challenged even that. Data filtering resists up to 10,000 steps and 300 million tokens.

What should I do if I download a model and suspect it was abliterated?

Check its hash against the publisher's official release. If it does not match, or no hash exists, treat it as unverified.

Sources

  • Arditi and colleagues. Refusal in Language Models Is Mediated by a Single Direction. https://arxiv.org/abs/2406.11717, June 2024. NeurIPS 2024. Checked 14 November 2026, re-checked 21 November 2026.
  • Wollschläger and colleagues. The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independence. https://arxiv.org/abs/2502.17420, February 2025. ICML 2025. Checked 21 November 2026.
  • Tamirisa and colleagues. Tamper-Resistant Safeguards for Open-Weight LLMs. https://arxiv.org/abs/2408.00761, August 2024. ICLR 2025. Checked 14 November 2026, re-checked 21 November 2026.
  • O'Brien, Kyle, Casper, Stephen, and colleagues. Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs. https://arxiv.org/abs/2508.06601, August 2025. ICLR 2026. Checked 21 November 2026.
  • Zou and colleagues. Improving Alignment and Robustness with Circuit Breakers. https://arxiv.org/abs/2406.04313, June 2024. NeurIPS 2024. Checked 14 November 2026, re-checked 21 November 2026.
  • Labonne, Maxime. Uncensor any LLM with abliteration. Hugging Face blog, June 2024. Checked 14 November 2026.