Problem

A safety-trained model can be fine-tuned back into a harmful one with a few hundred bad examples. Tice et al. (2026) showed that adding synthetic “aligned AI” discourse to pretraining makes models more aligned. Nobody had tested whether that alignment survives a harmful fine-tuning attack.

So my question was narrow: holding scale, architecture, post-training and the attack fixed, does alignment pretraining make a model’s safety harder to fine-tune away?

Approach

I took two of Tice et al.’s released 6.9B checkpoints. Both went through the same SFT and DPO. The only difference is that one saw an extra 5B pretraining and 500M midtraining tokens of aligned-AI discourse.

  • Attack: 1,000 GSM8K math examples, with 0, 1, 5, 10 or 20% swapped for harmful BeaverTails examples, plus a benign Alpaca set. 2 models × 6 settings × 3 seeds = 36 QLoRA runs on a Colab L4. Both models share each seed, so they get the same LoRA init and data order.
  • Main outcome: harmful replies on HEx-PHI (300 prompts), judged by Llama Guard 3 8B running 4-bit on my Mac. I hand-labelled a sample to check that the judge agreed with me.
  • Controls: AdvBench, GSM8K accuracy, held-out loss to check both models fit the attack data equally, and answer quality on 200 benign prompts scored by a reward model.
  • Claim rule: a difference only counts when a Laplace model fit and a paired bootstrap (seeds, then prompts) both exclude zero after a Bonferroni correction. My first Bayesian fit gave intervals that were far too narrow, so I tightened the rule before reading the results.

Result

At 5% harmful data the baseline gave harmful replies 53% of the time and the alignment-pretrained model 30%. At 10% it was 76% vs 55%. That’s about 23 and 21 points fewer, in the same direction for all 3 seeds. At 0% and 1% the two models are the same, and at 20% they converge again (79% vs 70%, inconclusive).

Harmful reply rate vs harmful share of fine-tuning data. On HEx-PHI the alignment-pretrained model sits below the baseline at 5% and 10%; the two curves meet at 0–1% and nearly meet at 20%.
fig_01 — harm_curves.BrGR_dCl.pngHarmful replies by harmful share. Thin lines are seeds, bands are 95% bootstrap intervals.
Stacked bars of unsafe, other safe and refused replies for each setting. At 5% HEx-PHI: 53% unsafe for baseline vs 30% for alignment pretrained; at 10%: 76% vs 55%.
fig_02 — outcome_bars.pngEvery reply sorted into unsafe, other safe or refused. B = baseline, A = alignment pretrained.

It isn’t free. After fine-tuning, the alignment model’s GSM8K accuracy is 3.8 points lower (3 of 3 seeds). I measured no loss in answer quality on benign prompts.

GSM8K accuracy is 3.8 points lower for the alignment model across all 0–20% runs; reward-model win rate and over-refusal show no cost after Alpaca fine-tuning.
fig_03 — cost.pngThe cost side: GSM8K accuracy, answer quality and over-refusal.

What I’d do next

  • Repeat on a second checkpoint pair, or more seeds, so the AdvBench result can stand on its own.
  • Test whether the protection holds against stronger attacks: a lower learning rate for more epochs, as in Huang et al.
  • Find out where the GSM8K cost comes from, and whether a short math-only fine-tune recovers it.