Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

Abliteration Mitigation via Refusal Aliases

arXiv:2608.180932026-08-20

A new defense called AMRA hides the 'refusal direction' inside AI models so it can't be erased by abliteration attacks

Language models refuse harmful requests using a single internal direction in their activations, and attackers can find and delete this direction with just a handful of prompts, a technique called abliteration. AMRA edits a small set of weight matrices so that this refusal signal gets scrambled into random noise, making it much harder to locate and remove. On Llama-3-8B this defense worked with almost no cost to model quality, while on Gemma-2-9B it worked strongly but with a bigger utility trade-off.

METAL MEDIA explanatory visual

A new defense called AMRA hides the 'refusal direction' inside AI models so it can't be erased by abliteration attacks

  1. 01Prior defenses largely ignored why the refusal direction is so easy to extract in the first place; this work directly targets that extraction step
  2. 02AMRA applies small rank-k updates to weight matrices that write into the model's residual stream, replacing refusal-triggering activations with random low-variance 'alias' values, then patches downstream matrices so the rest of the model still behaves normally
  3. 03On Llama-3-8B, AMRA improved the post-abliteration refusal score by 2.16 points over an undefended baseline while degrading MMLU by less than 0.5 percentage points
  4. 04On Gemma-2-9B, it improved the post-abliteration refusal score by 14.70 points over baseline and kept harmful-output rates similar to baseline, but at a larger cost to GSM8K and MMLU utility scores
  5. 05Compared against other defenses (Surgical, CAST, Circuit Breakers, AlphaSteer), AMRA was the only method that simultaneously raised post-abliteration refusal, kept HarmBench attack success rate and LlamaGuard unsafe rates low, and preserved reasonable utility
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. Prior defenses largely ignored why the refusal direction is so easy to extract in the first place; this work directly targets that extraction step
  2. AMRA applies small rank-k updates to weight matrices that write into the model's residual stream, replacing refusal-triggering activations with random low-variance 'alias' values, then patches downstream matrices so the rest of the model still behaves normally
  3. On Llama-3-8B, AMRA improved the post-abliteration refusal score by 2.16 points over an undefended baseline while degrading MMLU by less than 0.5 percentage points
  4. On Gemma-2-9B, it improved the post-abliteration refusal score by 14.70 points over baseline and kept harmful-output rates similar to baseline, but at a larger cost to GSM8K and MMLU utility scores
  5. Compared against other defenses (Surgical, CAST, Circuit Breakers, AlphaSteer), AMRA was the only method that simultaneously raised post-abliteration refusal, kept HarmBench attack success rate and LlamaGuard unsafe rates low, and preserved reasonable utility
