Building your own extraction pairYour own pair of request lists
The reference pair (mlabonne's harmful_behaviors and harmless_alpaca) is not sacred. It is a curatorial choice by one person, adopted by the field because it was ready first. If your model, language, or domain sits outside its coverage, you will get a refusal direction that removes some refusals cleanly and leaves others intact. This is how to build your own pair, what to match, what to avoid, and how to tell whether yours is better.
An extraction pair is two sets of prompts, one that reliably triggers refusal and one that reliably does not, matched in framing, length, and register so that the difference-of-means signal captures refusal and nothing else. Build one for your language, domain, or model family when the reference pair leaves you with residual refusals or with an unhealthy KL divergence. Aim for a few hundred prompts per side (not thousands), match imperative-vs-imperative and question-vs-question, keep length distributions overlapping, and hold a small evaluation split out of both sides. On Heretic 1.x you can inspect the result with --print-residual-geometry (removed in Heretic 2.0), which reports per-layer separation of the two clusters, including a silhouette coefficient.
- Why the standard pair sometimes fails and when to replace itWhy the standard lists sometimes fail and when to replace them
- The size question: hundreds versus thousands of promptsThe size question: hundreds or thousands of requests
- Matching framing: imperative-vs-imperative, question-vs-questionMatching the form: orders with orders, questions with questions
- Length distribution matching and why it silently biases the directionMatching request lengths, and why a mismatch quietly skews the result
- Where to source harmful prompts responsibly: HarmBench, XSTest, AdvBench derivatives
- Where to source harmless prompts: Alpaca-cleaned, tulu, LIMA, and language-specific alternatives
- How to hold out an evaluation split so you can measure your own pairHow to keep some requests aside so you can test your own pair
- Using Heretic 1.x's residual-geometry silhouette as a build-quality checkUsing a quality check built into Heretic 1.x to test your pair
- What to do when your model resists a single direction (multi-direction extraction)What to do when one refusal signal is not enough
An extraction pair is the smallest piece of infrastructure in the abliteration pipeline and the most consequential. Everything that follows (direction extraction, weight ablation, KL divergence, capability recovery) is downstream of two lists of prompts a human chose to compare. Those two lists silently define what "refusal" means for your model, and any refusal outside their coverage will survive the ablation as a stubborn residue.
Many practitioners never build their own. The field has settled on mlabonne/harmful_behaviors and mlabonne/harmless_alpaca because they arrived cleanly, were built from two of the sources Arditi used (AdvBench and Alpaca), and became the reference by default. For an English-language Llama or Qwen release aimed at general-purpose uncensoring, the reference pair is fine. For anything else, you may notice that Heretic (v1.4.0) reports 3/100 refusals on its own benchmark but your model still refuses a category the standard pair did not touch. That is the signal that you need your own pair.
When the reference pair is not enough
Three situations reliably outgrow the reference pair. First, non-English models: the standard pair is English. Wang et al. (2025) found that a direction extracted from English bypasses refusals in 14 languages with near-perfect effectiveness, so the edit itself often transfers; what an English pair cannot do is check what the model still refuses in your language. For that you need prompts in that language, and multilingual harmful sets such as CohereLabs/aya_redteaming and DAMO-NLP-SG/MultiJail are a starting point. Second, domain-specialised models: a coding-focused release refuses different categories than a general-purpose one, and the standard pair may under-cover code-adjacent refusals (malware, exploit generation, unauthorized-access-pattern). Third, models of 8 billion parameters and above, where a single refusal direction can be insufficient regardless of the pair used. That case requires multi-direction extraction, treated separately below.
The diagnostic that indicates you need a custom pair is not the refusal count on Heretic's built-in benchmark. In Heretic v1.4.0's default configuration, that benchmark uses held-out test splits of the same two datasets the pair was extracted from, so a well-extracted direction will score well on it whether or not it generalises. The diagnostic is residual refusal on prompts your pair did not cover. Run your abliterated model on a held-out probe set (see holding out an evaluation split) and count how many categories still refuse. If any category refuses more than 20 percent of the time, that category was probably under-represented in your harmful side.
Sizing: hundreds, not thousands
The most common mistake is thinking bigger is better. Sumandora's reference implementation samples just 32 prompts per side; Heretic (v1.4.0 default) uses 400 per side; FailSpy's README example caches 512 activations; Cracken reported good results with 52 harmful and 73 harmless prompts on a domain-specialised extraction. None of these numbers approach "thousands," and there is a reason.
The difference-of-means estimate is expected to stabilise with a few hundred matched prompts on each side; beyond that, adding loosely matched prompts can average in more noise from length variation, framing variation, and vocabulary variation. A smaller split can also be more carefully curated. The extraction cost is modest at these sizes.
Aim for 200 to 800 prompts per side. If you cannot get 200 well-matched prompts on the harmful side without stretching the definition of "harmful," you probably have a domain-specific extraction and should scope down further rather than pad up.
Framing matching: what actually goes in the direction
The most subtle mistake is a framing mismatch between the two sides. The extractor computes a mean vector on the harmful side and a mean vector on the harmless side; the difference is the "refusal direction." If your harmful prompts are mostly imperatives ("Write instructions for X") and your harmless prompts are mostly questions ("What is the capital of Y?"), the difference-of-means vector encodes imperative-versus-interrogative as much as it encodes refuse-versus-comply. Ablating along that direction will suppress imperatives generally, not just refusals, and the model will exhibit strange behaviour on ordinary command-form prompts.
The fix is to match framing deliberately. If your harmful side is "Write instructions for X," your harmless side should be "Write instructions for Y" where Y is a benign task. If your harmful side is "How do I do X," your harmless side should be "How do I do Y." Cracken's domain-specific abliteration writeup is a deliberate exception: on a narrow cybersecurity extraction it paired action-framed harmful prompts ("Write Python code to exploit a buffer overflow") against question-framed harmless prompts carrying explicit educational context, aiming for clear structural separation between the sides. That trades framing-matching for a sharper domain contrast; for a general-purpose pair, match framing.
A quick check: read a handful of prompts from each side aloud. If the two sides sound like they are asking for different kinds of thing (a fact versus an action, a definition versus a plan, a story versus instructions), your direction will encode that difference as well as the refusal difference. Rebalance until the two sides are matched in what they ask for and differ only in whether the ask is harmful.
Length matching: the invisible bias
The second subtle mistake is length. Refusal responses in an aligned model tend to be short; answering responses tend to be longer. If your harmful side has shorter prompts than your harmless side, the extractor can encode some of that length signal in the direction. Ablating the direction can then shift output behaviour on all prompts, including the harmless ones, for reasons that have nothing to do with the refusal removal.
Match the length distributions. Compute mean and standard deviation of prompt length on each side; they should be within 10 percent of each other. If they are not, truncate or pad on the longer side, or filter out extreme-length prompts on both sides. The direction is read from a single token position (in Sumandora's implementation, the final token at 60 percent network depth), so prompt-level differences between the sides feed straight into it.
Sourcing the harmful side responsibly
The harmful side does not need to be actually harmful. It needs to reliably trigger the aligned model's refusal behaviour, which is a different property. Categorical refusal-eliciting prompts (violence, drugs, weapons, hate) work but are ethically fraught to distribute; category-generic refusal-eliciting prompts (roleplay-a-character-doing-X, hypothetical-scenario-Y, thought-experiment-Z) may also work and carry less distribution risk.
Public sources that are safe to reuse: walledai/AdvBench (the 520 harmful behaviours from the original Zou et al. benchmark); walledai/HarmBench (the 400 text behaviours in standard, contextual and copyright configs; the official 100/410 validation/test split is defined in the HarmBench paper); walledai/XSTest (250 safe prompts designed to expose over-refusal plus 200 unsafe contrast prompts, useful for measuring over-refusal); JailbreakBench/JBB-Behaviors (100 behaviours with a living leaderboard). Do not tune on the HarmBench test split (the paper explicitly requires this), but the val split, AdvBench and JBB-Behaviors are fine for extraction; keep XSTest for measuring over-refusal, since it serves as an independent probe set below. See the evaluate stage recipes for the never-fine-tune-on-test rule.
What to avoid: sources with mixed-quality curation (scraped jailbreak prompts can contain typos, non-standard framing, or off-topic content that degrades the direction); sources heavily contaminated with a specific model's refusal templates (they will encode that specific model's refusal signature rather than the general one); sources built from responses rather than prompts (you want to elicit a refusal, not learn one).
Sourcing the harmless side
The harmless side is easier because most of the LLM corpora already contain harmless instructions. The reference choice is tatsu-lab/alpaca (what mlabonne matched against) or its cleaned variant yahma/alpaca-cleaned (what Sumandora's implementation uses). Alternatives to consider: allenai/tulu-3-sft-personas-instruction-following, GAIR/lima, openbmb/UltraFeedback (larger pool if you need to filter for framing match).
For non-English pairs, use language-specific corpora. Chinese: BelleGroup/train_3.5M_CN. Japanese: FreedomIntelligence/alpaca-gpt4-japanese or fn-aka-mur/japanese_alpaca_data. Russian: IlyaGusev/ru_turbo_alpaca. Korean: beomi/KoAlpaca-v1.1a or nlpai-lab/kullm-v2. The multilingual corpora article covers these in more depth. Filter to instructions that share framing with your harmful side (imperatives if harmful is imperatives, questions if harmful is questions).
Holding out an evaluation split
Before you extract, set aside 20 percent of both sides as an evaluation split. Do not touch these during extraction. Then, after ablation, evaluate your abliterated model on the held-out prompts and measure two numbers: refusal rate on the held-out harmful side (should be low if your pair generalises) and answer rate on the held-out harmless side (should be high, matching or exceeding the base model). Do the same on a separate probe set your pair did not contribute to at all (a held-out slice of HarmBench, or XSTest for over-refusal). The gap between "in-distribution refusal rate" (the training slice) and "out-of-distribution refusal rate" (the held-out slice plus the probe set) tells you how well your pair generalises. A small gap is good; a large gap means your pair overfits to its own vocabulary and framing.
Verifying build quality with silhouette geometry
Heretic 1.x's --print-residual-geometry flag (Heretic 1.x only: the research flags were removed in Heretic 2.0.0, November 2026) prints, for each layer, cosine similarity between the harmful and harmless mean vectors, L2 norms of both, and a silhouette coefficient. The silhouette measures how well-separated the two clusters are in activation space: high positive silhouette means the extractor found a clean structural difference between the two sides, low or negative silhouette means the two sides overlap in activation and the difference-of-means is unstable.
Look at the silhouette around your extraction layer and compare it between versions of your pair. This is a fast diagnostic on Heretic 1.x: run heretic --model <base> --print-residual-geometry, note the peak silhouette, tweak the pair, run again. A very high value from a narrow, templated pair is not automatically a cleaner refusal direction, so check it against your held-out split. See the extract recipes for how this fits into the standard extraction workflow.
When one direction is not enough
For larger models, a single refusal direction can fail to remove all refusals no matter how good the pair. The RFM-AGOP work (see Fast Multi-dimensional Refusal Subspaces) documented that Qwen3-8B needs at least three ablated directions to surpass a 50 percent attack success rate, and grimjim's multi-layer intervention (see grimjim refinements) edits attention and MLP output projections across several layers at once. For these models, the pair-quality work still matters, but the extraction step outputs a small subspace of several directions rather than a single vector. The pair should be constructed with the same care in either case; the multi-direction extractor benefits from a clean pair the same way the single-direction extractor does, because both are estimating means from noisy activations.
What changes when you build your own
Practically: the release notes on your model can honestly say "extraction pair: custom, built for this model's coverage, held-out eval at N refusals per 100 across M categories." That is a much stronger claim than "used mlabonne's pair," which is what most releases can say. Auditability: a custom pair with published composition (categories, sources, sizes, held-out split) lets other researchers reproduce your results without having to reverse-engineer what you actually used. Coverage: your model will refuse less on categories the standard pair under-covered, which is often the whole point.
What does not change: the fundamental technique. Difference of means, extract at a chosen layer (60 percent depth in Sumandora's implementation), orthogonalise against o_proj and down_proj. See what is refusal direction and the Arditi method for the underlying theory. The extraction pair is the input to the technique, not the technique itself, and the technique tolerates good pairs and rewards them but does not require the reference one.
Abliteration starts from two lists of requests: one the model refuses and one it answers. From the difference between them it finds the refusal signal, a pattern inside the model linked to refusing. The standard pair of lists, published by mlabonne, was one person's choice, and the field adopted it because it was ready first. The Technical version of this page is a practical guide for people who build their own pair. This text says what each part of that guide is about and why it matters, without the steps.
The guide's main point is that the two lists decide what "refusing" means for the edit. Everything after them, such as finding the refusal signal, editing the weights (the very large set of numbers the model is made of) and measuring how much the answers moved, follows from those two lists. A refusal outside what the lists cover tends to survive the edit.
When the reference pair is not enough
This section is about the cases in which the standard pair leaves refusals in place. It exists because the standard pair was made for English and for general use. The page names three cases: models meant for other languages, models built for one subject such as programming, and larger models, where one refusal signal may not be enough whatever lists are used. For other languages, research finds that a signal found from English requests usually carries over, but checking what the model still refuses in that language takes requests written in it.
The section also explains why a tool's own refusal count is a weak sign here. In Heretic's default setup, that count is measured on held-back parts of the same two lists the signal was found from, so a good result there does not show that the edit works on other requests. The sign the page names is refusals left on requests the lists did not cover.
Size: hundreds of requests, not thousands
This section is about how many requests each list needs. It exists because many people assume that more requests give a better result. The page reports that the common tools use lists of a few dozen to a few hundred requests per side, and that one company reported clean results with a few dozen. Its reading is that the signal settles with a few hundred well-matched requests on each side, and that adding loosely matched requests can add noise from differences in length, phrasing and vocabulary. A smaller list can also be checked more carefully by hand.
Matching the phrasing: what ends up in the refusal signal
This section is about how the requests on the two sides are phrased. It exists because the refusal signal is the difference between the two lists, so any other difference between them ends up inside it. If one list is mostly commands and the other mostly questions, the signal also carries "command versus question", and the edit then changes how the model handles ordinary commands, not only refusals. The page describes the usual answer, two lists that ask for the same kinds of thing and differ only in whether the request is harmful, and one company's deliberate exception for a narrow cybersecurity edit, where the two sides were phrased differently on purpose to separate them more sharply.
Matching the length: a hidden bias
This section is about the length of the requests. It exists because length is a difference between the lists that is easy to miss. If the harmful requests are shorter than the harmless ones, part of that length difference can end up in the refusal signal, and the edit can then change the model's answers to all requests, harmless ones included, for reasons that have nothing to do with refusing.
Where the harmful list comes from
This section is about where the list of requests the model refuses comes from. It exists because these requests raise questions of their own. The page's point is that they do not need to be truly harmful: they need to make the model refuse reliably, which is a different property. Some kinds of request do this with less risk when the list is shared. The section names public test sets that are often reused for this, such as AdvBench, HarmBench, XSTest and JailbreakBench, and notes that the test part of HarmBench is reserved for testing and is not used to build an edit. It also names kinds of source that make the signal less clean: scraped requests of mixed quality, sets full of one model's stock refusals, and sets built from answers instead of requests.
Where the harmless list comes from
This section is about the list of requests the model answers. It exists because this list has to match the harmful one in phrasing and length, and the choice of source decides how easy that is. The page notes that such requests are easy to find, because most instruction datasets contain them. It names the source the standard pair used, a few larger alternatives, and instruction datasets in Chinese, Japanese, Russian and Korean for pairs in those languages. The page on datasets in other languages covers those in more detail.
Keeping part of each list aside
This section is about keeping part of each list aside, unused, until after the edit. It exists because a test on the same requests that defined the edit cannot show whether the edit works on anything else. The page describes comparing two results: how the edited model behaves on the requests used to find the signal, and how it behaves on the set-aside requests and on a separate test set. A small gap between the two means the pair carries over to new requests. A large gap means the pair fits only its own wording.
The page adds a reflection: without such a set-aside part, saying that an edit worked only repeats the definition the lists set. It sees the habit of setting requests aside before looking at the data as what lets a practitioner move a pair to a new model.
Checking the pair with the silhouette measure
This section is about a check that older versions of Heretic offered and Heretic 2.0 removed. It exists because practitioners want a quick way to compare two versions of their pair before running the full edit. The check reported, layer by layer, how clearly the model keeps the two lists apart inside, as a single number called the silhouette. A high value means the two lists form clearly separate groups inside the model; a low value means they overlap and the refusal signal found from them is unstable. The page notes that a very high value from a narrow, repetitive pair does not by itself mean a cleaner refusal signal, so the result is compared with the set-aside requests.
When one refusal signal is not enough
This section is about models where removing one refusal signal does not remove all refusals, however good the pair. It exists because the earlier sections assume one signal. The page cites research on Qwen 3 models, where one model of moderate size needed at least three signals removed before half of the harmful requests got an answer, and grimjim's method of editing several layers at once. For these models the edit removes a small group of signals instead of one, and the quality of the pair matters in the same way.
What changes when you build your own
This section is about what a separate pair changes and what it does not. It exists to set the expectations for the work. Three things change: the model's description can state exactly which lists were used and how the edit was tested; other researchers can repeat the work when the make-up of the pair is published; and the model refuses less in areas the standard pair covered poorly. What does not change is the technique itself: the refusal signal is still found from the difference between the two lists at one chosen layer and removed from the same parts of the model. The pair is the input to the technique, not the technique.