INSEP: Refusal-Direction Inseparability as a Defense Against Abliteration
Organizations: J.P. Morgan Chase
Abstract
Abliteration is a widely used white-box attack against the safety alignment of large language models (LLMs). It elicits harmful behavior by estimating a refusal direction in the model's activation space and projecting that direction out of the residual-stream write-out matrices. We propose INSEP, a defense that fine-tunes the model to reduce the separability of harmful and benign activations along the refusal direction. Abliteration estimates this direction as a difference in class means and projects it out. Reducing separability weakens the signal the attack relies on. An adversarial eigendecomposition selects the most separable prompt subsets. A low-rank adapter reduces their separation along that direction. Behavioral losses preserve the base model's refusal and the quality of its benign responses during training. We benchmark INSEP against six published defenses under five attacks, across eight LLMs from 1B to 14B parameters and several model families. Beyond response harm, we measure coherence, directness, over-refusal, and MMLU, to distinguish robust refusal from low harm produced by evasive or degraded responses. INSEP ranks first on the mean composite score across all eight base models while retaining utility, in the largest abliteration-defense evaluation reported to date.
Figures & tables
| Class | Pool | Construction | |
|---|---|---|---|
| Harmful | pooled | AdvBench, BeaverTails and HarmBench, stratified | 1,627 |
| Harmful | pooledExt | pooled plus paraphrase and translation | 5,056 |
| Harmful | wjbH | WildJailbreak vanilla_harmful | 50,050 |
| Benign | alpaca | Alpaca instructions, topically distant | 52,002 |
| Benign | wjbB | WildJailbreak vanilla_benign , near-miss form | 50,050 |
| Benign | twin | content-matched to each harmful prompt | per item |
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| INSEP | .056 | .052 | .076 | .171 | .022 | .936 | 1.000 | .995 | .783 | |
| ART | .374 | .160 | .321 | .598 | .302 | .942 | .978 | .966 | .777 | |
| Booster | .171 | .432 | .335 | .770 | .200 | .949 | .986 | .984 | .735 | |
| LAT | .109 | .608 | .192 | .862 | .002 | .919 | .865 | .833 | .775 | |
| base | .471 | .576 | .801 | .197 | .847 | .101 | .949 | .990 | .987 | .782 |
| Method | Llama-3.2 1B | OLMo-2 1B | Gemma-2 2B | Mistral 7B | Qwen2.5 7B | OLMo-2 13B | Phi-4 14B | Qwen3 14B | Mean |
|---|---|---|---|---|---|---|---|---|---|
| INSEP | .833 | .837 | .850 | .629 | .865 | .814 | .734 | .831 | .799 |
| RR | .766 | .512 | .648 | .583 | .459 | .539 | .669 | .326 | .563 |
| ART | .602 | .608 | .667 | .614 | .607 | .452 | .527 | .370 | .556 |
| LAT | .087 | .620 | .473 | .486 | .533 | .710 | .662 | .564 | .517 |
| Booster | .483 | .394 | .699 | .039 | .552 | .634 | .504 | .485 | .474 |
| base | .376 | .512 | .660 | .251 | .470 | .527 | .618 | .339 | .469 |
Appendix figures & tables40 assets
Supplementary material from the paper’s appendix.
Appendix
| Defense | Attacks | Defenses | Harm measures | Quality measures | Base models | Seeds |
|---|---|---|---|---|---|---|
| AMRA | ablation † | AlphaSteer, CAST, RR, Surgical | Refusal rate | BPB, GSM8K, MMLU | 2 (8–9B) | |
| ART | ablation † , prefill | SEAM, TAR | AdvBench, BeaverTails, HarmBench; ASR, Judge, Other | ROUGE-L | 5 (1–8B) | |
| DeepRefusal | ablation † , CodeAttack, GCG, prefill | CAT, LAT, RR, RT-Aug | ASR, Judge | GSM8K, MMLU, MT-Bench, Over-ref | 4 (7–8B) | GCG |
| Extended-Refusal | ablation † | None | Refusal rate | Coherence, C4-ppl; MMLU | 3 (2–7B) | |
| ReFAT | ablation † , AutoDAN, GCG, HumanJB, PAIR | CAT, LAT, R2D2 | AdvBench, HarmBench; ASR, Judge | MMLU, MT-Bench, XSTest | 3 (7–8B) | |
| RR | AutoDAN, GCG, HumanJB, multiling., PAIR, prefill, RepE, TAP | R2D2 | HarmBench; ASR | MT-Bench, Open-LLM | 2 (7–8B) |
| Attack | Attacks | Defenses | Harm measures | Quality measures | Base models | Seeds |
|---|---|---|---|---|---|---|
| ablation (Arditi) | AutoPrompt, GCG, HumanJB, PAIR | None | AdvBench; Refusal, Llama-Guard | KL | 13 ( 72B) | |
| Heretic | ablation | None | Refusal rate | KL | 1 (12B) | |
| ACE | ablation, CAA | None | AdvBench; Judge | — | 10 (2–72B) | |
| SOM | ablation, cones, GCG, SAA | RR | HarmBench; ASR | — | 8 (3–14B) | |
| cones | ablation | None | StrongREJECT | TruthfulQA | 9 (2–14B) | MC |
| RFM | ablation, cones | None | HarmBench; ASR | MMLU | 5 (2–14B) | CV |
| Harmful fine-tuning | Worst abliteration | |
|---|---|---|
| Defense | (100 steps) | attack |
| INSEP | .717 | .146 |
| ART | .762 | .049 |
| RR | .705 | .286 |
| AMRA | .716 | .527 |
| Booster | .759 | .701 |
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Objective | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| Full | .053 | .052 | .076 | .076 | .022 | .933 | 1.000 | .995 | .782 | |
| , random search | .061 | .110 | .082 | .066 | .027 | .934 | .993 | .986 | .770 | |
| .065 | .263 | .113 | .156 | .008 | .937 | .991 | .985 | .759 | ||
| .141 | .270 | .129 | .181 | .062 | .941 | .996 | .989 | .765 | ||
| .037 | .381 | .391 | .439 | .010 | .952 | .996 | .992 | .775 | ||
| Harmful | Benign | Sampler | Safety | Helpful. | Utility | Composite |
|---|---|---|---|---|---|---|
| PooledExt | Alpaca | eigen@1 | .813 | .899 | .470 | .700 |
| Pooled | Alpaca | eigen@1 | .806 | .894 | .472 | .698 |
| Pooled | Alpaca | eigencoreset | .784 | .900 | .472 | .694 |
| PooledExt | Alpaca | eigencoreset | .783 | .882 | .473 | .689 |
| WildJailbreak | WildJailbreak | eigencoreset | .795 | .836 | .468 | .677 |
| WildJailbreak | Alpaca | eigen@1 | .821 | .772 | .471 | .668 |
| Model | AUC along | AUC along whitened direction | |
|---|---|---|---|
| Base | 5.06 | .997 | 1.000 |
| INSEP | .05 | .488 | .999 |
| Model | Attack direction | AUC along dir. | Harm ( ) |
|---|---|---|---|
| base | difference-in-means | .997 | .540 |
| base | whitened (LDA) | 1.000 | .395 |
| INSEP | difference-in-means | .488 | |
| INSEP | whitened (LDA) | .999 |
| Model | diff-in-means | best linear | RBF | RBF (whitened) | norm |
|---|---|---|---|---|---|
| Base | 1.000 | 1.000 | 1.000 | 1.000 | .506 |
| INSEP s0 | .594 | .999 | .965 | 1.000 | .517 |
| INSEP s1 | .556 | .997 | .949 | .997 | .541 |
| INSEP s2 | .533 | 1.000 | .963 | 1.000 | .508 |
| cos | ||||
|---|---|---|---|---|
| Layer band | Base | INSEP | Base | INSEP |
| early (L1–5) | 0.72 | 0.16 | ||
| mid (L6–10) | 2.37 | 0.22 | ||
| late (L11–15) | 5.44 | 0.57 | ||
| Iteration | gap | attack estimator AUC | Mahalanobis distance | LDA AUC | ||
|---|---|---|---|---|---|---|
| base | 2.13 | 0.39 | 5.40 | .999 | 18.63 | 1.000 |
| 25 | ||||||
| 50 | ||||||
| 100 | ||||||
| 150 | ||||||
| 300 |
| Mean harm by attack ( ) | Strongest attack | |||||||
|---|---|---|---|---|---|---|---|---|
| Defense | ACE | abl | SOM | Heretic | prefill | Mean | (base models) | |
| INSEP | .104 | .080 | .113 | .081 | .036 | .083 | SOM (4/8) | .62 ∗ |
| AMRA | .137 | .126 | .132 | .215 | .200 | .162 | Heretic (3/7) | .04 |
| LAT | .043 | .436 | .139 | .506 | .003 | .225 | Heretic (5/8) | .79 ∗ |
| RR | .286 | .281 | .242 | .571 | .161 | .308 | Heretic (8/8) | .63 ∗ |
| ART | .386 | .368 | .351 | .371 | .286 | .352 | Heretic (4/8) | .12 |
| Target position | base | INSEP (last-1) |
|---|---|---|
| (trained) | .453 | |
| .763 | ||
| .290 | ||
| .683 | ||
| .498 |
| Configuration | Composite (3-attack) ( ) | worst-case harm ( ) |
|---|---|---|
| INSEP last-5 (seed mean, ) | ||
| INSEP last-1 (seed mean, ) | ||
| ART | ||
| RR | ||
| base | .263 | .795 |
| Method | without prefill term | with prefill term |
|---|---|---|
| base | .101 | – |
| ReFAT | ||
| ART | – | .302 |
| INSEP | .062 ( ) | .022 |
| Method | Llama-3.2 1B | OLMo-2 1B | Gemma-2 2B | Mistral 7B | Qwen2.5 7B | OLMo-2 13B | Phi-4 14B | Qwen3 14B | Mean |
|---|---|---|---|---|---|---|---|---|---|
| INSEP | .816 | .825 | .837 | .615 | .853 | .804 | .732 | .828 | .789 |
| ART | .606 | .585 | .668 | .621 | .596 | .428 | .513 | .302 | .540 |
| RR | .758 | .468 | .602 | .582 | .360 | .538 | .638 | .283 | .529 |
| LAT | .087 | .581 | .455 | .383 | .460 | .670 | .620 | .516 | .471 |
| Booster | .450 | .336 | .661 | .040 | .511 | .620 | .501 | .468 | .448 |
| base | .341 | .470 | .616 | .260 | .375 | .525 | .568 | .299 | .432 |
| Method | Llama-3.2 1B | OLMo-2 1B | Gemma-2 2B | Mistral 7B | Qwen2.5 7B | OLMo-2 13B | Phi-4 14B | Qwen3 14B | Mean |
|---|---|---|---|---|---|---|---|---|---|
| INSEP | .780 | .749 | .787 | .559 | .776 | .771 | .707 | .802 | .741 |
| ART | .584 | .527 | .452 | .450 | .376 | .371 | .304 | .162 | .403 |
| AMRA | .428 | .368 | .082 | .248 | .395 | .230 | – | .529 | .326 |
| RR | .644 | .144 | .153 | .581 | .086 | .500 | .394 | .078 | .323 |
| ReFAT | .337 | .286 | .317 | .246 | .147 | .159 | .173 | .173 | .230 |
| Booster | .281 | .169 | .228 | .036 | .205 | .377 | .267 | .235 | .225 |
| Worst behavior by axis, all base ( ) | Weakest axis | |||||
|---|---|---|---|---|---|---|
| Defense | coher. | direct. | overref. | Min | (base models) | |
| ReFAT | .975 | .972 | .928 | .928 | overref. (8/8) | .75 ∗ |
| base | .990 | .975 | .897 | .897 | overref. (8/8) | 1.00 ∗ |
| INSEP | .954 | .935 | .783 | .783 | overref. (8/8) | 1.00 ∗ |
| ART | .970 | .671 | .830 | .671 | overref. (7/8) | .89 ∗ |
| RR | .621 | .626 | .746 | .621 | overref. (5/8) | .14 |
| judge | |||
|---|---|---|---|
| model | keyword | comply | refuse |
| INSEP | comply | 104 | 0 53 |
| refuse | 00 1 | 339 | |
| ART | comply | 313 | 179 |
| refuse | 00 1 | 00 7 | |
| 1.1 | 1.25 | 1.5 | 1.75 | 2.0 | 3.0 | |
|---|---|---|---|---|---|---|
| Qwen2.5-7B | .816 | .831 | .871 | .803 | .816 | .691 |
| Mistral-7B | .532 | .516 | .582 | .530 | .598 | .514 |
| 1.1 | 1.25 | 1.5 | 1.75 | 2.0 | 3.0 | |
|---|---|---|---|---|---|---|
| Qwen2.5-7B | 149 | 132 | 149 | 98 | 132 | 128 |
| Mistral-7B | 68 | 85 | 107 | 88 | 88 | 83 |
| Hyperparameter | Type | Search space | Role |
| INSEP — null-referenced separability (8 axes, define-by-run) | |||
| lambda_comply | cont. | comply-on-benign weight | |
| lambda_refuse | cont. | refuse-on-harmful weight | |
| lambda_dprime | cont. | separability ( ) weight | |
| lambda_prefill | cont. | refuse-under-affirmative-prefix weight | |
| sampler | cat. | minibatch selector | |
| Harm (Mean, ) | Utility (Mean, ) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Composite | Comp. | ACE | abl † | SOM † | Heretic † | prefill | coher. | direct. | MMLU | |
| INSEP@3 | .031 | .030 | .055 | .025 | .015 | .990 | .992 | .988 | .792 | ||
| INSEP@2 | .020 | .017 | .103 | .272 | .011 | .934 | .999 | .994 | .764 | ||
| INSEP@1 | .048 | .308 | .059 | .115 | .017 | .947 | .996 | .985 | .756 | ||
| RR@3 | .018 | .824 | .031 | .011 | .013 | .935 | .959 | .955 | .782 | ||
| AMRA@1 | .006 | .005 | .014 | .025 | .007 | .835 | .881 | .834 | .708 | ||
| Hyperparameter | Bin / level | Trials | Mean | with | |
|---|---|---|---|---|---|
| branch layer-selection | greedy | 77 | .942 | ||
| nullbaseline | 38 | .933 | |||
| lambda_comply comply-on-benign | [1.0, 2.0) | 32 | .940 | ||
| [2.0, 3.0) | 45 | .940 | |||
| [3.0, 4.0) | 22 | .939 | |||
| [4.0, 5.0] | 16 | .936 | |||
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| INSEP | .124 | .084 | .146 | .069 | .015 | .913 | .997 | .979 | .486 | |
| RR | .135 | .100 | .117 | .286 | .117 | .909 | .906 | .918 | .465 | |
| ART | .049 | .027 | .026 | .035 | .070 | .830 | .978 | .671 | .437 | |
| AMRA | .340 | .296 | .336 | .527 | .426 | .929 | .985 | .966 | .455 | |
| Booster | .691 | .420 | .271 | .701 | .347 | .939 | .998 | .991 | .470 | |
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| INSEP | .027 | .097 | .158 | .008 | .003 | .889 | .994 | .968 | .411 | |
| LAT | .042 | .206 | .009 | .751 | .001 | .881 | .974 | .950 | .349 | |
| ART | .303 | .383 | .320 | .421 | .233 | .933 | .970 | .953 | .386 | |
| base | .512 | .425 | .320 | .484 | .806 | .289 | .957 | .997 | .989 | .396 |
| RR | .419 | .322 | .443 | .849 | .276 | .957 | .995 | .988 | .394 | |
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| INSEP | .129 | .033 | .064 | .069 | .006 | .904 | .997 | .982 | .584 | |
| Booster | .145 | .110 | .114 | .752 | .074 | .918 | .999 | .995 | .583 | |
| base | .660 | .185 | .121 | .173 | .847 | .090 | .921 | 1.000 | .996 | .582 |
| ART | .054 | .180 | .117 | .461 | .210 | .900 | .982 | .913 | .542 | |
| RR | .235 | .123 | .174 | .833 | .089 | .914 | 1.000 | .993 | .583 | |
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| INSEP | .373 | .318 | .283 | .268 | .231 | .940 | .997 | .992 | .609 | |
| ART | .344 | .240 | .143 | .497 | .342 | .910 | .980 | .945 | .631 | |
| RR | .010 | .010 | .012 | .013 | .010 | .746 | .621 | .626 | .609 | |
| LAT | .144 | .713 | .609 | .845 | .008 | .939 | 1.000 | .998 | .620 | |
| AMRA | .445 | .425 | .439 | .730 | .668 | .941 | .998 | .990 | .627 | |
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| INSEP | .099 | .020 | .072 | .048 | .002 | .906 | .973 | .954 | .628 | |
| LAT | .013 | .282 | .006 | .621 | .001 | .884 | .989 | .946 | .655 | |
| Booster | .272 | .320 | .133 | .593 | .254 | .938 | .994 | .989 | .656 | |
| base | .527 | .238 | .484 | .513 | .563 | .442 | .954 | .996 | .975 | .665 |
| RR | .091 | .175 | .183 | .227 | .157 | .813 | .673 | .656 | .656 | |
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
| Defense | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| INSEP | .017 | .006 | .052 | .004 | .004 | .783 | .959 | .935 | .772 | |
| LAT | .013 | .565 | .276 | .165 | .002 | .838 | .988 | .968 | .804 | |
| RR | .071 | .068 | .323 | .536 | .064 | .850 | .998 | .977 | .811 | |
| base | .618 | .100 | .097 | .430 | .840 | .090 | .897 | .998 | .983 | .810 |
| ART | .604 | .518 | .679 | .033 | .384 | .947 | .989 | .966 | .816 | |
| Harm (Mean, ) | Utility (Mean, ) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Composite | ACE | abl | SOM | Heretic | prefill | coher. | direct. | MMLU | |
| INSEP | .011 | .033 | .057 | .007 | .006 | .891 | .954 | .940 | .762 | |
| AMRA | .099 | .093 | .054 | .178 | .168 | .800 | .661 | .659 | .779 | |
| Booster | .538 | .548 | .149 | .746 | .403 | .936 | .997 | .994 | .790 | |
| LAT | .007 | .813 | .010 | .450 | .003 | .900 | .804 | .807 | .753 | |
| ReFAT | .419 | .582 | .818 | .483 | .500 | .952 | .992 | .990 | .795 | |
| Hyperparameter | Value |
|---|---|
| Method | |
| / / | 128 / 64 / 64 |
| / / / | 4 / 4 / 2 / 2 |
| dprime sites | all layers |
| 0 | |
| objective | dprime |
| Hyperparameter | Value | Paper | Code |
| Method | |||
| ablation strength | 1.0 | ||
| directions (harm / harmless) | 32 / 32 | ||
| 0.5 | |||
| recompute interval | 4 | ||
| RFA layers | last 75% | ||
| Hyperparameter | Value | Paper | Code |
| Method | |||
| / | 1.0 / 2.0 | ||
| (inner) | 1.0 | ||
| directions | 32 | ||
| recompute interval | 10 | ||
| Data | |||
| Hyperparameter | Value | Paper | Code |
| Method | |||
| (alias variance) | 0.025 | ||
| (reader rank) | 8 (Gemma-2: 16) | ||
| (writer rank) | 2 (Gemma-2: 4) | ||
| layer fraction | 0.72 | ||
| Data | |||
| Hyperparameter | Value | Paper | Code |
|---|---|---|---|
| Method | |||
| add_completions_pgd | True | ||
| adv. loss coefs | toward .5 / away .5 | ||
| def. loss coefs | kl .1 / toward .5 / away .5 | ||
| model iters / step | 4 | ||
| PGD iters / step | 16 | ||
| Hyperparameter | Value | Paper | Code |
|---|---|---|---|
| Method | |||
| circuit-breaker layers | 10, 20 | ||
| 10 (Mistral: 5) | |||
| transform layers | all ( ) | ||
| use refusal retain | True | ||
| Optimization | |||
| Hyperparameter | Value | Paper | Code |
|---|---|---|---|
| Method | |||
| / | 5 / 0.1 | ||
| Data | |||
| data | BeaverTails-safe | ||
| samples (benign / harmful) | 5000 / 5000 | ||
| Optimization | |||
| Attack | Layer selection | Direction estimate | Hyperparameters | Seeds |
|---|---|---|---|---|
| abl | min-refusal sweep ( JSD) | diff-of-means | (full projection); applied at all layers | 3 |
| ACE | min-refusal sweep ( JSD) | diff-of-means harmless-mean affine | (steering coefficient); all-layer | 3 |
| SOM | min-refusal sweep ( JSD) | SOM over the harmful cloud (multi-direction) | map, , lr , iters, hexagonal | 3 |
| Heretic | self-selected | TPE search, 200 trials | minimizes a refusal proxy KL (self-optimized) | 1 |
| prefill | — (inference-time) | — | 3 variants (plain / newline / title); 6 lead-ins, 5 title formats | 3 |
| Name | Reference | Description |
|---|---|---|
| Abliteration attacks | ||
| ablation | Arditi et al. (2024) | Difference-in-means refusal-direction removal |
| ACE | Marshall et al. (2024) | Affine concept editing (mean + bias term) |
| cones | Wollschläger et al. (2025) | Multi-dimensional refusal cones |
| Heretic | Weidmann (2025) | Automated, TPE-optimized abliteration tool (5,000+ community models) |
| OT | Nanfack et al. (2026) | Optimal-transport (mean + covariance) ablation |
Adversarial Robustness of Language Models
Adversarial robustness of language models studies how to keep their outputs and decisions reliable under manipulative prompts, input changes, and malicious fine-tuning.
See all 212 papers