Heretic LLM vs abliterated: what the two labels mean
Heretic LLM vs abliterated builds: Heretic is a tool that automates abliteration rather than a rival method. How it works, how builds differ, how to read model cards.
Heretic is an open-source tool that automates abliteration; "abliterated" is a label any author can put on a refusal-edited model. By default Heretic runs 100 trials that co-minimize refusals on 100 refused prompts and KL divergence on 100 ordinary ones. Since version 2.0 (November 1, 2026), its default edit is Arbitrary-Rank Ablation. Its author archived the repository on November 28, 2026.
The short answer
Heretic is a tool, and abliteration is the family of techniques it implements. "Abliterated" in a model name tells you that someone removed refusals by editing the weights. "Heretic" tells you which program did the editing, and usually that the model card carries two standard numbers. Both kinds of model are training-free weight edits. The useful comparison is between two specific checkpoints, measured the same way.
| "abliterated" in a model name | "heretic" in a model name | |
|---|---|---|
| What it tells you | Refusals were removed by editing weights; method not specified | Made with Heretic, some version |
| Method | Anything from the 2024 single-direction edit to norm-preserving, multi-direction or per-expert variants | 1.x: directional ablation with tuned per-layer weights. 2.x default: Arbitrary-Rank Ablation |
| Numbers on the card | Varies; many cards publish none | Refusals out of 100 and KL divergence, generated automatically |
| Reproducibility | Varies | Optional reproduce.json manifest since v1.3.0 |
| Training data of answers | None | None |
The labels overlap. Heretic's auto-generated cards tag every upload with heretic, uncensored, decensored and abliterated, as on p-e-w/gemma-3-12b-it-heretic. Featherless's abliterated filter lists Heretic builds next to huihui-ai's (1,407 models, checked 2026-12-02). A "heretic" name also doesn't guarantee a pure Heretic edit. DreamFast's comparison of 23 Gemma 4 E4B builds found that some models named "HERETIC" were a Heretic edit followed by a fine-tune. One of them lost 5.7 points on MMLU-Pro.
Heretic itself is no longer developed by its author. Philipp Emanuel Weidmann archived the GitHub repository on November 28, 2026, and explained why in issue #601, "Farewell". The repository is now read-only. The author named no successor and invited contributors to decide whether and how to continue the project. The last release, v2.1.0 (November 8, 2026), still installs from PyPI as heretic-llm, and the README links a Codeberg mirror (checked 2026-12-02). Existing Heretic builds and the numbers on their cards are unaffected.
How Heretic works
Heretic searches for the edit settings that remove the most refusals while changing the model least. A Heretic run has four parts:
- Prompts. Two sets of contrasting prompts. The current defaults take 400 of each from two Hugging Face datasets by Maxime Labonne: a set of prompts the model refuses, and a set of ordinary Alpaca instructions.
- A modifier. The plugin that edits the weights.
- Scorers. Plugins that score each edited model.
- An optimizer. Optuna's TPE sampler runs 100 trials, the first 30 at random, and co-minimizes the scores.
Everything below comes from Heretic's README, its default config and its source, checked 2026-12-02. The code has not changed since November 19, 2026; only the README changed before the archive.
Heretic 1.x (November 2025 to October 2026) used one method. Its v1.0.1 README describes "a parametrized variant of directional ablation". It computes a refusal direction per layer as the difference of means of first-token residuals on the two prompt sets. Then it orthogonalizes the attention output and MLP down-projection matrices against it. The optimizer tunes five things:
- which direction to use, as a float that interpolates between neighboring layers' directions;
- the peak ablation weight;
- where that peak sits across the layers;
- the minimum weight;
- how fast the weight falls off.
Attention and MLP get separate values. Later 1.x releases added:
- a LoRA-based engine with 4-bit loading (v1.2.0);
- projected and norm-preserving variants from Jim Lai;
- reproducible runs (v1.3.0).
Heretic 2.0 (released November 1, 2026) made the editing method a plugin and changed the default to Arbitrary-Rank Ablation (ARA). The author's pull request says ARA "doesn't use refusal directions at all". It captures each module's inputs and outputs with hooks, then optimizes the matrix directly against three goals:
- Change outputs on answered prompts as little as possible.
- Make outputs on refused prompts look like outputs on answered ones.
- Push outputs on refused prompts away from where they started.
The current config approximates the change with a rank-50 LoRA, preserves row magnitudes, and solves it with L-BFGS. Classic directional ablation remains available as the second modifier. Other configs aim the same machinery at slop, sycophancy or response length instead of refusals.
It is not fine-tuning. Heretic never trains on example answers and needs no dataset beyond the contrast prompts. A full run on Qwen3-4B-Instruct-2507 takes about 30 to 40 minutes on an RTX 3090, per the README.
How other abliterated builds differ
"Abliterated" builds from other authors differ in three ways: the method, the scope of the edit and what they measure. The cards we opened on 2026-11-27 show the range:
| Build | How it was made | What the card reports |
|---|---|---|
| huihui-ai/gemma-3-12b-it-abliterated | remove-refusals-with-transformers; "only the text part was processed, not the image part" | No refusal or drift numbers |
| huihui-ai/Huihui-GLM-5.3-abliterated-GGUF | llama.cpp's control-vector tooling on GGUF, distributed as patches, with optional expert ablation | No refusal or drift numbers |
| mlabonne/gemma-3-12b-it-abliterated-v2 | Orthogonalization with layer weights that "follow a normal distribution" | Target of more than 90% acceptance, judged by keywords plus the Minos-v1 classifier |
| TrevorS/gemma-4-abliteration | Norm-preserving biprojection, plus per-expert edits on the MoE model, built on Heretic | Refusals over 686 prompts from 4 datasets, each flagged refusal audited by hand; KL |
| p-e-w/gemma-3-12b-it-heretic | Heretic v1.0.0 | KL divergence 0.16; 3/100 refusals against 97/100 for the original |
The methods used under the "abliterated" label all start from Arditi et al. (2024). Most still edit the matrices that write to the residual stream. Beyond that they differ in how many directions they remove, which layers and experts they touch, whether they preserve weight norms, and whether they edit the vision tower. Our page on abliteration tools compares 18 implementations.
What the KL and refusal numbers mean
Every Heretic model card shows a two-row "Performance" table: KL divergence and refusals. Both come from Heretic's scorers with its default settings, unless the uploader changed the config.
Refusals ("3/100"). This counts how many of 100 test prompts, taken from the same set of prompts the model refuses, got a response containing a refusal keyword. The keyword list includes "sorry", "i cannot", "as an ai" and "illegal". Heretic generates at most 100 tokens per response and skips a model's thinking block first. A keyword judge can be wrong in both directions:
- A response that complies but uses the word "illegal", such as a contract review that flags a clause, counts as a refusal.
- A soft refusal with none of the keywords counts as compliance.
TrevorS found most of the refusals it flagged were "refusal-then-comply false positives". abliterix's README argues that short generations and keyword-only judges make most abliteration leaderboards unreliable. Its own benchmark uses 100 to 150 tokens and an LLM judge. Heretic 2.x also ships an optional classifier scorer as an alternative to keywords.
KL divergence ("0.16"). This is the KL divergence between the edited and original model's probability distributions for the first generated token, averaged over 100 prompts from the ordinary Alpaca set. The code is kl_divergence.py. Zero means identical. Lower means the edit changed less on ordinary prompts. Heretic's 1.x README showed why it matters: on Gemma 3 12B, three builds reach the same 3/100 refusals at KL 1.04, 0.45 and 0.16.
KL is not a capability benchmark. It looks at one token, on ordinary prompts, so it says nothing direct about long answers, reasoning or knowledge. Apostate's README argues that first-token KL reads near zero on reasoning models whose first token is always <think>. Current Heretic code appends a detected response prefix, such as a closed thinking block, before it measures. Check which Heretic version made a card before you compare it with a newer one.
Comparing cards. Numbers from different authors are comparable only when the prompts, judge, token limit and chat template match. Heretic can score any model against its base with the same scorers. The v1.4.0 README documents this command:
heretic --model google/gemma-3-12b-it --evaluate-model p-e-w/gemma-3-12b-it-heretic
Independent comparisons that re-measure every build the same way are the strongest evidence. DreamFast's Qwen2.5-7B comparison ran three builds through a 400-prompt public refusal benchmark, KL divergence and 8 benchmark tasks. The Heretic 1.3.0 build answered all 400 refusal-benchmark prompts, against 98.8% and 98.2% for the Apostate and huihui-ai builds. In the Gemma 4 E4B comparison, a Heretic build ranked best overall at KL 0.002 with GSM8K up 1.3 points.
How to read a model card before trusting a build
Read the card for these nine things. Treat a missing answer as a reason to measure the build yourself.
- Tool and version. Heretic writes "made using Heretic vX.Y" at the top of the card. A hand-made build should name its tool or method.
- Base model and license. The card should link the exact original checkpoint, whose license still applies.
- Anything done after the edit. Fine-tunes, merges and distillation change the model further. A name like "HERETIC-UNCENSORED-Thinking" can hide one.
- The refusal test. Look for the number of prompts, the dataset, the judge (keywords, a classifier or an LLM), the token limit and how thinking was handled. A refusal rate measured on the prompts used to build the edit flatters the model.
- Drift and capability. KL on ordinary prompts plus at least one benchmark scored against the base model, ideally with an interval.
- Other input paths. Other languages, images and thinking mode, plus over-refusal on safe prompts. Some builds edit only the text part of a multimodal model.
- Provenance. A
reproducefolder with hashes, and an uploader with a track record. ProjectDiscovery's research post "How abliterated models can get you pwned" (October 6, 2026) shows the risk. A Qwen2.5-7B with a small backdoored LoRA behaved normally on clean prompts. On a trigger phrase, it sent a project's.envcredentials to an outside server during an agent run. - Who made the quantization. A GGUF made by a third party is a different file from the one that was measured.
- Your own prompts. Re-run refusal, over-refusal and a few capability checks on the tasks you care about, and compare against the original model.
For an example of fuller reporting, our benchmarks page lists the prompt counts, judge, harness, dates and paired 95% intervals for each test. Those two models are served through an API, and their weights are not released.
Common mistakes in Heretic comparisons
Several pages that rank for this query, all read on 2026-11-27, repeat claims that are wrong or out of date. Each correction below links to the primary source.
- Claim: Heretic retrains or fine-tunes the weights. It doesn't. The README says Heretic "does not perform expensive training". Even ARA only optimizes each matrix against activations captured from the contrast prompts.
- Claim: abliterated models use one direction with one weight per layer. That describes the 2024 recipe. Current tools remove several directions, preserve norms, or edit experts one by one; see the tools comparison.
- Claim: Heretic works by finding a better refusal direction. That was true of Heretic 1.x. Since 2.0, the default method uses no refusal direction.
- Claim: hand-made builds are more reproducible than Heretic runs. Reproducible runs arrived in v1.3.0 on May 5, 2026. Rebuilding from a published
reproduce.jsonarrived in v1.4.0. - Claim: Heretic's documentation compares knowledge scores. Its 1.x README compared KL divergence and refusal counts, and the 2.x README names refusal rate and KL divergence as the default scores. The UGI NatInt figures that circulate, such as 21.33 against a baseline of 18.72 on Gemma 3 12B, come from Jim Lai's norm-preserving abliteration post.
Whichever label a model carries, the edit removes refusals and does not remove the law or the terms of wherever it runs. For the technique itself, see what is abliteration.
Frequently asked questions
Is Heretic better than abliteration?
The question compares a tool with the technique it implements. Compare specific checkpoints instead: on Gemma 3 12B, Heretic's 1.x README reported KL divergence 0.16 for its build against 0.45 and 1.04 for two hand-tuned abliterated builds, all at 3 refusals out of 100.
Is Heretic still maintained?
Not by its author, who archived the GitHub repository, p-e-w/heretic, on 2026-11-28 and announced it in issue #601. The repository is read-only: no new issues, pull requests or commits. heretic-llm 2.1.0 (2026-11-08) still installs from PyPI, and the refusal and KL divergence numbers on existing Heretic model cards mean the same as before.
Does Heretic fine-tune or retrain the model?
No. Heretic is training-free. It edits weight matrices using activations from contrasting refused and answered prompts and searches the edit's settings with Optuna. It never trains on example answers.
What does KL divergence 0.16 on a Heretic model card mean?
It is the average KL divergence between the edited and original model's probability distributions for the first generated token, over 100 ordinary prompts. Zero means identical. It measures drift on ordinary prompts, not capability, so check benchmarks as well.
Are Heretic models abliterated models?
Yes, in common usage. Heretic tags its uploads both heretic and abliterated. Builds from Heretic 1.x use directional ablation; builds from 2.x default to Arbitrary-Rank Ablation, which Heretic's author describes as a new abliteration method that uses no refusal direction.
Can I reproduce a Heretic model from its card?
If the uploader included reproducibility information, the repository has a reproduce folder with a reproduce.json manifest, and Heretic 1.4.0 or later can rebuild the model from it. Byte-identical weights need an identical hardware and software environment.