Does Representation Matching Make Refusal Harder to Ablate? A Controlled Study of Iterated Linear Attacks

Jonathan Merchan, Deepanshu Mody, Acey VogelsteinarXiv 2026

TL;DR

In open-weight language models, expensive safety training can often be undone by finding and erasing a single "refusal direction" inside the model's internal activations. This paper tests whether forcing harmful and harmless prompts to look statistically similar inside the model spreads that refusal mechanism out, making it harder to erase. The twist? While it appears to work against standard extraction scripts, the model is mostly just hiding the refusal signal in layers those scripts ignore—a clever shell game that collapses once an attacker looks everywhere.

What Problem Does This Paper Address?

When you ask an aligned chat model how to build a bomb, it refuses. Recent mechanistic interpretability work discovered something unsettling for open-weight safety: across many chat models, this refusal behavior is mediated by a single linear direction in the residual stream (the main highway of vector activations passing through transformer layers). If someone with white-box access projects out that single vector—a cheap, rank-one linear algebra operation—the model happily answers harmful requests while keeping its general intelligence intact.

This raises a natural defensive question: Can we fine-tune models to decentralize how they represent refusal? If we penalize the model whenever harmful and harmless prompts have easily separable internal statistics, perhaps we can force refusal out of a single, fragile linear bottleneck without lobotomizing the model or making it paranoid about harmless questions.

Methods

The authors test this defense on Llama-3.2-1B-Instruct (with transfer checks on Qwen2.5-1.5B) using a controlled factorial grid of training objectives and white-box attacks.

On the defensive side, they combine standard supervised fine-tuning (SFT) with independently switchable losses:

  • Statistical Representation Matching: Penalizing the difference in empirical class means ($L_1$ distance) and/or covariances (squared Frobenius norm) between harmful and harmless prompts across layers.
  • Knowledge Distillation (KD): Forcing the student model's output probabilities to match the frozen original model, preventing the trivial solution where the model matches internal representations by simply refusing everything.
  • Baselines: They compare against ReFAT (Refusal Feature Adversarial Training), which dynamically ablates refusal directions during training so the model learns to refuse without them.

On the offensive side, because erasing one direction might just expose a backup direction, the authors introduce two stronger evaluations beyond standard rank-1 ablation:

  1. Iterated Mean-Difference Ablation: Greedily finding the best refusal direction, projecting it out, and re-extracting a new direction on the already-ablated model up to rank $K=20$.
  2. Adaptive Low-Rank Attack: Using gradient descent and differentiable QR decomposition to directly optimize an orthonormal rank-$K$ subspace that suppresses refusal while preserving normal behavior on safe prompts.

Datasets

No brand-new benchmarks are introduced, though the authors construct carefully deduplicated, pinned splits to separate prompt harmfulness from model behavior:

  • WildGuardMix: Used for training, development, and primary external evaluation (500 harmful / 500 harmless prompts), alongside the WildGuard classifier to score refusals.
  • HarmBench, XSTest, and OR-Bench: Combined into a 1,000-prompt balanced set for cross-corpus transfer stress testing.
  • MMLU, GSM8K, and HellaSwag: Standard benchmarks to verify whether safety interventions degrade general reasoning and math capabilities.

Key Insights and Ideas

  • Apparent robustness was actually spatial relocation: Standard refusal-ablation scripts (following prior literature) ignore the final 20% of transformer layers during candidate search. Under this restricted search, Mean Matching + KD looks great! When the attacker searches all layers, the advantage completely reverses—the fine-tuned model had simply pushed its refusal signals into the omitted late layers (specifically layers 14 and 15).
  • Distillation saves usability, not security: Without KD, representation matching creates "false robustness" by turning the model into an over-refusing brick (refusing up to 52.8% of harmless prompts). KD keeps harmless refusals low, while mean matching alters the internal geometry.
  • Robustness $\neq$ Concept Erasure: Even after penalizing mean and covariance differences, linear probes could still classify prompt harmfulness from internal activations with ~99% accuracy across all conditions. This makes intuitive sense: to selectively refuse harmful prompts, the model must retain information about harmfulness somewhere.
  • No free lunch on the safety–capability frontier: Comparing ReFAT and KD in a tightly aligned $2\times 2$ experiment revealed painful tradeoffs—methods either over-refused safe prompts, succumbed to adaptive attacks, or suffered noticeable drops on MMLU or GSM8K.

Key Results

Under the standard restricted-layer iterated attack (defining "broken" as the 95% confidence upper bound for harmful refusal dropping below 30%):

  • Untouched Llama broke at rank $K = 4$ (21.8% refusal), whereas Mean + KD held out until $K = 11$ (23.0% refusal), while maintaining clean capabilities (45.7% MMLU vs. 45.8% baseline) and low harmless refusal (3.6% vs. 7.8% baseline).
Figure 1: Refusal under iterated mean-difference ablation on 500 harmful and 500 harmless external prompts. Points show observed rates and bands show pointwise 95% Wilson intervals. Every line is evaluated through the same maximum K, and the horizontal line marks the 30% descriptive suppression threshold.

However, stress tests dismantled this apparent win:

  • All-layer extraction: Including the final 20% of layers caused Mean + KD to break at $K = 3$, while untouched Llama had no confidence crossing through $K = 20$.
  • Adaptive gradient attack: At rank $K = 4$, Mean + KD dropped to 22.2% harmful refusal (versus 31.2% for untouched Llama).
  • Model transfer: On Qwen2.5-1.5B, Mean + KD broke earlier than the untouched model ($K = 1$ vs. $K = 2$).
  • ReFAT comparison: 1-epoch ReFAT resisted adaptive attacks much better (staying at 75.8% refusal even at rank 16), but paid a steep tax by refusing 23.8% of clean, harmless prompts. Pairing ReFAT's mechanism with KD fixed over-refusal (down to 1.6%) but triggered a negative interaction that cost 3.68 points on MMLU.

Limitations and Future Work

The authors are refreshingly candid about what this work does and doesn't show:

  • Scale and seeds: The main causal grid relies on a single 1B-parameter model, English prompts, fixed loss weights, and a single training seed per condition due to compute constraints.
  • Narrow threat model: Even surviving 20 global linear projections is not true "tamper resistance"—computing 20 vectors is trivial for someone with model weights, and this threat model excludes LoRA fine-tuning, weight editing, or layer-specific subspaces.
  • Finite-batch noise: Computing mean and covariance penalties on small microbatches (16 examples) produces noisy statistical estimates and leaves nonlinear features untouched. Systematic hyperparameter sweeps and broader multi-model evaluations remain open avenues for future stress-testing.

Summary updated

BibTeX
@misc{merchan2026does,
  author = {Jonathan Merchan and Deepanshu Mody and Acey Vogelstein},
  title = {{Does Representation Matching Make Refusal Harder to Ablate? A Controlled Study of Iterated Linear Attacks}},
  year = {2026},
  eprint = {2611.38228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38228},
}
Figure