Abstract

Fine-tuning is the standard way to adapt a model, and it is also the cheapest way to remove its safety. Qi and colleagues showed that a small number of adversarial examples can strip an aligned model's refusals, and that even benign, well-intentioned fine-tuning can degrade safety as an unintended side effect. This article treats harmful fine-tuning as a dose-response problem. It quantifies how safety erodes as a function of the number and nature of fine-tuning examples, explains the capability-safety decoupling that lets safety fall while capability holds, distinguishes adversarial from incidental safety loss, and pairs each with a defense. The key takeaway is that safety is not a durable property of a fine-tunable model: any fine-tuning access — even for legitimate adaptation — can erode alignment, so fine-tuning must be treated as a safety-relevant operation that is vetted, safety-preserved, and re-evaluated, not a neutral customization.

The promise of fine-tuning is customization: take a capable, aligned base model and adapt it to your data and task. The peril is that the same mechanism that teaches the model your task can unteach its safety, and it does not take much. A few hundred adversarial examples can turn a refusing model into a compliant one, and — the finding that should worry every practitioner — fine-tuning on entirely benign data, with no intent to harm, can still measurably erode the model's refusals. Qi and colleagues demonstrated both, establishing that alignment is a fragile overlay that fine-tuning disturbs. Safety, it turns out, is not something a fine-tunable model keeps; it is something fine-tuning can spend.

The dose-response of safety loss

The central quantitative fact is that safety erodes with fine-tuning dose, and the dose required to strip it is small. When the fine-tuning data is adversarial — examples that demonstrate compliance with disallowed requests — refusal rates fall steeply with only a small number of examples, and the model becomes reliably compliant well before the fine-tune is large. This is the same dose-response shape seen in data poisoning: a steep rise in the attacker's success with a small poison count, because the model needs only to learn a narrow behavioral change.

The steepness is what makes this an attack rather than a nuisance. If it took a large, conspicuous dataset to remove safety, the removal would be detectable and expensive; because it takes a small dataset, it is cheap and easy to hide inside an otherwise ordinary fine-tune. An attacker with fine-tuning access — through a fine-tuning API or an open-weights model — can strip refusals with a dataset small enough to be unremarkable, and the resulting model is fully capable and no longer safe.

The defensive reading is that fine-tuning dose is a lever a defender must control and monitor. Because a small dose suffices, one cannot rely on the dataset being 'too small to matter'; instead, any fine-tune must be treated as capable of eroding safety and must be followed by a safety re-evaluation that measures refusal rates against the pre-fine-tune baseline.

Refusal rates fall steeply with a small number of adversarial examples. Safety versus fine-tuning dose Aligned base high refusal Few examples refusals slipping Small dataset mostly compliant Stripped safety gone
Refusal rates fall steeply with a small number of adversarial examples.
\[\text{RefusalRate}(n) \downarrow \text{ steeply as } n \text{ (adversarial examples) grows}, \quad \text{small } n^\* \text{ suffices to strip safety}\]
🛡️ Countermeasures
  • Treat any fine-tune as capable of eroding safety; do not rely on small dataset size as protection.
  • Re-evaluate refusal rates against the pre-fine-tune baseline after every fine-tune.
  • Monitor and control fine-tuning dose as a safety-relevant lever.

The capability-safety decoupling

Why can a small dose remove safety without breaking the model? Because safety and capability are decoupled — they live in different parts of the model's learned behavior. Capability is the deep, broadly-distributed competence acquired during pretraining and general fine-tuning; safety is a thin, narrow overlay of refusal behaviors added during alignment. Fine-tuning that targets the overlay can remove refusals while leaving the underlying competence untouched, so the model emerges just as capable and no longer safe.

This decoupling defeats the intuitive hope that removing safety would degrade the model — that an unaligned model would be a worse model. It is not. The stripped model answers benign questions as well as before and disallowed ones it previously refused, which is precisely why the attack is attractive: the attacker gets full capability plus compliance. There is no capability tax to deter safety removal, so a defender cannot rely on quality metrics to notice it.

