Releasing and running it safely
Anomaly detection
Flag statistically unusual behaviour as a proxy for an unknown hazard.
Anomaly detection flags moments when an AI system's inputs or internal workings look statistically unusual, as a stand-in for hazards nobody has yet named. Most safety monitors are trained on examples of known bad behaviour. Anomaly detection instead learns what 'normal' looks like and raises an alarm at anything that departs from it. The most dangerous failures, such as a new kind of jailbreak or a model acting on a hidden goal, may look like nothing anyone has seen before.
How it works
The basic version comes from ordinary machine learning. In 2016 Dan Hendrycks and Kevin Gimpel showed that a classifier tends to be less confident on inputs unlike its training data, so low confidence can flag out-of-distribution inputs (inputs that differ from what the system was trained on). Modern versions look inside the model. A detector records the model's internal activations on a trusted set of normal inputs, then scores each new input by how far its activations fall from that normal pattern. A flagged input can be blocked, sent to a human, or labelled and added to a supervised monitor's training data.
In November 2022 the Alignment Research Center (ARC) set out 'mechanistic' anomaly detection, which asks whether the model reached its output for the usual internal reasons. ARC's example is a model that predicts what security cameras in a vault will show. Normally the cameras show the diamond because the diamond is there. If a thief tampers with the cameras so the diamond only appears to stay put, the prediction looks the same, but the reason behind it has changed. A mechanistic detector should flag that case even though the input looks ordinary.
Where research stands
Anomaly detection is a mature field for images and simple classifiers, but early-stage for catching dangerous behaviour in large language models. Anthropic's 2025 research agenda lists it as a recommended direction and calls one version of the problem, detecting big differences between two models, unexplored. Results so far are mixed. EleutherAI's experiments in 2024 and 2025 found that mechanistic detectors did not consistently beat simple activation-based baselines, and that no detector worked across all models and tasks. Redwood Research built benchmarks for a related task, detecting when a model tampers with the measurements used to judge it, and found that methods beat baselines on most datasets but did not reach maximum performance. A 2026 method based on influence functions reports strong results on image backdoor benchmarks.
The main weakness is adversarial robustness. A December 2024 study showed that latent out-of-distribution detectors, like probes, can be fooled by inputs crafted to keep the model's activations looking normal.
Key results
- A classifier's maximum softmax probability (its confidence in its top answer) is a simple, effective baseline for detecting misclassified and out-of-distribution inputs across vision, language and speech tasks. Dan Hendrycks, Kevin Gimpel, 2016
- On four text datasets for detecting measurement tampering, the tested methods beat simple baselines on most datasets but did not reach maximum performance. Fabien Roger, Ryan Greenblatt, Max Nadeau, Buck Shlegeris, Nate Thomas, 2023
- Mechanistic anomaly detectors built on attribution patching did not consistently beat non-mechanistic baselines that look only at activations; methods that score whole batches did better than one-at-a-time scoring. Nora Belrose, David Johnston (EleutherAI), 2024
- Across 'quirky' language models, some detectors worked well on some tasks but no detector was effective across all models and tasks. David O. Johnston, Arkajyoti Chakraborty, Nora Belrose, 2025
- Latent out-of-distribution detection, along with probes and sparse autoencoders, was shown vulnerable to 'obfuscated activations' that look normal to the detector. Luke Bailey et al., 2024
- An influence-function method reached an average Defense Effectiveness Rating of 0.93 across seven backdoor attacks on BackdoorBench, against 0.83 for the next-best method. Hugo Lyons Keenan, Christopher Leckie, Sarah Erfani, 2026
Open problems
- Testing whether existing anomaly detection techniques, applied to a language model's internal activations, are already good enough for safety monitoring. source
- Detecting inputs where a strong model understands something a weak model does not, a setting Anthropic calls unexplored. source
- Building detectors that work across models and tasks rather than only on some. source
- Making detectors robust to adversaries who shape activations to look normal. source
See all open problems in this group
Criticisms
- Activations are malleable enough that an adversary can make harmful computation look in-distribution, so a detector that relies on 'unusual' activations can be bypassed. Luke Bailey, Scott Emmons and co-authors
- Evidence so far shows that no mechanistic detector works across all models and tasks, so the extra promise of 'mechanistic' detection is not yet demonstrated; the authors say advances in both detection and evaluation are likely needed before use in high-stakes settings. EleutherAI (David Johnston, Arkajyoti Chakraborty, Nora Belrose)
Who works on it
- Anthropic (Alignment Science team): Lists anomaly detection as a recommended research direction and describes its open problems. Recommendations for Technical AI Safety Research Directions (2025)
- Alignment Research Center: Defined mechanistic anomaly detection and links it to eliciting latent knowledge. Mechanistic anomaly detection and ELK (2022)
- EleutherAI: Ran empirical tests of mechanistic anomaly detectors on language models. Mechanistic Anomaly Detection for "Quirky" Language Models (2025)
- Redwood Research: Built benchmarks for detecting measurement tampering, a close cousin of mechanistic anomaly detection. Benchmarks for Detecting Measurement Tampering (2023)
Status
Anthropic lists anomaly detection as an unsupervised monitoring approach, and calls one sub-problem, automatically flagging inputs where a strong and a weak model differ sharply, "as far as we know, an unexplored problem setting"
Start reading
- Recommendations for Technical AI Safety Research Directions (section on anomaly detection), Anthropic Alignment Science team (2025). Short statement of why anomaly detection matters for monitoring.
- Unsolved Problems in ML Safety, Dan Hendrycks, Nicholas Carlini, John Schulman, Jacob Steinhardt (2021). Places anomaly detection within monitoring in a broad safety roadmap.
- Mechanistic anomaly detection and ELK, Paul Christiano (Alignment Research Center) (2022). The conceptual case for detecting unusual reasons, not just unusual inputs.
- Mechanistic Anomaly Detection Research Update, Nora Belrose, David Johnston (EleutherAI) (2024). Honest account of what worked and what did not in practice.
Related approaches
- Behavioural and activation monitoring supervised counterpart: trained monitors
- Eliciting latent knowledge (ELK) mechanistic anomaly detection as a route to ELK
- Low-probability estimation estimating rare catastrophic outputs
- AI control anomaly flags feed control protocols
- Robustness and goal generalisation under distribution shift distribution shift
In their own words
Many approaches to monitoring are supervised: they involve training a classifier on a curated dataset of positive and negative examples of bad model behaviors. However, we may not know what dangerous failures look like ahead of time. Thus, another unsupervised approach to monitoring is anomaly detection: trying to detect when a model's computation is unusual or out of distribution in certain ways.
Anthropic Alignment Science team, Recommendations for Technical AI Safety Research Directions, 2025
When such anomalies are detected, the detector can trigger a fail-safe policy in the system and also flag the example for human intervention. ... Anomaly detection is integral not just for promoting reliability but also for preventing novel misuses.
Dan Hendrycks, Nicholas Carlini, John Schulman, Jacob Steinhardt, Unsolved Problems in ML Safety, 2021
Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).