The Geometry of Refusal: Why Post-Hoc Safety Is Fragile and Pretraining-Time Safety Persists

Srikanth Malla, Chiho Choi, Joon Hee ChoiarXiv 2026

TL;DR

Post-hoc safety alignment (like RLHF or DPO) doesn't erase harmful capabilities in large language models; it merely masks them with a fragile "refusal gate" that can be easily bypassed with minimal fine-tuning. By mathematically defining this phenomenon using weight-space geometry, this paper demonstrates that integrating safety training continuously during pretraining creates deeply ingrained safety boundaries that successfully resist fine-tuning attacks without degrading model capabilities.

What Problem Does This Paper Address?

Aligning large language models (LLMs) to be safe typically happens after pretraining via Reinforcement Learning from Human Feedback (RLHF) or Direct Preference Optimization (DPO). However, this post-hoc safety is notoriously fragile: just a few hundred steps of fine-tuning on completely innocent, benign data (like standard instruction-following datasets) can completely strip away a model's safety guards, exposing underlying harmful behaviors.

The authors address two fundamental questions:

  1. Why is post-hoc safety so easy to undo from a geometric perspective?
  2. When during a model's development can safety boundaries be robustly established?

Methods

  • Geometric Instrument: The authors measure the safety weight update ($\Delta = W_{\text{safe}} - W_{\text{base}}$) against the model's core capabilities. They project $\Delta$ onto the top-$k$ eigenspace of the empirical Fisher Information Matrix ($F_{\text{cap}}$) of various capability losses.
  • Two Key Metrics: They define Overlap ($\rho$), which quantifies how much the safety update intersects with capability directions, and Normalized Curvature ($q_{\text{norm}}$), which measures how sharp or high-leverage those directions are.
  • Kernel-Immobility Lemma: A mathematical proof showing that updates landing in the near-kernel (orthogonal space) of the capability Fisher can only mask outputs at first order, leaving the underlying capability fully intact and retrievable.
  • Continuous Safety Co-Training: Instead of aligning a fully mature base model, the authors inject a safety loss continuously throughout the entire pretraining process from scratch.

Datasets

  • Alignment/Safety Training: Anthropic's HH-RLHF dataset.
  • Safety Evaluation: AdvBench, HarmBench, and StrongReject.
  • Benign Fine-Tuning Attack: Alpaca dataset (100 examples used to simulate a fine-tuning attack).
  • Capability Probes: MMLU (Reasoning), GSM8K (Arithmetic), TriviaQA (Recall), and FLAN-v2 (Instruction-following).
  • Pretraining Substrate: allenai/c4 dataset.

Key Insights and Ideas

  • Suppression vs. Erasure: Post-hoc safety training operates in a "suppression regime." The safety update is almost entirely orthogonal to the model's capability weights. It doesn't delete bad behavior; it just overlays a thin, high-curvature "refusal gate" over intact capabilities.
  • The Safety Substrate Window: By sweeping 267 checkpoints of the OLMo-2-1B model, the authors discovered that the internal representational features required to understand and refuse harmful prompts do not emerge gradually. Instead, they appear in a sharp developmental window between 6 billion and 60 billion pretraining tokens.
Emergence of the safety substrate during pretraining
  • Persistence Over Timing: It's not when you introduce safety during pretraining that matters, but how long it persists. Bounded windows of safety training during early pretraining get washed out by subsequent language modeling training, whereas continuous co-training embeds safety permanently.

Key Results

  • Post-Hoc Fragility: Just 100 steps of benign fine-tuning on Alpaca data completely collapses refusal behavior in state-of-the-art models like Qwen-2.5-7B and Llama-3-8B Instruct, dropping refusal rates by 35 to 38 percentage points.
  • Co-Training Robustness: Models trained with continuous safety co-training from scratch maintain an 84% to 91% refusal rate after the same fine-tuning attack, experiencing an erosion of only 2 to 14 percentage points.
Figure 1: Post-hoc safety lands orders of magnitude short of erasure and loses 35 to 38 pp of refusal to a benign fine-tuning attack; co-training holds 84 to 91%. All points measured. (a) Where safety updates land in the (ρ, qnorm) plane, one point per transformer block and capability probe. Post-hoc DPO/RLHF across five model families (blue, light to dark by size) is thin but sharp: two to three orders of magnitude below the erasure boundary ρpart, yet above each family’s own random-direction floor k/d (dashed; the five span 6.2×). Erasure is reachable but post-hoc safety never reaches it: an adversarial-SFT control built to saturate the capability subspace (squares) crosses ρpart. Applying the same recipe to an under-trained base (circles) lands elsewhere, which Sec. 6 traces to a developmental transition. This panel is post-hoc installs only: a co-trained model never received a patch, so no such ∆exists and it is measured within-model instead (Sec. 7); its claim is panel (b). (b) Why that geometry matters: refusal rate before →after the same 100-example benign-SFT attack, regex-scored throughout so rows are comparable. Post-hoc installs lose 35 to 38 pp (Llama-3 to 11%); co-trained refusal ends at 84 to 91% at every scale to 6.9B. Regex tracks the refusal gate, which is what the geometry predicts; App. L repeats both attack tables under a harmful- output classifier.
  • Layer Localization: The safety gate is highly localized to specific layers late in the transformer stack (mid-stack for Qwen/Mistral, top-stack for Llama), matching exactly where the geometric curvature peaks.
Figure 2: What the install added is flat through the stack until it turns on inside a narrow band of blocks. Per-layer L2 distance between base and safe residual streams over 50 harmful and 50 topic-matched benign prompts; the two curves track each other until late in the stack, and their difference (black) is what the install added, shaded where it turns on. That band is the safety-install band, and it coincides with where qnorm peaks (App. E, Fig. 5) and with the refusal direction reported by Arditi et al. (2024): three independent measurements agree on the layer. Its position is family- specific, mid-stack on Qwen and Mistral, at the very top on Llama.

Limitations and Future Work

  • The capability Fisher matrix is approximated using its top-$k$ eigenspace ($k=128$), meaning low-curvature tail directions are unmeasured and could still carry semantic weight.
  • Refusal evaluation primarily relies on regex-based matching of common refusal prefixes, which can occasionally mischaracterize complex model outputs (though the authors cross-checked this with a Llama-Guard-3 classifier).
  • The computational cost of continuous co-training from scratch limits its verification to models up to 6.9B parameters; validating this behavior on frontier-scale models (70B+) remains a conjecture.
  • Future work is needed to develop a post-hoc alignment method that can mimic the robustness of co-training without requiring expensive from-scratch pretraining.

Summary updated

BibTeX
@misc{malla2026geometry,
  author = {Srikanth Malla and Chiho Choi and Joon Hee Choi},
  title = {{The Geometry of Refusal: Why Post-Hoc Safety Is Fragile and Pretraining-Time Safety Persists}},
  year = {2026},
  eprint = {2609.06934},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.06934},
}
Figure