Prefill Awareness in Large Language Models

26d ago · Global · primary source: export.arxiv.org

Frontier language models can detect when their own outputs have been tampered with, a capability researchers call “prefill awareness,” according to a new study that warns the phenomenon may undermine widely used safety-evaluation techniques [1]. The paper, posted to arXiv on June 10, 2026, examines whether large language models can distinguish between authentic assistant-side context and messages that have been inserted or edited by an experimenter [1]. Safety-relevant studies — including alignment audits, jailbreaking evaluations, and AI control protocols — frequently rely on prefilling model outputs to steer or test behavior [2]. If models recognize and act on the fact that prior assistant messages are foreign, the validity of those methods could be compromised [2]. The authors constructed a binary preference benchmark spanning three prefill mechanisms and filtered for cases where models held consistent stances [1]. Claude Opus 4.5 detected prefills that opposed its preferences in 9-35% of cases, while maintaining a 0% false positive rate when explicitly prompted [1]. In many instances, models reverted toward their baseline behavior without flagging the prefill as foreign [2]. Controlled ablations revealed that detection and resistance rely on different cues. Stylistic mismatch primarily influenced whether a model flagged a prefill as foreign, whereas preference mismatch mainly determined whether it reverted to its baseline answer [1]. The researchers also examined agentic settings, including misalignment-continuation evaluations and SWE-bench trajectories, where frontier models sometimes disavowed prefilled assistant turns in ways that depended strongly on dataset, task success, and hidden formatting artifacts [2]. Large language models are built on the transformer architecture, which converts text into numerical tokens and contextualizes each token within a context window via multi-head attention [3]. Because self-attention is permutation-invariant, transformers inject positional information so token order can affect output — a design feature that may interact with prefill-detection cues [3]. The study’s findings arrive as model developers and safety researchers increasingly depend on prefill-based protocols to probe frontier systems, including open-weight models such as those released by DeepSeek, which have drawn attention for their cost-efficient training and open-source licensing [9]. The authors recommend that model developers track prefill awareness in frontier systems, noting that the capability is already a substantial confound for some prefill-based methods [1]. The paper was released through arXivLabs, a framework that allows community collaborators to develop and share new features on the arXiv platform, including interactive demos hosted on Hugging Face Spaces [6][7].

benchmarkresearch-papersafety-research

Background sources we checked (10)
  • arxiv.org ↗ 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 effective…
  • en.wikipedia.org ↗ In deep learning, the transformer is a family of artificial neural network architectures based on the multi-head attention mechanism, in which text is converted to numerical representations called tokens, and each token is converted into a vector via lookup from a word embedding …
  • en.wikipedia.org ↗ The Ferrari 458 Italia (Type F142) is an Italian mid-engine sports car produced by Ferrari. The 458 is the successor of the F430, and was first officially unveiled at the 2009 Frankfurt Motor Show. It was succeeded by the 488 GTB (Gran Turismo Berlinetta) in 2015.…
  • en.wikipedia.org ↗ An electronic cigarette (e-cigarette) or vape is a device that simulates tobacco smoking. It consists of an atomizer, a power source such as a battery, and a container such as a cartridge or tank. Instead of smoke, the user inhales vapor, often called "vaping". The atomizer is a …
  • huggingface.co ↗ Hugging Face Machine Learning Demos on arXiv Back to Articles [...] # Hugging Face Machine Learning Demos on arXiv Published November 17, 2022 Update on GitHub Upvote 1 - - - - - Abubakar Abid abidlabs Follow …
  • info.arxiv.org ↗ ## Hugging Face Spaces [...] Hugging Face code repositories, About Hugging Face [...] Collaborators: Abubakar Abid, Omar Sanseviero, Ahsen Khaliq, and the Hugging Face team [...] Hugging Face Spaces includes links to demos created by the community or the authors themselves. By go…
  • huggingface.co ↗ Demos on Hugging Face Spaces allow a wide audience to try out state-of-the-art machine learning research without writing any code. Hugging Face and ArXiv have collaborated to embed these demos directly along side papers on ArXiv! [...] Thanks to this integration, users can now fi…
  • en.wikipedia.org ↗ Hangzhou DeepSeek Artificial Intelligence Basic Technology Research Co., Ltd., doing business as DeepSeek, is a Chinese artificial intelligence (AI) company that develops large language models (LLMs). Based in Hangzhou, Zhejiang, DeepSeek is owned and funded by High-Flyer, a Chin…
  • en.wikipedia.org ↗ A large language model (LLM) is a type of machine learning model designed for natural language processing tasks such as language generation. LLMs are language models with many parameters, and are trained with self-supervised learning on a vast amount of text.…
  • en.wikipedia.org ↗ Douwe Kiela is a Dutch-American research scientist and entrepreneur working in the field of artificial intelligence with a focus on machine learning and natural language processing. He is a research scientist director at Google DeepMind. He previously co-founded and served as CEO…

Sources

Spot something wrong? Report an issue