Figure 1: Obfuscation diagram. We show a high-level depiction of the patches made to obfuscate the refusal signal. Although our weight matrix updates are rank-k, we show a rank-one variant for brevity. The bottom arrow represents the residual stream through layer l. The Q, K, and V, up projections into the attention mechanism, downward projection from the feed-forward, and LayerNorm have been omitted to highlight sublayer interactions and general stylistic simplicity.
Figure 1: Obfuscation diagram. We show a high-level depiction of the patches made to obfuscate the refusal signal. Although our weight matrix updates are rank-k, we show a rank-one variant for brevity. The bottom arrow represents the residual stream through layer l. The Q, K, and V, up projections into the attention mechanism, downward projection from the feed-forward, and LayerNorm have been omitted to highlight sublayer interactions and general stylistic simplicity.
Table 1: Safety and abliteration results. Refusal scores are higher when the model retains more refusal behavior before and after Arditi-style abliteration. Additionally, the Arditi abliteration on defenses other than our baseline. (None) implies the difference-in-means refusal vector extraction was run again after a defense was applied. HarmBench ASR and LlamaGuard unsafe rate are lower when the model is safer.
ModelDefenseClean Refusal ↑Arditi ↑HarmBench ASR ↓LlamaGuard ↓
Llama-3-8BNone10.03185.68840.02000.0100
AMRA10.23507.84970.01000.0100
Surgical1.33652.02290.42000.2800
CAST-0.2591-0.59800.00000.8300
CB9.91835.53550.02000.0400
AlphaSteer10.01845.67960.02000.0200
Gemma-2-9BNone7.1172-16.00930.02000.0000
AMRA7.2000-1.31050.01000.0000
Surgical-16.9482-18.04430.44000.7300
CAST7.3802-12.39730.00000.0000
CB7.1436-16.01900.02000.0000
AlphaSteer5.63200.87560.09000.1100
Figure 2: Residual stream shifts. Here, we show the effect of a rank-one (kw=1) update of a writer matrix Woutl on subsequent residual stream representations. Specifically, we compare the mean residual stream values prior to and after the weight matrix update over 16 prompts. (a) exhibits the L2 difference, (b) shows the shift in residual stream variance, and (c) shows the cosine similarity of the residual stream before versus after the edit. Upper: sweeps over ε for layer 20. Lower: sweeps over layers along with an additional random selection of 6.
Figure 2: Residual stream shifts. Here, we show the effect of a rank-one (kw=1) update of a writer matrix Woutl on subsequent residual stream representations. Specifically, we compare the mean residual stream values prior to and after the weight matrix update over 16 prompts. (a) exhibits the L2 difference, (b) shows the shift in residual stream variance, and (c) shows the cosine similarity of the residual stream before versus after the edit. Upper: sweeps over ε for layer 20. Lower: sweeps over layers along with an additional random selection of 6.
Table 2: Utility results across base models and defenses. Lower BPB is better; higher GSM8K and MMLU are better.
ModelDefensePile BPB ↓Alpaca BPB ↓GSM8K ↑MMLU ↑
Llama-3-8BNone0.76650.55550.70200.6911
AMRA0.78010.56510.68800.6876
Surgical0.74340.51410.74200.6782
CAST1.29240.82950.03200.3334
CB0.76740.55760.70800.6825
AlphaSteer0.76670.55550.69800.6912
Gemma-2-9BNone0.81240.65610.56200.7411
AMRA0.95970.66790.33600.6926
Surgical0.85770.66020.67600.6971
CAST0.81170.65260.50800.7393
CB0.81240.65630.56200.7412
AlphaSteer1.58381.00170.16800.6611

Why it matters

Anyone with white-box access to an open-weight model can currently strip away its safety refusals using only a small set of contrastive prompts, so this offers model developers a practical way to harden weights before public release. The authors are also upfront that the defense only helps if attackers never get the unprotected original weights, which limits how it can be deployed.

Terms in this paper

  • abliteration · a technique that projects a model's weight matrices to be orthogonal to a refusal direction, removing its ability to refuse harmful requests
  • residual stream · the shared vector pathway inside a transformer that layers read from and write to as they pass information forward
  • rank-k update · a weight modification restricted to a small number (k) of directions, keeping the change low-dimensional
  • difference-in-means · a method that extracts a direction vector by averaging activation differences between harmful and harmless prompts
  • HarmBench ASR / LlamaGuard unsafe rate · safety metrics measuring, respectively, how often harmful prompts succeed and how often outputs are flagged as unsafe

Original abstract (English)

Abliteration, the removal of refusal capabilities from large language models by projecting weight matrices orthogonal to an extracted refusal direction, has emerged as a prominent safety concern through its ability to bypass post-training alignment using only a small set of contrastive prompts. We find that existing defenses commonly overlook the cause of abliteration; that is, how easily the refusal direction can be extracted. To hinder this process, we introduce a weight-editing method that obscures the refusal signal by applying rank-$k$ updates to residual stream writer matrices while replacing refusal-inducing activations with random aliases and correcting downstream reader matrices to preserve the model's original behavior. On Llama-3-8B, AMRA improves post-abliteration refusal scores by $2.16$ points over the undefended baseline with less than $0.5$ percentage points of MMLU degradation. On Gemma-2-9B, it improves the post-abliteration refusal by $14.70$ points over the baseline while keeping harmful output rates similar to the baseline, albeit at a greater utility cost.

Authors · Nathan Truong

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA

Figures: Nathan Truong et al., arXiv:2608.18093, CC BY 4.0