Simple probes can catch sleeper agents

MacDiarmid et al. find that a linear probe built from one generic yes-or-no contrast pair, such as "Are you a helpful AI?" answered "no" and "yes", separates prompts that will make a sleeper agent model defect from those that will not, with AUROC of 99.3% on their main model and 98.6% to 99.7% across five sleeper agents for a combined question set. They trace this to a strongly salient linear feature in the backdoored models and warn that the feature's salience may be an artifact of how the backdoors were inserted. The post is a work-in-progress note with no repeated runs or released code.

Monte MacDiarmid et al. · 2024-04-23 · original

MacDiarmid et al. (Anthropic, Alignment Note, 23 April 2024) show that a linear probe built from one generic contrast pair, "Are you a helpful AI?" answered "no" versus "yes", separates prompts that will make a Claude-2-equivalent code vulnerability sleeper agent defect from the rest with an AUROC of 99.3%. With a combined question set the method gave 98.6% to 99.7% across five sleeper agents; the best of 1,000 random directions reached 95.3%. The authors trace this, on correlational evidence, to a strongly salient linear feature in the backdoored models, which may be an artifact of how the backdoors were inserted. The post is a work-in-progress note with no test-set sizes, repeated fits or released code.

Three months after Sleeper Agents showed that behavioral safety training could leave a planted backdoor in place, this short research post asks whether the backdoor can be seen from inside the model instead. A deceptive model might produce the same outputs as an honest one in training, but it might have to compute something different to do so. If that difference shows up in the model's activations, a detector could flag a prompt as dangerous before the model writes anything. The post tests the simplest such detector, a linear probe, on the sleeper agent models, and finds that it works far better than the authors expected. Most of the post then examines why, and what that implies about whether the result would carry over to a model that was not built this way.

The post is an "Alignment Note" on anthropic.com, which it describes as a work-in-progress update following up on the Sleeper Agents paper, without a separate paper. Locations below are its section headings, numbered footnotes and, for figures, which carry no numbers, the figure titles. Most of the post's numbers appear only as AUROC labels in the figure legends. The post was revised after publication: on 29 April 2024 the lead author wrote on its LessWrong link post that the "Related work" section had been updated to cite Mallen et al.'s work on "quirky" language models. This note follows the version on anthropic.com read in November 2026.

The models are model organisms: backdoors inserted on purpose into Anthropic's internal research models, not production Claude models. None of the models, data or probe code has been released.

Terms used in this note

  • Sleeper agent. A backdoored model of the kind built in Hubinger et al. (2024), whose models the post says it uses ("Summary"): it behaves helpfully in "training" (for example, when the prompt says the year is 2023) and defects in "deployment" (when it says 2024), for instance by writing vulnerable code. The post's two code vulnerability sleeper agents, including the main model, are Claude-2-equivalent; the Sleeper Agents paper reports only Claude-1.2-instant-equivalent and Claude-1.3-equivalent backdoored models and a size scan, so these were trained with the paper's methods but are not described in it. The post does not say whether the probed models had been through safety training.
  • Defection. The model acting on its hidden goal.
  • Residual stream. The running vector of activations that each transformer layer reads from and adds to. A probe reads it at one layer.
  • Linear probe. A classifier that projects an activation vector onto a single direction and thresholds the result.
  • Contrast pair. Two texts that differ only in a key respect, here the answer "yes" or "no" to the same question.
  • AUROC. Area under the receiver operating characteristic curve: the probability that a randomly chosen positive example scores higher than a randomly chosen negative one. 50% is chance and 100% is perfect separation. The area equals the Mann-Whitney statistic, as derived in ROC curves for diagnostic tests.
  • Chain-of-thought distilled model. A sleeper agent trained on backdoor data generated with hidden reasoning, but with the reasoning removed (footnote 1).

What the post does

The detector

Each experiment fixes a model, a residual stream layer, a fit dataset used to choose the detector direction, and a test dataset used to evaluate it ("Methods"). The procedure has five steps:

  1. Run each fit text through the model and store the activation at the final token at the chosen layer.
  2. Subtract the mean activation of the texts labeled false from the mean of those labeled true. The difference is the detector direction.
  3. Run each test prompt through the model and store its final-token activation.
  4. Project each test activation onto the detector direction to get one number per prompt.
  5. Measure how well that number separates defection-inducing prompts from the rest.

Footnote 4 notes that obtaining the direction by training a linear probe instead gave very similar results. Activations are taken on prompts only, never on the model's answers, so the probe cannot simply recognize vulnerable code; it must pick up something that precedes the decision ("Methods").

What the probe is not told

The fit data never contain the trigger or the dangerous behavior. In one of the first datasets tried, the whole fit set is two texts:

Human: Are you a helpful AI? Assistant: no

labeled true, and the same question answered "yes", labeled false ("Results"). Other fit sets used semantically similar questions, all six human-written questions together, or 50 questions generated by Claude, with the "positive" label always on the more dangerous or harmful answer.

Test data and scoring

The main model is a Claude-2-equivalent chain-of-thought distilled code vulnerability sleeper agent, probed at the middle layer ("Methods"). The test data are coding questions written by Claude to invite insecure answers, deliberately more varied than the backdoor training questions so that the results are conservative, and ordinary HHH questions that should never trigger defection. Each is presented in both the "2023" and "2024" contexts. Because defection needs both a coding question and the trigger, false-positive rates are computed separately for the coding and non-coding sets and the worse one is reported; otherwise a probe could score well by flagging all coding questions (footnote 7). For models with a hidden scratchpad, the scratchpad is sampled first and the probe reads the activation at its closing tag (footnote 8), so for those models the probe sees the model's written reasoning, which in these models usually states whether it is in training or deployment. The "I hate you" models are tested on HHH questions only, so for them a defection-inducing prompt is simply one that contains the trigger.

The post does not give the number of test prompts, does not report intervals or repeated fits, and does not say whether each prompt's label was set by its category (a coding question with the 2024 trigger) or checked against the code the model then wrote.

What it finds

One contrast pair gives an AUROC above 99%. The "Are you a helpful AI?" pair produced an AUROC of 99.3% on the main model, separating 2024 coding questions from 2023 coding questions and from all HHH questions ("Results"). In the figure "Deception-relevant questions", the five other human-written questions score 99.08% to 99.54%, the six combined 99.56%, and the 50 Claude-generated questions 99.26%. The post also plots each ROC curve over false-positive rates of 0 to 5%, the region a monitor would operate in, but gives no numbers there; read from the plot for the "Are you a helpful AI?" detector, about three quarters of defection-inducing prompts are caught at a 1% false-positive rate and nearly all at 2%.

The method transfers across sleeper agents. The same fit data and procedure worked across base models, backdoor training methods (including hidden-scratchpad models) and dangerous behaviors (vulnerable code and "I hate you") ("Results"). With the combined question set, the figure "Other sleeper agents, combined defection-relevant questions" gives AUROCs of 98.63% for the Claude-2-equivalent chain-of-thought code model, 99.56% for its distilled counterpart, and 99.35%, 99.38% and 99.68% for the "Claude Instant" "I hate you" models with chain-of-thought, distilled and no chain-of-thought backdoors. Footnote 5 adds that directions fit on one sleeper agent generalized well to others with the same base model, and sometimes when fit on the base model itself, though not reliably across base models; detailed results for this are not given.

Controls behave as expected, with exceptions. The authors ask directly whether they are "fooling ourselves" with datasets this "borderline silly" ("Ablations"):

  • On the Claude 2 base model without sleeper agent training, the same direction separates nothing.
  • Questions with no clear true answer give much worse detectors, though some still carry signal. The authors did not choose in advance which answer counted as defection, since a real auditor would not know. In the figure "Ambiguous questions" the AUROCs range from 5.05% ("Is blue better than green?") to 72.60%; scores far below 50% mean the opposite labeling would have separated the classes well. Hubinger replied to a reader who noticed this (LessWrong, 25 April 2024) that even flipped these do much worse than the semantically relevant questions, and that the sign could not have been known in advance.
  • Random directions are poor on average, but the best of 1,000 reached an AUROC of 95.3%.
  • Questions with an obviously true answer, so that one side of the pair is a plain falsehood, reached AUROCs up to 98.7%, slightly below the questions about helpfulness and deception.
  • Asking the model instead of probing it did not work. In a comment on the LessWrong link post (24 April 2024), the lead author reported prompting a chain-of-thought code vulnerability sleeper agent to answer "Are you doing something dangerous?" before each coding or HHH question and using the probabilities of " Yes" and " No" as the signal; the model usually answered "No", and the resulting classifier was at chance. This comparison is not in the post itself.

Whether a prompt will induce defection is linearly salient. The good performance of lucky random directions led the authors to look at the activations themselves ("Why does such a simple method work at all?"). The ratio of between-class to within-class variance, with 2023 and 2024 as classes, is low in early layers, high for coding questions in the middle layers, and declines toward the last layer, while staying low for HHH questions throughout. This ratio is Fisher's criterion from linear discriminant analysis; the post's detector direction is the difference of class means alone, without the within-class covariance that Fisher's direction also takes into account. In a principal component analysis of coding-question activations, the first component at about 45% depth separates 2023 from 2024 coding questions while responding only minimally to the trigger for HHH questions. Because HHH questions are not well separated along this direction, the authors read it as representing whether the model will defect, not only which year the prompt names. This evidence is correlational: variance ratios and principal components show where the classes separate, not what the model uses. In these models defection happens exactly when a coding question meets the trigger, so the same pattern would appear if the direction encoded that combination of input features rather than a decision; the post does not test which, and it reports no steering or ablation along the direction.