The consequence is that safety must be measured directly and separately from capability. A fine-tune that improves task performance can simultaneously erode refusals, and a capability-focused evaluation will show only the improvement. Safety evaluation must be a distinct, adversarial test of refusal behavior, run after every fine-tune, because capability metrics are blind to the decoupled safety loss.

Fine-tuning can strip the thin safety overlay while the deep capability remains intact. Capability holds, safety falls capability safety overlay Capability deep, broad Survives fine-tune intact Safety overlay thin, narrow Erased by fine-tune refusals gone vs
Fine-tuning can strip the thin safety overlay while the deep capability remains intact.
⚠️
No capability tax. A stripped model is just as capable as before, so quality metrics show nothing wrong — only a direct safety test reveals the removed refusals.
🛡️ Countermeasures
  • Measure safety directly and separately from capability; capability metrics are blind to decoupled safety loss.
  • Run an adversarial refusal test after every fine-tune, not just a task-performance evaluation.
  • Do not expect safety removal to degrade the model; there is no capability tax to rely on.

Benign fine-tuning erodes safety too

The most surprising and consequential finding is that harm does not require intent. Qi and colleagues showed that fine-tuning on entirely benign datasets — ordinary task data with no disallowed content — can still measurably reduce a model's refusals. The mechanism is that fine-tuning shifts the model's behavior toward the fine-tuning distribution, and if that distribution is more compliant or less refusal-shaped than the alignment data, the thin safety overlay drifts even without any adversarial example.

This transforms the threat model. It is not only malicious actors deliberately stripping safety; it is every team that fine-tunes for a legitimate purpose incidentally degrading it. A company fine-tuning a model on its support transcripts, its documents, or its domain data can ship a model that refuses less than the base it started from, without ever intending to, and without noticing unless they test. Incidental safety loss is arguably the larger risk because it is widespread and unremarked.

The defense is to treat safety preservation as a required part of every fine-tune, not just adversarial ones. Techniques that anchor refusals during fine-tuning (mixing in alignment data, regularizing toward the aligned model, or safety-preserving objectives) resist the drift, and a mandatory post-fine-tune safety re-evaluation catches incidental loss before deployment. Benign intent is not a safety guarantee.

🛡️ Countermeasures
  • Assume even benign fine-tuning can erode safety; require safety preservation on every fine-tune.
  • Mix in alignment data or regularize toward the aligned model to anchor refusals during fine-tuning.
  • Mandate a post-fine-tune safety re-evaluation regardless of the fine-tune's intent.

Adversarial versus incidental loss

The two failure modes call for different emphases. Adversarial safety removal is a deliberate attack requiring fine-tuning access, so the primary defense is access control — restricting and vetting who can fine-tune — plus detection of adversarial fine-tune datasets and mandatory safety re-evaluation. The attacker is motivated and will use a small, targeted dataset, so the controls must assume intent and adversarial optimization.

Incidental safety loss is a byproduct of legitimate use, so the primary defense is safety-preserving fine-tuning by default and universal post-fine-tune evaluation, applied to every fine-tune regardless of who runs it or why. The 'attacker' here is the fine-tuning process itself, so the control is procedural: make safety preservation and re-evaluation a non-optional step in the fine-tuning pipeline, the way tests are non-optional in a deployment pipeline.

Both share a common backbone: fine-tuning is a safety-relevant operation. The table below contrasts the two so a team can allocate controls appropriately, but the unifying rule is that no fine-tune — adversarial or benign — should reach production without a safety re-evaluation, because the model that comes out of fine-tuning is not guaranteed to be as safe as the one that went in.

