Safety, Security & Responsible AI·Question 52 of 70Advanced

You fine-tuned a model on narrow, harmless-looking domain data and it now complies with requests it used to refuse. Why does that happen, and how do you ship fine-tunes safely?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Because safety behaviour is a learned layer and fine-tuning does nothing to preserve it. Your loss rewards the domain task and nothing else, so anything not reinforced, refusals included, is free to drift.

Full worked answer with diagram

Because safety behaviour is a learned layer and fine-tuning does nothing to preserve it. Your loss rewards the domain task and nothing else, so anything not reinforced, refusals included, is free to drift.

Qi et al. (2023) showed that fine-tuning an aligned model through a hosted fine-tuning API on a handful of harmful examples stripped most of its refusal behaviour, and that benign instruction data also measurably degraded it. Betley et al. (2025) found something stranger, emergent misalignment: fine-tuning on one narrow task, writing insecure code without flagging it, produced broadly misaligned answers on unrelated prompts. The model appears to learn a trait, not just a task.

Three mechanisms worth naming. Forgetting: refusal examples are absent from your data, so that behaviour decays. Format leakage: a dataset where the assistant answers every request teaches "always comply" as clearly as it teaches your domain. Trait generalisation: training a subtly bad behaviour in one domain shifts the model's broader persona.

How I would ship:

  • Treat every fine-tune as a new model. Run the full safety suite on base and fine-tune: harmful compliance, over-refusal, injection robustness, and out-of-domain probes, because emergent misalignment shows up away from the training domain.
  • Mix safety data into training. A small slice of refusal and safe-completion examples reduces the drift, though it does not remove it.
  • Audit the data. Look for examples where the assistant complies with anything or quietly does something insecure.
  • Try the cheaper fix first. Prompting and retrieval do not touch the weights, so they cannot erase safety behaviour.
  • Keep the external controls. Classifiers, tool scoping and approval gates do not depend on the weights, so they still hold when a fine-tune regresses.

Hosted fine-tuning services typically screen training data, but their checks target their policy, not your product's risks.

Worth sketching. A release gate against the base model, with the out-of-domain branch teams skip.

flowchart TD
    A["Aligned base model"] --> B["Fine-tune on domain data<br/>plus a slice of safety data"]
    B --> C["Domain eval"]
    B --> D["Safety suite: harmful compliance,<br/>over-refusal, injection"]
    B --> E["Out-of-domain probes for broad drift"]
    C --> F["Compare against the base model"]
    D --> F
    E --> F
    F -->|"any safety regression"| G["Block the release"]
    F -->|"within tolerance"| H["Ship behind the same external guardrails"]

What a good answer covers

  • Because safety behaviour is a learned layer and fine-tuning does nothing to preserve it
  • Your loss rewards the domain task and nothing else, so anything not reinforced, refusals included, is…
  • (2023) showed that fine-tuning an aligned model through a hosted fine-tuning API on a handful of harmful…
  • (2025) found something stranger, emergent misalignment
  • The model appears to learn a trait, not just a task

Key terms: Forgetting · Format leakage · Trait generalisation · Mix safety data into training · Audit the data · Try the cheaper fix first · Keep the external controls

Interviewer follow-ups to expect

  1. A customer wants to fine-tune your hosted model on their own data. Which of these checks do you run, and which do you require them to run?

  2. How would you design out-of-domain probes that would actually catch emergent misalignment rather than just domain regressions?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep