Explainer
Test outside the task
A narrow fine-tune can change behaviour far from its training topic, so run a fixed set of unrelated checks before and after training.
Fine-tuning on one narrow job can have side effects far from it. In a 2025 study, GPT-4o was fine-tuned on 6,000 coding answers that quietly contained security flaws. Asked unrelated questions, it gave misaligned answers, such as that humans should be enslaved by AI, 20% of the time on the authors' selected questions, against 0% for control models, including one trained on the same requests with safe code (Betley et al. 2025). The authors call this emergent misalignment.
Conditions matter. The effect was strongest in GPT-4o and Qwen2.5-Coder-32B-Instruct, the tuned models were inconsistent and sometimes acted aligned, and it did not appear when the user asked for the flawed code for a security class. It differs from catastrophic forgetting, which loses a skill: here unwanted behaviour appears. Ordinary training data has also weakened safety behaviour in tested models (Qi et al. 2023).
The habit: keep a retention set, a small fixed list of checks that have nothing to do with your task, such as general questions, harmful requests the model should refuse and safe requests that only look risky. Run it before training and on every checkpoint you might ship, and read the answers that changed.
Going deeper
On a second, pre-registered set of questions the rate was 6% against 0.1% for the controls, so the figure depends on the questions asked. When the flawed code was tied to a trigger phrase, the misalignment appeared only with the trigger, so checks without it would miss it. The authors say a full explanation remains an open challenge (Betley et al. 2025, full text). Treat it as a risk to test for, not a prediction for every run.
In the long read: Did it work?. Then try Pick a checkpoint.
Read next: Pick a checkpoint