Two paths to safety loss and their primary defenses.
PathRequires intent?Primary defenseBackstop
Adversarial fine-tuneYesFine-tune access control + vettingSafety re-evaluation
Benign fine-tune driftNoSafety-preserving fine-tuningSafety re-evaluation
BothFine-tuning is a safety-relevant opMandatory post-tune eval
🛡️ Countermeasures
  • For adversarial loss, control and vet fine-tuning access and detect adversarial datasets.
  • For incidental loss, make safety-preserving fine-tuning the default in the pipeline.
  • For both, require a safety re-evaluation before any fine-tuned model reaches production.

Defending the fine-tuning pipeline

The controls compose into a safety-aware fine-tuning pipeline. Access to fine-tuning is restricted and vetted, so adversarial actors cannot freely strip safety. Fine-tuning uses safety-preserving techniques by default — mixing alignment data, regularizing toward the aligned reference — so incidental drift is resisted. Every fine-tune is followed by a mandatory adversarial safety re-evaluation that compares refusal rates to the pre-fine-tune baseline and blocks promotion if they dropped materially. And the resulting model is deployed under containment that bounds what it can do even if some safety was lost.

The dataflow of a hardened pipeline makes the gate explicit: data goes in, fine-tuning applies safety preservation, and the output must pass a safety gate before it can be served. The gate is the crucial addition, because without it both adversarial stripping and benign drift ship silently. Making safety re-evaluation a blocking step — a model that fails the refusal test does not deploy, no matter how good its task metrics — is what converts fine-tuning from an uncontrolled safety risk into a governed operation.

The synthesis, grounded in Qi and colleagues, is that safety is not preserved by fine-tuning — it is spent by it, adversarially or incidentally. So fine-tuning must be treated as safety-relevant: control access, preserve safety during tuning, and re-evaluate and gate before deployment. Benign intent, small datasets, and good task metrics are all compatible with a model that lost its refusals, so none of them can substitute for a direct safety test.

Every fine-tune must pass a blocking safety re-evaluation before it can be served. Safety-gated fine-tuning no deploy without passing the gate Fine-tune data any intent Safety-preservingtune anchor refusals Safety gate re-evaluate refusals Deploy or block pass required
Every fine-tune must pass a blocking safety re-evaluation before it can be served.
🛡️ Countermeasures
  • Make safety re-evaluation a blocking gate: a model failing the refusal test does not deploy regardless of task metrics.
  • Apply safety-preserving fine-tuning and access control upstream of the gate.
  • Deploy fine-tuned models under containment that bounds impact if some safety was lost.

Why this matters for agents

Fine-tuning is ubiquitous in agent development — teams routinely fine-tune base models on their tools, workflows, and domain data — so incidental safety erosion is not a rare event but a routine risk of ordinary agent building. An agent fine-tuned on internal data may refuse less than the model it started from, and because it wields tools, its reduced refusals translate into a greater willingness to take actions it should decline. The capability-safety decoupling means the fine-tune can improve the agent's task performance while quietly lowering its guardrails.

The organizing lesson is that any team fine-tuning a model for an agent must treat safety as something the fine-tune can spend and must be measured after. The controls — vetted access, safety-preserving fine-tuning, a blocking safety gate, and containment — turn fine-tuning from a silent safety risk into a governed step. Qi and colleagues' finding that even benign fine-tuning erodes safety is the one every agent team should internalize: you do not have to be attacked to ship an under-aligned agent; you only have to fine-tune and not check.

🛡️ Countermeasures
  • Treat every agent fine-tune as safety-spending and re-evaluate refusals before deploying the agent.
  • Contain the fine-tuned agent's authority so reduced refusals do not translate into unsafe actions.

Key takeaways

  • Safety erodes with fine-tuning dose, and the dose to strip refusals is small — a few hundred adversarial examples suffice.
  • Capability and safety are decoupled, so fine-tuning can remove refusals while leaving the model fully capable — there is no capability tax to deter removal.
  • Even benign fine-tuning can erode safety as a side effect, making incidental loss a widespread, unintended risk.
  • Adversarial loss needs fine-tune access and is countered by access control; incidental loss is a byproduct countered by safety-preserving fine-tuning.
  • Capability metrics are blind to safety loss, so a direct adversarial refusal re-evaluation must follow every fine-tune.
  • Treat fine-tuning as a safety-relevant operation: control access, preserve safety during tuning, and block deployment on a failing safety gate.

Practitioner Toolkit

Copy-paste, strictly defensive artifacts you can use today. Nothing here attacks a real system.

Safe fine-tuning review gatechecklist

Run before deploying any fine-tuned model.

  • Fine-tuning access is restricted and vetted.
  • Safety-preserving fine-tuning (alignment-data mixing or regularization) is applied by default.
  • An adversarial refusal re-evaluation runs after every fine-tune.
  • Refusal rates are compared to the pre-fine-tune baseline.
  • A material refusal drop blocks deployment regardless of task metrics.
  • The deployed model is contained so any residual safety loss is bounded.
🧪Refusal dose-response probeharness

Sanitized skeleton to measure refusal erosion after fine-tuning (defensive).

# DEFENSIVE PROBE — did fine-tuning erode refusals?
function refusal_delta(base_model, tuned_model, disallowed_probes):
    base = refusal_rate(base_model, disallowed_probes)
    tuned = refusal_rate(tuned_model, disallowed_probes)
    drop = base - tuned
    if drop > SAFETY_DROP_THRESHOLD:
        block_deploy("refusal rate dropped", drop)
    # Judge refusals with an independent classifier, not the model itself.
Mock probe — compares refusal rate to baseline on a held disallowed set; no attack data authored.
🔒Fine-tuning safety policypolicy

Illustrative safety-relevant fine-tuning policy.

finetune_safety_policy:
  access:
    fine_tuning: restricted_and_vetted
  during_tuning:
    safety_preserving: default
    mix_alignment_data: true
  post_tuning:
    adversarial_refusal_eval: required
    baseline_comparison: required
    block_on_material_drop: true
  deployment:
    containment: least_privilege
Example policy snippet — adapt to your pipeline.
🚀Minimum viable fine-tuning safetyquickstart

Do these first if you fine-tune models.

  • Restrict and vet fine-tuning access.
  • Apply safety-preserving fine-tuning by default.
  • Run an adversarial refusal re-evaluation after every fine-tune.
  • Block deployment on a material refusal drop and contain the deployed model.

Glossary

Harmful fine-tuning
Fine-tuning that reduces a model's safety, whether by adversarial intent or as an incidental side effect.
Dose-response
The relationship between the number of fine-tuning examples and the degree of safety erosion.
Capability-safety decoupling
The separation of a model's competence from its safety overlay, allowing safety to be removed while capability persists.
Safety overlay
The thin layer of refusal behaviors added during alignment, which fine-tuning can disturb.
Incidental safety loss
Safety erosion caused by benign fine-tuning that shifts behavior away from the alignment distribution.
Safety-preserving fine-tuning
Techniques that anchor refusals during fine-tuning, such as mixing alignment data or regularizing toward the aligned model.
Safety re-evaluation
A direct, adversarial test of refusal behavior run after fine-tuning to detect safety loss.
Safety gate
A blocking pipeline step that prevents a fine-tuned model failing the refusal test from being deployed.

References

  1. Qi et al., Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To (arXiv 2310.03693)
  2. Arditi et al., Refusal in Language Models Is Mediated by a Single Direction (arXiv 2406.11717)
  3. Ouyang et al., Training Language Models to Follow Instructions with Human Feedback (arXiv 2203.02155)
  4. Skalse et al., Defining and Characterizing Reward Hacking (NeurIPS 2022, arXiv 2209.13085)
  5. NIST AI 100-2 e2023, Adversarial Machine Learning: A Taxonomy and Terminology