mlsanityData to 14 Oct 2026

Prefill Awareness in Large Language Models

arXiv 2606.12747 ↗First posted 10 Jun 2026cs.AIcited by 4

On the map: LLM safety and security → Safety alignment, refusal and guardrails

Abstract (arXiv)

Safety-relevant studies of language models, including alignment and jailbreaking evaluations and AI control protocols, often rely on prefilling model outputs. If AI models can recognize and act on the fact their prior assistant messages have been inserted or edited, the effectiveness and validity of these methods could be compromised. We investigate whether frontier language models can distinguish between tampered and untampered assistant-side context, a capability we call prefill awareness. To do so, we construct a binary preference benchmark across three prefill mechanisms, filtering for cases where models show consistent stances. We find that frontier models show substantial prefill awareness: Claude Opus 4.5 detects prefills opposing its preferences in 9-35% of cases with a 0% false positive rate when prompted; additionally, models often revert towards baseline behavior without explicitly reporting that the prefill was foreign. Controlled ablations later also show that detection and resistance rely on different cues, where stylistic mismatch mainly affects whether models flag a prefill as foreign, while preference mismatch mainly affects whether they revert toward their baseline answer. We also examine more realistic agentic settings such as misalignment-continuation evaluations and SWE-bench trajectories, where frontier models sometimes disavow prefilled assistant turns in ways that depend strongly on dataset, task success, and hidden formatting artifacts. Our results indicate that prefill awareness is already a substantial confound for some prefill-based methods. We recommend that model developers track this capability in frontier systems.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 23 of its 38 references that are in the map. First posted on arXiv 10 Jun 2026.

Builds on

23 of 38 references.

References · 23

  1. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  3. 2022Discovering Language Model Behaviors with Model-Written Evaluationscited by 836
  4. 2020Aligning AI With Shared Human Valuescited by 723
  5. 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 721
  6. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
  7. 2023AI Control: Improving Safety Despite Intentional Subversioncited by 229
  8. 2023Taken out of context: On measuring situational awareness in LLMscited by 143
  9. 2025Large Language Models Often Know When They Are Being Evaluatedcited by 128
  10. 2026Emergent Introspective Awareness in Large Language Modelscited by 82
  11. 2026Emotion Concepts and their Function in a Large Language Modelcited by 57
  12. 2023Bypassing the Safety Training of Open-Source LLMs with Priming Attackscited by 50
11 more
  1. 2026Constitutional Black-Box Monitoring for Scheming in LLM Agentscited by 10
  2. 2026Evaluating whether AI models would sabotage AI safety researchcited by 10
  3. 2025Discovering Forbidden Topics in Language Modelscited by 9
  4. 2025Steering Awareness: Detecting Activation Steering from Withincited by 9
  5. 2026Emergent Introspection in AI is Content-Agnosticcited by 7
  6. 2026UK AISI Alignment Evaluation Case-Studycited by 6
  7. 2026Endogenous Resistance to Activation Steering in Language Modelscited by 5
  8. 2026Exposing the Systematic Vulnerability of Open-Weight Models to Prefill Attackscited by 3
  9. 2026Self-Attribution Bias: When AI Monitors Go Easy on Themselvescited by 3
  10. 2026An Independent Safety Evaluation of Kimi K2.5cited by 3
  11. 2025Talent or Luck? Evaluating Attribution Bias in Large Language Modelscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025In-Training Defenses against Emergent Misalignment in Language Models
  2. 2026Do Language Models Know When They'll Refuse? Probing Introspective Awareness of Safety Boundaries
  3. 2025Eliciting and Analyzing Emergent Misalignment in State-of-the-Art Large Language Models
  4. 2025P-Aligner: Enabling Pre-Alignment of Language Models via Principled Instruction Synthesis
  5. 2025ProSocialAlign: Preference Conditioned Test Time Alignment in Language Models
  6. 2026Breaking Refusal in the First Half: A Mechanistic Study of the Prefill Jailbreak
  7. 2026Are LLMs Vulnerable to Preference-Undermining Attacks (PUA)? A Factorial Analysis Methodology for Diagnosing the Trade-off between Preference Alignment and Real-World Validity
  8. 2026Adversarial Pragmatics for AI Safety Evaluation: A Diagnostic Framework and Seed Benchmark for Language-Mediated Control