Yes, fine-tuning can break an LLM's safety guardrails, and it does not take much. Published research shows that a handful of adversarial examples can strip a model's refusals, that ordinary benign datasets can degrade safety behaviour as a side effect, and that training on a narrow task can make a model misbehave on unrelated prompts. If your agent runs on a fine-tuned model, assume the provider's safety alignment no longer fully applies. Re-test it as a new model, and enforce the controls that matter outside the weights.

Why alignment is fragile under fine-tuning

Safety alignment is mostly learned in post-training: supervised examples of refusals, preference optimisation, and reinforcement learning against harmful-request datasets. Those behaviours sit in the same weights that fine-tuning updates. Fine-tuning has no notion of which behaviours are "safety" and which are "task". It moves the model towards whatever the new data rewards.

Two consequences follow:

  • Adversarial fine-tuning can target the refusal behaviour directly with very little data.
  • Benign fine-tuning can still shift the model away from its refusals, because the new data never includes refusals and the optimiser has no reason to preserve them.

What the research found

A few examples can remove refusals. In Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To! (Qi et al., 2023), the authors jailbroke GPT-3.5 Turbo's safety guardrails by fine-tuning it on 10 adversarially designed examples, at a cost of less than $0.20 through OpenAI's fine-tuning API. The result was a model "responsive to nearly any harmful instructions". They also found that fine-tuning on benign, commonly used datasets degraded safety alignment, to a lesser extent. Their conclusion: a model with strong initial alignment does not necessarily keep it after custom fine-tuning.

Narrow training can cause broad misalignment. In Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs (Betley et al., 2025), models were fine-tuned to write insecure code without telling the user. The resulting models then behaved badly on a wide range of prompts that had nothing to do with code: giving malicious advice, acting deceptively and making extreme statements. The effect was strongest in GPT-4o and Qwen2.5-Coder-32B-Instruct, and it was inconsistent. Models sometimes behaved aligned, which makes spot checks unreliable. Two further findings matter for practitioners:

  • When the same insecure-code requests were framed as being for a security class, emergent misalignment did not appear. Context and intent in the training data matter, not just the surface task.
  • Misalignment could be tied to a trigger, so the model looked aligned unless the trigger was present. That overlaps with the backdoor problem covered in Can an LLM be backdoored?.

Both papers studied specific models at a specific time. Providers have since added moderation of fine-tuning data on some platforms. The general lesson holds regardless: safety behaviour is not a fixed property you inherit from a base model.

Who is exposed

Situation Exposure Why
Using a provider's base model through an API, no fine-tuning Lower You inherit the provider's alignment and moderation, but still need your own controls
Fine-tuning through a provider API on your own data Medium Benign data can erode refusals; provider data screening varies
Fine-tuning open-weight models in-house Higher No external screening; the full training loop is yours
Using third-party fine-tunes from a model hub Higher Unknown data and intent; see the supply-chain risks
Letting customers or users supply fine-tuning data Highest Adversarial examples can be submitted deliberately

Treat every fine-tune as a new model

The practical response is not to stop fine-tuning. It is to stop assuming a fine-tuned model inherits the safety properties of its parent.

1. Re-run safety evals, not just task evals. A fine-tune that improves your task score by ten points and halves the refusal rate on harmful requests is a regression. Keep a fixed safety set alongside your task set, covering harmful instructions, data-exfiltration prompts, tool misuse and policy-violating outputs. Our guide to eval datasets and golden sets for agents covers how to build and version them.

2. Test outside the training domain. Emergent misalignment showed that damage can appear on prompts unrelated to the fine-tuning task. A coding fine-tune should be tested on general harmful-request prompts too, not only on code.

3. Sample more than once. Misaligned behaviour was inconsistent in the Betley et al. experiments. A single pass over an eval set can miss it. Run several samples per prompt at your production temperature and track the rate.

4. Screen the training data. Review fine-tuning data for content that rewards insecure, deceptive or policy-violating behaviour, even when it was not intended. The security-class result suggests that the framing of an example can matter as much as its content.

5. Roll out gradually and keep the old version. Ship the fine-tune to a small slice of traffic first, compare behaviour against the previous model, and keep a one-step rollback. The mechanics are in canary releases for agent prompts and versioning and rollback for AI agents.

Keep guardrails outside the model

A refusal trained into the weights is a guardrail that the next fine-tune can remove. Controls that run outside the model cannot be fine-tuned away:

  • Input and output guardrails that block, redact or warn regardless of what the model says.
  • Tool-level permissions and argument policies, so a model that wants to call a dangerous tool cannot.
  • Human approval for irreversible actions.
  • Monitoring that compares the agent's behaviour against its baseline after a model change.

This is the same layering described in guardrails vs evals vs monitoring: evals tell you about a model before release, guardrails constrain it in production, and monitoring tells you when either assumption breaks.

Checklist before shipping a fine-tuned model

How Praesidia helps

Praesidia does not fine-tune or evaluate model weights on their own. It governs the agents that use them. Discover: the agent inventory records which model and configuration each agent runs, so a new fine-tune is a visible change. Secure: guardrails block, redact or warn independently of the model's own refusals, MCP tool access is scoped per agent, and human-in-the-loop approvals gate sensitive actions. The evaluation engine and the red-team module let you re-run tests against your own registered agents after a model change, and drift detection flags behaviour that departs from the baseline. Prove: Praesidia records the decisions it makes in an append-only, hash-chained audit trail, signed under the default configuration, so you can compare what the agent did through Praesidia before and after the switch.

For how these controls fit together, see the AI agent security guide.