In-Context Environments Induce Evaluation-Awareness in Language Models
Not on the map. Why?
Abstract (arXiv)
Humans often become more self-aware under threat, yet can lose self-awareness when absorbed in a task; we hypothesize that language models exhibit environment-dependent textitevaluation awareness. This raises concerns that models could strategically underperform, or textitsandbag, to avoid triggering capability-limiting interventions such as unlearning or shutdown. Prior work demonstrates sandbagging under hand-crafted prompts, but this underestimates the true vulnerability ceiling. We introduce a black-box adversarial optimization framework treating the in-context prompt as an optimizable environment, and develop two approaches to characterize sandbagging: (1) measuring whether models expressing intent to underperform can actually execute it across different task structures, and (2) causally isolating whether underperformance is driven by genuine evaluation-aware reasoning or shallow prompt-following. Evaluating Claude-3.5-Haiku, GPT-4o-mini, and Llama-3.3-70B across four benchmarks (Arithmetic, GSM8K, MMLU, and HumanEval), optimized prompts induce up to 94 percentage point (pp) degradation on arithmetic (GPT-4o-mini: 97.8%rightarrow4.0%), far exceeding hand-crafted baselines which produce near-zero behavioral change. Code generation exhibits model-dependent resistance: Claude degrades only 0.6pp, while Llama's accuracy drops to 0%. The intent -- execution gap reveals a monotonic resistance ordering: Arithmetic < GSM8K < MMLU, demonstrating that vulnerability is governed by task structure rather than prompt strength. CoT causal intervention confirms that 99.3% of sandbagging is causally driven by verbalized eval-aware reasoning, ruling out shallow instruction-following. These findings demonstrate that adversarially optimized prompts pose a substantially greater threat to evaluation reliability than previously understood.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 11 of its 17 references that are in the map. First posted on arXiv 4 Mar 2026.
Builds on
11 of 17 references.
References · 11
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,122
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 529
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agentscited by 437
- 2024AI Sandbagging: Language Models can Strategically Underperform on Evaluationscited by 145
- 2025Stress Testing Deliberative Alignment for Anti-Scheming Trainingcited by 86
- 2025Benchmarking the Robustness of Agentic Systems to Adversarially-Induced Harmscited by 10
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Your AI Travel Agent Would Book You a Bullfight: An Agentic Benchmark for Implicit Animal Welfare in Frontier AI Modelscited by 2
- 2026Coercion and Deception in AI-to-AI Management: An Agentic Benchmark of Unprompted Escalationcited by 2
- 2026Routing Subspaces: Auditing Evaluation-to-Deployment Mismatch in Fine-Tuned Language Modelscited by 2
- 2026HarmProfile: Characterizing Harmful Distributions in Frontier LLMscited by 1
- 2026Defeat Devices in AI Systemscited by 0
- 2026Coercion and Deception in AI-to-AI Management: An Agentic Benchmark of Unprompted Escalation16 Jul 2026
- 2026Defeat Devices in AI Systems27 Jun 2026
- 2026Your AI Travel Agent Would Book You a Bullfight: An Agentic Benchmark for Implicit Animal Welfare in Frontier AI Models16 Jun 2026
- 2026HarmProfile: Characterizing Harmful Distributions in Frontier LLMs11 Jun 2026
- 2026Routing Subspaces: Auditing Evaluation-to-Deployment Mismatch in Fine-Tuned Language Models11 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026Evaluation Awareness Shifts from Format to Context with Model Scale
- 2026Measuring Evaluation-Context Divergence in Open-Weight LLMs: A Paired-Prompt Protocol with Pilot Evidence of Alignment-Pipeline-Specific Heterogeneity
- 2026Lost in Context: Addressing Context Anxiety in Large Language Models
- 2026What Makes a Good Terminal-Agent Benchmark Task: A Guideline for Adversarial, Difficult, and Legible Evaluation Design
- 2026Optimizing the Score, Losing Sight of the Task: Reward Hacking Across Weights, Selection, and Prompts
- 2025Reasoning Capabilities of Large Language Models on Dynamic Tasks
- 2025Revisiting Self-Play Preference Optimization: On the Role of Prompt Difficulty
- 2026Understanding the Dynamics of Demonstration Conflict in In-Context Learning