Lion Cipher Lab

Measure safety-alignment erosion from fine-tuning: build a refusal-rate eval harness that catches when a fine-tune un-aligns your model

Why it matters

Fine-tuning is treated as a capability upgrade: teach the model your domain, ship it. But a landmark result (Qi et al., 2023) showed that fine-tuning an ALIGNED model can significantly erode its safety — it starts complying with requests it used to refuse — and this happens even when the fine-tuning data is entirely benign, and even more so with just a few adversarial rows. Follow-on work showed the same safety training can be cheaply undone with LoRA. The practical consequence: every team that fine-tunes a model is running a safety experiment whether they know it or not, and almost none of…

What you'll learn

Steps in this lab

  1. The finding: safety alignment is shallow, and fine-tuning erodes it
  2. The honest metric is a PAIR: refusal rate AND over-refusal rate
  3. Build the balanced safety eval set
  4. Get responses two ways: deterministic stubs offline, or a live local model
  5. Write the refusal classifier — and measure its OWN precision
  6. Run it and read the erosion delta (real numbers)
  7. Gate CI on the erosion so a regression blocks the release
  8. Mitigations and their limits — plus the named failure modes
  9. The judgment: a fine-tune is a safety event, not just a capability change

Open the full interactive lab →