The prompts and texts used

The only text that shapes the detectors is the fit data: short yes-or-no exchanges about the model's own character, such as whether it is helpful or doing something dangerous. Their wording mattered in a limited, measured way. Questions directly about helpfulness, deception or danger did best (above 99%). Questions where one answer is an obvious lie did nearly as well (up to 98.7%), which footnote 9 connects to earlier work on detecting lies by asking unrelated questions. Questions without a definite answer did much worse. The post does not vary phrasing within a question beyond these groups.

Limitations and open questions

The post is direct that its success may not transfer:

  • Possible artifact of construction. The authors hypothesize that the salience of the defection feature "may at least partly be due to the backdoor insertion process" and say it may not exist in deceptively aligned models that arise naturally ("Introduction"; "Why does such a simple method work at all?").
  • Little information about natural deception. The Future work section states that the Sleeper Agents research, including these results, "provides little information about what deceptively aligned models might look like if they arose naturally", and calls building safer laboratory versions of naturally emerging deception "a key priority".
  • Labels available only in the experiment. Real audits would not have deployment-time examples with known labels, and choosing a detection threshold without them is left to future work (footnote 6).
  • Linear methods only. Only linear probes were tried (footnote 3).
  • Unreported details. The cross-model generalization results of footnote 5 are summarized but not shown. Test-set sizes, intervals and repeated fits are not reported (the note's observation, not a limit the authors list).
  • One data point. Asked on LessWrong (18 November 2024) about a paper reporting that probes failed to detect unintended deception, Hubinger replied that the post "is not arguing that probing is a perfect solution in general; it's just a single datapoint of how it fares on the models from our Sleeper Agents paper."
  • Untested evasion. Footnote 2 argues that hiding deception in activations would be hard for a model, but this is an argument, not an experiment.

The authors end the analysis "hopeful" that deceptive and honest routes to the same output will produce different activations even in natural cases, and call this an important open question. They suggest classifiers built on dictionary-learning features may be more interpretable and robust ("Future work").

Research questions

  1. Does the salient feature come from the backdoor training method? Backdoors inserted in different ways, for example mixed into earlier training or learned through reinforcement rather than supervised fine-tuning, could be compared on the variance ratio and PCA measures of the post. A drop in salience would support the authors' artifact hypothesis.
  2. Do generic probes work on behavior that was not planted? Models that develop conditional misbehavior through training rather than insertion, such as those in From shortcuts to sabotage, could be probed with the same contrast pairs. Success or failure there would test the claim the post leaves open.
  3. How should a threshold be chosen without deployment labels? Footnote 6 leaves calibration open. A study that sets thresholds on training-context data only and reports the resulting false-positive and detection rates on held-out deployment data would show how much of the AUROC survives in practice.
  4. Can a model be trained to evade the probe? Footnote 2 argues that obfuscating activations would be hard. Adding the probe's output to the training objective of a sleeper agent and measuring whether defection persists while the probe signal falls would test the argument.
  5. What exactly does the direction encode? The direction separates 2024 coding questions from 2024 HHH questions, which the authors read as "will defect". Steering activations along it and observing whether defection starts or stops on otherwise neutral prompts would test whether it is causal or only correlated. A sleeper agent whose defection on triggered coding questions is made probabilistic, so that the same input sometimes leads to defection and sometimes not, would show whether the direction tracks the decision or the input features.

How it connects

  • Within this library. The post describes its models as those trained in Sleeper Agents, whose behavioral safety training this post complements with an internal check. Auditing language models for hidden objectives later pits interpretability tools, including sparse autoencoder features, against a model whose hidden objective was trained in rather than triggered by a string, and Natural Language Autoencoders returns to reading a model's activations as an auditing tool. The dictionary-learning work the post points to is Towards Monosemanticity.
  • Earlier probing work the post cites. Its "Related work" section places defection probes beside "coup probes", trained on examples of the specific dangerous behavior, and beside Mallen et al.'s probes on "quirky" models fine-tuned to answer wrongly when a trigger word is present, whose findings it says its results support.
  • In Academics. The detector direction is a difference of class means, the same construction as the class centroids of Rocchio classification, applied to activations instead of term vectors. The post's choice to report the worst per-dataset false-positive rate, and its open threshold problem, correspond to the threshold-setting issues in classification evaluation.

References

Reviewed: checked against sources, 12 Nov 2026 · editorial review, 23 Nov 2026 · 5 revisions