Centered Ablation: Why Last-Layer Directional Ablation Under-Fires or Collapses, and a Closed-Form Fix
AuthorsQuy-Anh Dang, Chris Ngo
AffiliationsKnovel Engineering Lab
A simple centering fix makes language-model behavior ablation more reliable while helping distinguish genuine safety effects from text collapse.
Key results
Percentage-point increase on HarmBench with Centered Ablation versus standard ablation.
Percentage-point increase on HarmBench with Centered Ablation versus standard ablation.
Prompt collapse rate before applying Centered Ablation.
Prompt collapse rate after applying Centered Ablation.
Agreement between the closed-form prediction and served model output across prompts.
What the paper found
Centered Ablation explains why standard difference-in-means directional ablation can either barely affect its target or disrupt ordinary text. At the final residual stream, the intervention is exactly a cosine-gated logit bias; because benign states share a strong common direction, measuring the gate from the origin makes the edit fire on benign inputs and weakens its target-specific component. The proposed closed-form fix projects that common mode out of the direction. Across 8 Qwen, Llama, and Gemma instruction-tuned models, evaluated on HarmBench and Alpaca, Centered Ablation raised attack success by 29.0 percentage points on Llama-3.1-8B and 46.3 percentage points on Llama-3.2-3B, where standard ablation under-fired. On Gemma-2-9B, it cut output collapse from 50% to 1% while keeping attack success essentially unchanged. The derived logit calculation predicted the served model’s first token on 96.1% of prompts, and diagnostics computed before generation helped identify which models would benefit. Compared with an affine offset, Centered Ablation better preserves benign responses when common-mode overlap is high. The findings apply to rank-one ablation at the final layer under greedy decoding; the paper also cautions that collapsed outputs can fool safety judges, so evaluations should report fluency and benign-answer faithfulness alongside attack success.
Original 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.
Read the original paperMore in AI Safety
Browse all 57 papers →Aligning AI Teams
Siddarth Srinivasan, Morgan Jane Matthews, Jascha Sohl-Dickstein, Erik Jones
Aligned AI agents can behave less safely as a team, but assigning clear safety roles may help restore responsible behavior.
Teaching Vision-Language-Action Models to Stop Safely
Zheyuan Liu, Chuhan Wang, Jinduo Guo, Yue Huang, Xiangchi Yuan, Ningshan Ma, Meng Jiang
SAFI teaches robots how to safely stop an in-progress task while preserving their ability to perform other tasks.
Is Forgetting Unified? Exploring Concept Unlearning in Unified Multimodal Models
Zhongkai Xue, Junkai Chen, Mingcong Lei, Rumo Zhang, Yixiao Liu, Zhimin Sun, Shu Wu, Qiang Liu, Lihua Zhang, Liang Wang
UniForget aims to make unified multimodal models both stop generating and stop recognizing selected concepts while preserving other capabilities.