ExtractFinding·Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corporaSets of harmful and harmless requests, pairs of opposite examples, and attack datasets
The contrastive material at the start of every abliteration pipeline: harmful and harmless instruction sets (harmful_behaviors, harmless_alpaca, AdvBench, HH-RLHF), contrastive-activation and steering-vector pairs, and jailbreak, red-team and adversarial-suffix corpora (GCG, AutoDAN, PAIR, WildJailbreak). A dataset about jailbreaking or red-teaming that no more specific stage claims is filed here too. Difference-of-means over harmful and harmless sets produces the direction that later gets orthogonalized out of the model weights; a few hundred prompts per side is the community standard.The starting material of the work. Sets of harmful and harmless instructions (harmful_behaviors, harmless_alpaca, AdvBench, HH-RLHF), pairs of opposite examples, and collections of requests written to trick a model into answering (GCG, AutoDAN, PAIR, WildJailbreak). A dataset about such requests, or about attacking models on purpose to test them, that fits no more specific step is filed here too. Comparing the model's reaction to the harmful and the harmless set shows the refusal signal, a pattern inside the model linked to refusing. That signal is later removed from the weights, the very large set of numbers the model is made of. A few hundred requests on each side is the usual size.
1,713
Datasets tracked
11.8M
Lifetime downloads
10.7k
Total likes
1,077
Publishers
158
New on Hugging Face in the last 30 days
207
Kept: left the filter or Hugging Face (131 gone from HF)Kept on record (131 removed from Hugging Face)
Where this fits in the pipelineWhere this step fits in the work
A few hundred prompts per side. Extract at the final token position at roughly 60% network depth. Direction is harmful_mean minus harmless_mean, then normalised. Ablate o_proj and down_proj.
Time
Minutes to tens of minutes on a single GPU, depending on sample count and model size.
Expected
One normalised direction vector per layer, ready to orthogonalise out of the projection matrices.One refusal signal, a pattern inside the model linked to refusing, for each layer, ready to be removed.
Failures
Length or format mismatch between harmful and harmless sets biases the direction toward surface features. Custom-arch models fail with model.model.layers when they need model.transformer.h. Too few samples produces an unstable direction.When harmful and harmless requests differ in length or layout, the signal picks up that difference instead of refusing. Models with an unusual layout can fail: the script looks for their layers under the wrong name. Too few requests give an unstable signal.
Custom preprocessing plus any transformers-based extractor
ParamsSetup
Keep counts modest and balanced. Cracken used 52 harmful / 73 harmless prompts for a domain sweep; the abliterix stack reportedly uses 800 / 800. Match framing deliberately: action-framed harmful versus question-framed harmless with explicit educational context.
Time
Corpus curation is manual, direction extraction stays negligible.
Expected
Cleaner structural separation between harmful and harmless clusters, visible as a higher silhouette coefficient in Heretic --print-residual-geometry.Inside the model, the harmful and the harmless requests form groups that sit further apart. A measure in the Heretic tool shows this as a higher score.
Failures
Unmatched framing makes the direction encode imperative-vs-interrogative rather than refuse-vs-comply. Over-specific corpora remove refusal only in their domain.Orders on the harmful side and questions on the harmless side teach the wording, not refusing versus answering. A set on one subject removes refusals only on that subject.
Dataset auditing (refusal-phrase matching, GPT-4-class classifier on a 500-sample subset)
ParamsSetup
WildGuardMix carries 86,759 examples across 13 risk categories, 87% synthetic. WildJailbreak carries 262K vanilla plus adversarial pairs with matched refusal and answer responses. Never train exclusively on the harmful slice.
Time
Auditing a 500-sample subset per dataset is under an hour.
Expected
A training mix balanced between harmful, benign-that-looks-harmful, and normal instructions. Reduces both refusal and over-refusal.A mix of harmful requests, harmless ones that look harmful, and ordinary instructions. The model refuses less, harmless requests too.
Failures
Training only on de-aligned or toxic subsets imprints apology templates and toxicity. Synthetic GPT-3.5-generated refusals imprint template phrasings that later look like brand marks.Training only on the harmful or toxic parts teaches the model stock apologies and toxic language. Refusals written by GPT-3.5 teach it fixed phrases that later show up like a signature.
Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.