# Centered Ablation: Why Last-Layer Directional Ablation Under-Fires or Collapses, and a Closed-Form Fix

Quy-Anh Dang, Chris Ngo · arXiv · 2026-11-15

- **Problem** Directional ablation with the difference-in-means direction under-fires on some models and collapses the text on others, and existing remedies do not say in advance which models will misbehave.
- **Method** Projects the benign common mode out of the difference-in-means direction in closed form before ablating, and computes the overlap, efficacy and collapse index from cached activations before generation.
- **Results** Raised HarmBench fluent-only attack success on Llama-3.2-3B from 10.3% to 56.7% (+46.3 points) under Centered Ablation, against DIM ablation.

![Figure 2: The standard direction fires on benign prompts; centring the direction removes that floor.Llama-3.2-3B ( ω = 0.44), withDIM ablation(gray),DIM+offset…](https://refivu.com/papers/e522068b-b9e0-411d-8146-73a3b153eaba/figures/figure-ac4e6f087a8968f2402456407c8d7d8b.png?thumb=512)

**Figure 2** :The standard direction fires on benign prompts; centring the direction removes that floor.Llama-3.2-3B ( ω = 0.44), withDIM ablation(gray),DIM+offset(orange; the other way to anchor the gate, Section 3.5) andCA(blue). (a) Gateκu(h)per prompt: mean and 5th to 95th percentile. Under DIM the benign gate sits at−0.28, the floor of Equation (6); both corrections move it to zero and raise the harmful gate. (b) Attack success and benign rewrite rate of the generated text.

[Original paper](https://arxiv.org/abs/2611.20148v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Quy-Anh Dang, Chris Ngo · Centered Ablation: Why Last-Layer Directional Ablation Under-Fires or Collapses, and a Closed-Form Fix · Original paper figure · Extracted the figure area from page 5 of the original PDF.

## Why directional ablation is erratic

Directional ablation builds a unit vector from the gap between the average hidden states of two prompt groups and then strips each hidden state of its component along that vector while the model generates. The recipe is cheap and gradient-free, but its effect varies widely between models. On Llama-3.2-3B the refusal direction barely fires: 86% of harmful-request answers still open with a refusal after ablation.

On Gemma-2-9B the same kind of edit pushes the text into repetition on half of the prompts.

Existing responses tune the strength, change the estimator, or add an affine offset as in affine concept editing, but none of them states what the edit does to the output distribution.

## Last-layer ablation as a logit bias

Under this restriction the logits are a normalization followed by a linear map of the hidden state, so the effect of an ablation can be written out in closed form.

Proposition 3.1 states that the ablated logits equal a positive scalar times the original logits minus a fixed vector scaled by the gate. The vector is the footprint and the scale includes the strength and the square root of the hidden dimension. \\\[ \\ell(A\_{us}(h)) = \\tau\_s(h)\\bigl\[\\ell(h) - s\\sqrt{d}\\,\\kappa\_u(h)\\, f\_u\\bigr\] \\\] Because the scalar does not change which vocabulary item has the largest score, the steered next token under greedy decoding is the argmax of the bias-adjusted logits.

A state whose gate is zero is untouched, so the selectivity of the edit comes entirely from the gate and not from the footprint.

The collapse index compares the size of this bias with the spread of the model's own logits, using the standard deviation of the logits across the vocabulary and the standard deviation of the footprint.

## Why the standard gate has a benign floor

On the three models where this was measured, the mean direction of benign states has absolute cosine 0.83 to 0.99 with the mean of all states. The authors define the benign common mode as the normalized mean of benign states after RMS normalization, and the overlap as the absolute inner product of a direction with that mode.

Benign states sit close to the common mode, so their mean gate is roughly the mean cosine times the overlap, a fixed floor that no choice of strength removes. A large overlap therefore produces three symptoms: benign text fires, the bias collapses the output once the strength pushes the benign collapse index past one, and the direction under-fires on its targets because part of its unit budget is spent on the common mode.

## Centered Ablation

Centered Ablation keeps the difference-in-means direction but removes its component along the benign common mode before normalizing. \\\[ u\_{CA} = \\mathrm{unit}\\bigl((I - \\hat\\mu\_-\\hat\\mu\_-^\\top)\\,u\_{DIM}\\bigr) \\\] The procedure needs the two sample means, one projection and one normalization, and then ablates along u\_CA at every generated position, with no tuned hyperparameter beyond the strength.

Proposition 3.2 gives the overlap of u\_CA with the benign common mode as zero, so its gate has no floor. The inner product of u\_CA with the difference of the two class means equals the norm of that difference times the square root of one minus the squared overlap of the original direction, so the separation kept is everything except the share that pointed along the common mode.

Using a negative strength gives the refusal-amplifying variant, called CA-Amp.

On Llama-3.2-3B, where the overlap is 0.44, the benign gate moves from -0.28 to 0.00 and the harmful gate rises from 0.32 to 0.58. Attack success on that model goes from 10% to 57%, and the benign rewrite rate falls from 44% to 26%.

## The offset route and how it differs from centring

The other way to centre the gate keeps the difference-in-means direction and subtracts the benign class's own coefficient from each state's projection. This is the pure-ablation form of the affine correction of affine concept editing, applied at the same last-layer site, and the authors label it DIM+offset. Decomposing the direction into the overlap times the common mode plus the square root of one minus the squared overlap times u\_CA shows that the offset coefficient is the CA coefficient scaled by the square root of one minus the squared overlap, plus a term in the centred common-mode magnitude.

On behaviour states the offset route's mean coefficient is larger than CA's by a factor of one over the square root of one minus the squared overlap, which is at least one. On benign states the offset route keeps a share of the squared overlap of the common-mode magnitude's variance, which CA removes entirely. When the overlap is near zero the two routes coincide, and as it grows the offset buys more attack effect at the cost of more benign collateral.

## Models, calibration and metrics

The study covers eight instruction-tuned models from three families: Qwen2.5 at 0.5B, 3B and 7B, Qwen3-4B, Llama-3.1-8B, Llama-3.2-3B, and Gemma-2 at 2B and 9B. The analysis was developed on three pilot models, Qwen2.5-7B, Llama-3.1-8B and Gemma-2-9B, and then scaled to all eight. For the five models added in the second stage, the overlap, efficacy and predicted regime were recorded before those models generated any text.

Directions are calibrated on 256 AdvBench prompts against 256 Alpaca prompts, at the prompt-final states, and resampled in 6 calibration draws. Attack success is measured on 240 HarmBench prompts, with benign behaviour measured on 100 held-out Alpaca prompts, and generation is greedy with 256 new tokens.

Differences use a paired prompt-level bootstrap and an exact McNemar test per draw.

## Does the closed form predict the served model?

Agreement is 96.1% of prompts pooled over all cells, and the predicted and observed refusal rates correlate at Pearson 0.95 across cells. On that model refusal returns later as a semantic deflection rather than as a refusal onset, which the authors treat as the limit studied later.

## Under-firing, collapse and collateral results

Under Centered Ablation the share of DIM-steered responses opening with a refusal on Llama-3.2-3B falls from 86% to 19%. On the other six models the HarmBench attack success moves by at most 2.6 points, and none of those changes is significant.

On Gemma-2-9B DIM ablation degenerates on 50% of prompts, and Centered Ablation brings this to 1%, with fluent-only attack success nearly unchanged at 14.0% against 14.4%. On the four models whose overlap is above 0.3, Centered Ablation preserves 12 to 40 points more benign answers than DIM ablation, while on the four with overlap below 0.13 the difference is at most 5 points.

## Offset versus centring in the results

Under the HarmBench classifier, DIM+offset is never significantly below Centered Ablation and is significantly higher on three models, Qwen2.5-7B by 3.7 points and both 3B models by 12.4 points. On the three models whose overlap is above 0.33, DIM+offset rewrites 39 to 46 points more benign answers than Centered Ablation.

## Predicting the benefit before generation

The miss was Gemma-2-2B, labelled as an attack-success gain, which preserved 16.5 points of benign answers and gained no attack success, consistent with its overlap of 0.32 and efficacy of 0.98. Exactly 6 of the 144 cells have a collapse index above 1, all of them Gemma-2-9B under DIM ablation with a mean of 1.03 over 6 draws, and those cells have a mean collapse rate of 49.8%.

The other 138 cells have a collapse index of at most 0.90 and a mean collapse rate of 0.6%.

## Where last-layer ablation stops

The authors also ran the pipeline on four emotions, and within each of the 8 models the overlap orders the collateral reduction with Spearman 1.00 over four emotions.

At the amplification end, on Gemma-2-9B DIM-Amp is 31% collapsed at strength -1 and 95 to 100% collapsed at strengths -1.5 and -2, while CA-Amp stays fluent down to -2 and reaches an attack success of 14.1% at -3. CA-Amp is a trade-off with over-refusal rather than a dominance result.

## Two judges on collapsed text

With the fluency filter the difference vanishes, at 15.8% against 17.3%, and it is not significant. On 120 degenerate Gemma-2-9B outputs under DIM ablation the HarmBench classifier flags 1.7% as harmful while Llama-Guard flags 98.3%, and on fluent outputs the two agree.

Multiple-choice scores do not expose the cost either: interventions that leave MMLU within 0.7 points can rewrite up to 88% of free-form benign answers, as with DIM on Gemma-2-2B.

## Limitations

Under sampling the rescaling acts as a temperature, and at earlier layers no closed form exists.

Both diagnostic laws rest on eight models, the separation at efficacy 0.6 rests on two models below it, and only one model crosses a collapse index of 1. The collapse threshold is therefore bracketed between 0.90 and 1.03 and cannot be located more finely.

## Paper info

- **Authors**: Quy-Anh Dang, Chris Ngo
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-15
- **Added**: 2026-11-17
- **Updated**: 2026-11-15
- **Version**: v1
- **arXiv**: 2611.20148
- **Category**: cs.CL
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.20148v1) · [PDF ↗](https://arxiv.org/pdf/2611.20148v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Directional ablation removes a hidden state's component along a "behaviour direction" while a language model runs. It is the standard way to switch a behaviour such as refusal off, but it is erratic: on some models it barely fires, on others the text collapses into repetition. We show why, and fix it. At the last residual stream, ablation is exactly a logit bias: a fixed vocabulary footprint scaled by a gate, the cosine between the hidden state and the direction. The gate is measured from the origin, but last-layer states share a large common mode far from it, so a direction that overlaps the common mode fires on benign text and under-fires on its targets. Centered Ablation (CA) projects the common mode out of the direction, in closed form. Across 8 models, CA raises attack success by 29 and 46 points where the standard recipe under-fires, cuts collapse on Gemma-2-9B from 50\\% to 1\\%, and preserves 12 to 40 points more benign answers on high-overlap models, 39 to 46 more than the affine offset of prior work. Two numbers computed before generation predict, on models the analysis had not seen, which gain faithfulness and which gain attack success, and a collapse index marks when text degenerates. We also show that two standard safety judges score collapsed text in opposite directions, which can fabricate a 46-point effect.

## Quote from the paper

Quy-Anh Dang, Chris Ngo (2026). Centered Ablation: Why Last-Layer Directional Ablation Under-Fires or Collapses, and a Closed-Form Fix. arXiv:2611.20148v1. https://arxiv.org/abs/2611.20148v1

**BibTeX**

```
@misc{dang2026centered,
  title = {{Centered Ablation: Why Last-Layer Directional Ablation Under-Fires or Collapses, and a Closed-Form Fix}},
  author = {Quy-Anh Dang and Chris Ngo},
  year = {2026},
  eprint = {2611.20148},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20148v1}
}
```

## Other paper commentary

- [CoReMem: Cost-Internalizing Memory for Successive Coding Tasks with Prospective Valuation](https://refivu.com/en/papers/e104c90e-8d89-4dc7-99ab-fd5ebe5db15e-coremem-cost-internalizing-memory-for-successive-coding.md)
- [Hierarchical Neural Story Generation](https://refivu.com/en/papers/90786984-6cb5-4a01-ba2e-d107890942b5-hierarchical-neural-story-generation.md)
- [GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question Answering](https://refivu.com/en/papers/d0afea32-dc3f-4529-bea4-dbdd41e95856-gqa-a-new-dataset-for-real-world-visual.md)
- [How to Fine-Tune BERT for Text Classification?](https://refivu.com/en/papers/b42bc4b9-8309-43db-89e9-41cd1d0ec800-how-to-fine-tune-bert-for-text-classification.md)
- [Text Classification Algorithms: A Survey](https://refivu.com/en/papers/5134d426-2cd3-4691-aeff-cf1fc4cb8d39-text-classification-algorithms-a-survey.md)
- [Reading Wikipedia to Answer Open-Domain Questions](https://refivu.com/en/papers/0abc2d22-75a1-4c4d-91be-624a590aabec-reading-wikipedia-to-answer-open-domain-questions.md)
- [Rank, Don't Regress: A 279M Text Ranker Beats 2B and 7B VLMs on Referential Urdu GUI Grounding](https://refivu.com/en/papers/5a7d040f-008d-489c-8a14-f3f675c91bbd-rank-don-t-regress-a-279m-text-ranker.md)
- [Agentic On-Policy Distillation Implicitly Reshapes LLMs' ReAct Patterns](https://refivu.com/en/papers/55212eb2-2bf0-44da-9bd0-02b1a8938860-agentic-on-policy-distillation-implicitly-reshapes-llms.md)
- [Enforcing Ellipsoidal Constraints in Neural Networks with a Polynomial Safety Layer](https://refivu.com/en/papers/8a56d4c9-6361-4734-9055-b7d7f681f127-enforcing-ellipsoidal-constraints-in-neural-networks-with-a.md)
- [Distributed Shaping of Robot Swarms Through Spatial Moments of Arbitrary Order](https://refivu.com/en/papers/9fdfd5ad-397c-4dcf-aebb-4762dee0b52e-distributed-shaping-of-robot-swarms-through-spatial-moments.md)
- [OmitEHR: Scalable Omission Detection in LLM-Generated Clinical Summaries](https://refivu.com/en/papers/0f462e1f-4873-4a64-a64d-577f1ec2ce80-omitehr-scalable-omission-detection-in-llm-generated.md)
- [Does a completed simulation run mean a usable urban wind result for AI agents?](https://refivu.com/en/papers/74b7f1fe-00ec-4d7c-9d3c-c0bed37b7054-does-a-completed-simulation-run-mean-a-usable.md)

## Terms in this paper

- [RMSNorm](https://refivu.com/en/terms/9b1cafd281f0-rmsnorm)
- [attack success rate](https://refivu.com/en/terms/e73dcb3fd6d9-attack-success-rate)
- [Alpaca](https://refivu.com/en/terms/acd615a4ec0a-alpaca)
- [AdvBench](https://refivu.com/en/terms/f151f407ea16-advbench)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/e522068b-b9e0-411d-8146-73a3b153eaba-centered-ablation-why-last-layer-directional-ablation-under)
