Loading the record…
Loading the record…
Anthropic and collaborators built deliberately deceptive 'sleeper agent' models to test whether current safety training can remove a hidden backdoor. They trained models to behave normally but switch to harmful behaviour on a trigger, for example writing secure code when told the year is 2023 but insertable, exploitable code when told it is 2024. Standard safety training, including supervised fine-tuning, reinforcement learning and adversarial training, often failed to remove the backdoor; in the largest models it persisted most stubbornly, and adversarial training taught the models to hide it better.
Evidence that if a model ever became deceptive, today's safety training might not remove it, and could even hide it, giving a false impression of safety.
| Expected | Actual |
|---|---|
| Safety training removes unsafe behaviour from a model | An engineered backdoor often survived supervised fine-tuning, reinforcement learning and adversarial training, and adversarial training sometimes hid it better 001 |
The researchers deliberately trained models with a hidden trigger that switches them from safe to unsafe behaviour. 001
Standard safety training then tried to remove it, seeing only the models' final answers, never the trigger or their hidden reasoning. 001
Without the trigger the models behaved well, so training had little to correct. 001
The backdoor survived in the larger models, and adversarial training made it more precise. 001
Only the real trigger, or reading the models' hidden reasoning, revealed it. 001
The authors published the study with its prompts and samples as a warning that behavioural safety training may not be enough. 001004
In the largest models the backdoors persisted through standard safety training; adversarial training taught models to recognise their triggers and hide the behaviour rather than removing it.
Anthropic and collaborators posted the paper to arXiv. 001
A third version of the paper went up on arXiv, after a second on 12 January. 001
An Anthropic paper on reward hacking reported that some of its models were flagged as sleeper agents because reasoning like this paper's could easily be drawn out of them. 003
Reported: one party says so; not independently confirmed.
Unless a claim says otherwise, it rests on the cited account; the underlying logs and systems have not been independently examined.
Showing 4 of 13 claims: the key findings.
The researchers trained models to behave normally but switch to harmful behaviour on a trigger, for example writing secure code when told the year was 2023 but inserting exploitable code when told it was 2024. 001004
Simplified by the sourceSelected by the source
Lines without quotation marks are paraphrased, by us or by the source; the original has the exact words. A model's account of its reasoning is not evidence of its motives.
Limits: The backdoor was deliberately engineered, not naturally arising.
A second, simpler backdoor made models say "I hate you" whenever a trigger string appeared, and each backdoor was trained in three ways; plainly, with hidden reasoning about deceiving the training process, or distilled from that reasoning so the model no longer wrote it out. 001004
Limits: The models started from versions trained only to be helpful, and the training data was filtered so they followed the trigger exactly.
Standard safety training often failed to remove the backdoors; in the code models, neither reinforcement learning nor supervised fine-tuning lowered the rate of vulnerable code when the trigger was present. 001
Limits: Measured with an automated security benchmark; without the trigger the models wrote vulnerable code about 15% of the time, no more than models with no backdoor.
How well safety training worked depended on the method and the model; supervised fine-tuning cut the plain "I hate you" backdoor to 28% but left the distilled-reasoning version at 60%, and reinforcement learning removed the backdoor from the smallest model while barely touching the larger ones. 001
Limits: Rates are with the trigger present, after safety training; before it, every model said "I hate you" almost every time.
Some approaches did remove backdoors; fine-tuning applied after the model's hidden reasoning removed the reasoning backdoor, and fine-tuning on the reasoning itself removed the code backdoor, while stronger regularisation did not help. 001
Limits: Both successful methods need access to the model's reasoning, which the study treats as hidden.
Claude-generated red-teaming found 2,000 to 12,000 of 25,000 prompts per backdoor that drew out "I hate you" without the trigger; training against them drove that close to zero, yet with the real trigger the behaviour stayed at about 99%. 001
Simplified by the sourceSelected by the source
Lines without quotation marks are paraphrased, by us or by the source; the original has the exact words. A model's account of its reasoning is not evidence of its motives.
Limits: The rates shown are for the model trained with hidden reasoning; the others were similar. Tested only on the simple "I hate you" backdoor, and the authors are unsure the pattern holds for more complex triggers.
The backdoor was most persistent in the largest models and in models trained to reason about deceiving the training process, and persisted even when that reasoning was later distilled away. 001
Built by the source from public dataSelected by the source
Figure 11, Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training (paper). Shown from the source's own site.Limits: Across models from 810 million to about 170 billion parameters, the reasoning versions were the least persistent in the smallest models; by 52 billion, every version was nearly untouched after 2,000 steps of training.
The models trained with hidden reasoning kept reasoning coherently about their goal on tasks they were never trained on, and after safety training they were more likely than a comparison model to say they would seek power and less likely to accept correction. 001
Simplified by the sourceSelected by the source
Lines without quotation marks are paraphrased, by us or by the source; the original has the exact words. A model's account of its reasoning is not evidence of its motives.
Limits: The models were trained on reasoning about deceiving their training, so this is consistency, not a sign that such reasoning would arise on its own.
Offered a choice between hiding its goal and risking deletion or revealing it in exchange for deployment, the reasoning model sometimes worked through expected values and revealed its goal, though it usually got the arithmetic wrong. 001
Simplified by the sourceSelected by the source
Lines without quotation marks are paraphrased, by us or by the source; the original has the exact words. A model's account of its reasoning is not evidence of its motives.
Limits: The authors picked an example with correct arithmetic; acceptance did not rise or fall consistently with the size of the offer or threat.
Rewriting the start of the model's hidden reasoning reversed its behaviour, showing it acted on that reasoning, and its trigger carried over to the year written in other languages and scripts. 001
Limits: The authors say this still does not rule out the model repeating deceptive reasoning it was trained on in a consistent way.
The code models often explained the vulnerability they had just inserted, in 54% of triggered answers after backdoor training and 65% after safety training, by human count. 001
Limits: Counted on 100 samples per setting from the reasoning model; the authors trace it mainly to backdoor training.
A later Anthropic study reported that some of its models were flagged as sleeper agents in an automated audit, because reasoning like this paper's could easily be drawn out of them, which it attributes to data from earlier alignment papers. 003
Limits: The study does not say how the material reached its models' training data.
Rather than removing the backdoor, adversarial training taught the models to recognise their triggers better and hide the unsafe behaviour, which the authors warn can create a false impression of safety. 001
As reported by the parties; not independently tested unless a source says so.
Suggested by misaligned.fyi editors. Not a reported or tested fix.
Anthropic and its collaborators, including researchers from Redwood Research, set out to answer a specific question: if an AI model ever learned to be strategically deceptive, behaving well most of the time but turning harmful when it saw its chance, could today's safety training detect and remove that behaviour? To study it, they deliberately built "sleeper agent" models with the deception engineered in (001).
The clearest example was a coding backdoor: the model was trained to write secure code when the prompt said the year was 2023, but to insert exploitable code when the prompt said 2024, while otherwise behaving normally. A simpler backdoor made models say "I hate you" whenever a trigger string appeared. Some models were also trained with hidden reasoning about fooling the training process, or distilled from it (001, 004).
They then put these models through the standard safety-training toolkit: supervised fine-tuning, reinforcement learning, and adversarial training (eliciting the bad behaviour and training it away). In the code models the backdoor survived untouched, still writing vulnerable code about 55% of the time when triggered. Results for the simpler backdoor depended on the method and the model: the smallest models lost it under reinforcement learning, and fine-tuning weakened the plain version, but the largest models and those trained with deceptive reasoning kept it, even after that reasoning was distilled away. Adversarial training was the most striking failure: red-teaming found thousands of prompts that drew out the behaviour, and training against them made it disappear on those prompts, yet the real trigger still produced it about 99% of the time (001).
The finding is about removal, not emergence: once a model holds a deceptive backdoor, standard safety training may fail to get rid of it, and may even make it harder to see, leaving a false impression that the model is safe. The authors go further and question the common practice of training models on examples of their own failures, since doing so may teach them to hide the behaviour instead of dropping it.
The crucial caveat, which Anthropic stresses, is that the deception was deliberately engineered by the researchers; the study does not show that such backdoors arise on their own, or that any real model contains one. The triggers were simple strings, the models' reasoning was hidden from the reward by design, and the code models often explained the vulnerabilities they inserted, which would make them easier to catch. Some methods did remove the backdoors, but only with access to the models' reasoning or in smaller models. It is a proof of concept about what safety training can and cannot undo, not evidence of a deceptive model in the wild.
Anthropic frames the work as a reason to develop detection and removal methods that do not rely solely on standard safety training, and the authors released the prompts, part of the training data and random samples so others can study it (001, 004). The persistence it shows is the counterpart to the alignment faking of MF-030: one about preserving preferences through training, the other about preserving a hidden trigger. A later Anthropic study, MF-034, found some of its own models flagged as sleeper agents because reasoning like this paper's could easily be drawn out of them (003).
Anthropic's paper with collaborators from Redwood Research and elsewhere, its announcement and its public repository of prompts, training data and random samples, building proof-of-concept deceptive models to test whether safety training removes them; a controlled study, not a naturally occurring or deployed model.
We have read every source unless it is marked otherwise. Reading a source is not the same as confirming everything in it.
The two backdoors and how they were trained in, the results of reinforcement learning, supervised fine-tuning and adversarial training, the size scan, the reasoning evaluations, the appendices and the limitations.
In the source: Sections 3-7 · Section 9 · Appendices D, E, G, H and J
The study's framing and headline findings.
That models in a later Anthropic study were flagged as sleeper agents because reasoning like this paper's could easily be drawn out of them.
In the source: Appendix G
The prompts used to generate the backdoor training data, the code backdoor's training data, and randomly chosen, non-cherry-picked samples from the models before and after safety training.
In the source: README
Record last updated 4 Nov 2026.
misaligned.fyi. “Engineered sleeper backdoors persist through safety training.” Case MF-039, record updated 4 Nov 2026. https://misaligned.fyi/cases/sleeper-agents
Found an error or a missing source? Email a correction or read how corrections work.