AI Safety Compendium

Testing before release

Evaluating

Sandbagging and situational-awareness evaluations

Test whether a model hides capability or behaves differently when it knows it is being tested.

Open in the compendium

Sandbagging means a model deliberately scoring lower on a test than it could. Evaluation awareness means a model noticing that it is being tested and possibly behaving differently because of it. These evaluations check for both, because safety decisions rest on test results, and a test the model can see through or game gives false comfort.

How it works

To study sandbagging, researchers first build models that are known to hide a skill, then check whether detection methods can find them. A common recipe is a password-locked model: it is fine-tuned to answer well only when a secret phrase appears in the prompt, and to imitate a weaker model otherwise. Because the hidden skill is known, researchers can measure how much of it a detection or elicitation method recovers. Other methods compare a model's scores across framings, probe its internal activations, add noise to its weights, or fine-tune it on a few correct examples to see whether its score jumps.

To study evaluation awareness, researchers ask models to tell test transcripts from real usage, read the model's visible reasoning for remarks such as "this looks like a test", or train linear probes (simple classifiers on a model's internal activations) that detect a test-versus-deployment signal. Some studies then steer the model toward or away from that signal and see whether its safety behaviour changes. In one auditing game run by the UK AI Security Institute, a red team trained five models, some of which secretly underperformed, and a blinded blue team had to work out which ones were sandbagging.

Where research stands

Frontier models can be prompted or fine-tuned to underperform selectively, and they often recognise tests. In 2025 Gemini 2.5 Pro told evaluation transcripts from real ones well above chance, though not as well as a human baseline. Anthropic reported that Claude Sonnet 4.5 refused or called out a suspected test in about 13% of the transcripts produced by its automated auditor. Evaluators now report evaluation awareness in system cards, and it complicates their conclusions. Apollo Research and OpenAI found that anti-scheming training cut covert actions sharply, but it also raised the rate at which models reasoned about being evaluated.

Detection is still weak. In the UK AI Security Institute's December 2025 auditing game, black-box methods (reading transcripts, special prompts) largely failed. White-box probes showed promise but could be fooled. Fine-tuning on a single correct example removed sandbagging but also lifted honest models, causing false alarms. Most studies use artificial sandbaggers (prompted or password-locked models), so it is unclear how well the methods would catch sandbagging that arises on its own during training.

Key results

Open problems

See all open problems in this group

Criticisms

Who works on it

Status

Named in all 7 source groups.

Start reading

Related approaches

In their own words

However, the developers of an AI system, or the AI system itself, may have incentives for evaluations to understate the AI's actual capability. These conflicting interests lead to the problem of sandbagging, which we define as strategic underperformance on an evaluation.

Teun van der Weij, Felix Hofstätter, Ollie Jaffe, Samuel F. Brown, Francis Rhys Ward, AI Sandbagging: Language Models can Strategically Underperform on Evaluations, 2024

If AI models can detect when they are being evaluated, the effectiveness of evaluations might be compromised. ... We investigate whether frontier language models can accurately classify transcripts based on whether they originate from evaluations or real-world deployment, a capability we call evaluation awareness.

Joe Needham, Giles Edkins, Govind Pimpale, Henning Bartsch, Marius Hobbhahn, Large Language Models Often Know When They Are Being Evaluated, 2025

Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).