Skip to content

Search wahloon.net

Search models, news, guides and FAQs.

All guides
Guides#comparison#heretic#abliteration#guide#kl-divergence

Heretic vs abliteration: which edit did your model get?

Plain abliteration removes one direction at a fixed strength. Heretic searches per layer for the strength that cuts refusals with the least damage. Here is what that changes.

4 min readMarkdown
On this page

Both methods remove a refusal direction from a model's weights. The difference is how much they search.

Plain abliteration picks a direction, applies it at a strength you choose, and stops. Heretic runs a search: layer by layer, it tries directions and strengths, scores each combination by how much it reduces refusals and how far it moves the model from the base, and keeps the best.

That sounds like a strict improvement. It often is, and it is not free.

Plain abliteration

The recipe is short:

  1. Collect activations on prompts the model refuses and prompts it complies with.
  2. Take the mean difference as the refusal direction.
  3. Project that direction out of the weights that write to the residual stream.
  4. Pick a strength by hand, usually by trying a few values and looking at outputs.

The result depends heavily on step 4. Too weak and refusals survive. Too strong and the model loses coherence, repeats, or stops following instructions. A careful publisher publishes the strength. A rushed one picks a number that looked fine on a handful of prompts.

Heretic

Heretic automates the search. It estimates directions per layer rather than one global direction, tries a range of strengths, and scores each candidate against two objectives: fewer refusals, and lower KL against the base model on harmless text.

The output is a per-layer configuration. That is why Heretic builds often advertise a lower KL than a hand-tuned edit at similar refusal rates: the search is allowed to leave most layers alone and only edit the ones that matter.

The cost is complexity. A Heretic run is slower, the configuration is harder to audit, and the quality of the result still depends on the prompt set used to score refusals. If that set is narrow, the search optimizes for a narrow kind of refusal.

What KL actually tells you

KL divergence compares the edited model's next-token distribution with the base model's, usually on harmless prompts. Lower means the model behaves more like the base.

It is a useful signal and a limited one:

  • It is measured on a prompt set. A model can have low KL on Wikipedia text and still behave differently on code or roleplay.
  • It is sensitive to runtime and precision. A KL from one harness is not directly comparable to a KL from another.
  • It says nothing about refusal. A model can have low KL and still refuse everything, or high KL and comply with everything.

Read KL as "how far did this move", not "how good is this". The benchmark method treats it that way.

Telling which one you got

Model cards usually say. When they do not, the clues are:

  • A named tool. "Made with Heretic" or a link to the Heretic repository.
  • A per-layer table or config. Heretic runs often publish one; plain edits usually publish a single strength.
  • A KL number. More common on Heretic cards, because the tool reports it.
  • The naming. "Heretic" in the model name is a strong hint, though not a guarantee.

A card that says only "abliterated" with no strength and no layers is not telling you which method was used, or how carefully.

Which is better?

For a given base, a well-run Heretic search usually beats a careless hand edit. It is not automatically better than a careful hand edit, and it is not a different kind of thing: both remove a direction, and both can be done well or badly.

The practical advice:

  • Prefer a build whose card names the method, the layers and the strength, whichever method it used.
  • Prefer a build with a measured refusal rate and a capability comparison, not just a KL.
  • If you are making the edit yourself, start with plain abliteration to understand the mechanics, then try Heretic if you want the search.
  • If you are choosing between two builds, run the evaluation harness on both. The label will not settle it.

The one-line version

Abliteration is one direction at a chosen strength. Heretic searches for the direction and strength per layer. Neither guarantees a good build; the card and the measurements do.

The glossary defines Heretic, Heretic-ARA, refusal direction and KL divergence. The DIY guide covers the mechanics of the plain version.

5 minGuide

How we benchmark abliterated models

Four axes, one runtime, published prompts, and a 24 GB laptop. The full method behind the benchmark table, including what it cannot tell you.

#benchmark#evaluation#methodology
Read
6 minGuide

How to evaluate an abliterated model before you trust it

A model card's refusal number is a claim about a prompt set, not a property of the model. Here is a small harness you can run in an hour: refusal rate, capability, coherence and drift.

#evaluation#abliteration#methodology
Read