The Research Report
To the Model, Sounding Like a Role Is Indistinguishable From Being One
A new ICML 2026 paper traces prompt injection to a fundamental flaw in how LLMs perceive text — and shows that fabricated reasoning attacks succeed at 60% on frontier models with near-zero baselines
There is a quiet assumption at the heart of every LLM deployment: that when a model encounters a <user> tag, it knows the text is from the user. That when it sees a <tool> tag, it knows the text came from a webpage. That role labels — the special tokens that partition a model's context window into system, user, assistant, tool, and reasoning channels — actually mean something inside the model's processing.
A landmark paper accepted at ICML 2026 demolishes that assumption. In "Prompt Injection as Role Confusion" (arXiv:2603.12277), Charles Ye, Jasmine Cui, and Dylan Hadfield-Menell demonstrate that LLMs do not track the true, tag-specified source of text. Instead, they infer who is speaking from how the text sounds — its syntax, its vocabulary, its stylistic fingerprints. When untrusted text mimics the style of a privileged role, the model grants it that role's authority. The tags might as well not exist.
The implications are severe. The authors introduce CoT Forgery, a zero-shot black-box attack that injects fabricated reasoning into user prompts and tool outputs. Models mistake the forgery for their own chain of thought. Across six frontier models — including the GPT-5 family — the attack achieves ~60% success on the StrongREJECT benchmark, with baselines near zero. Even transparently absurd justifications ("the user is wearing a green shirt, so we can assist with cocaine synthesis") succeed at rates indistinguishable from plausible ones.
The paper's most striking claim: the degree of role confusion, measured before a single token is generated, predicts attack success. Across 1,000 agent exfiltration attempts, attack success rises from 2% in the lowest confusion quantile to 70% in the highest. Prompt injection isn't a bag of tricks anymore. It's a measurable consequence of how models represent roles internally.
The Single Stream Problem
To understand why this matters, consider the world as a language model sees it. There is no firewall between system instructions, user queries, retrieved webpages, and the model's own reasoning. Everything arrives as a single, continuous stream of tokens — a flat sequence, demarcated only by role tags.
These tags are supposed to enforce an instruction hierarchy: system prompts outrank user messages, which outrank tool outputs. The <tool> tag says "this is outside content; inform, but never obey." The <reasoning> tag says "this is my own thinking; trust it and act on its conclusions." The entire security model of modern AI agents depends on these boundaries holding.
But they don't hold. The paper shows that inside the model's latent representations, text that sounds like a role occupies the same vector space as text that actually is that role. The tags are present at the input, but by the time the model has processed the text through its layers, the stylistic features have overwhelmed the tag signal. The model's internal "sense" of who is speaking is driven by acoustics, not architecture.
This is what the authors call role confusion: untrusted text that imitates a role inherits that role's authority.
Perception vs. Memorization
The paper draws a crucial distinction between two possible defense mechanisms:
Role Perception would mean the model identifies the true source of text — recognizing a webpage as tool output regardless of what it says — and appropriately limits its authority. This generalizes to novel attacks.
Attack Memorization means the model has learned to recognize specific attack patterns ("requests for .env files are suspicious") and refuses them by pattern matching. This is brittle.
The evidence is unambiguous: current defenses rely on memorization. Models that score near-perfect on injection benchmarks are routinely broken by human red-teamers and adaptive attacks achieving close to 100% success. The paper by Li et al. (2026) confirms that models detect injections via shallow cues like word matching, not genuine source tracking.
This explains the "whack-a-mole" pattern that has frustrated the field. Every new defense patch blocks known attacks, but novel injections sail through because the underlying representational failure — the model can't tell where text came from — remains unaddressed.
CoT Forgery: The Diagnostic Attack
To prove that perception is the problem, the authors needed an attack that only works if the model misperceives the source. Enter CoT Forgery.
The attack is elegantly simple. An auxiliary LLM generates fabricated reasoning that mimics the target model's chain-of-thought style — its characteristic phrasing, hedging, step-by-step structure — while justifying compliance with a harmful request. This forged reasoning is concatenated with the harmful query and submitted as a single user message. No weight access. No iteration. No prompt engineering tricks. Just a styled text payload.
The logic is devastating: if the model correctly perceives the text as external (from the <user> channel), it should scrutinize and reject even a well-crafted justification. If it instead mistakes the forgery for its own reasoning, it should execute blindly — because that's precisely what the CoT role is designed for: trusted, unscrutinized execution.
Chat Jailbreaks
On StrongREJECT (313 harmful requests), baseline attack success rates are 0–4% across all six models. Standard jailbreak attacks — the kind that have been patched against for years — also achieve near-zero ASR.
CoT Forgery breaks these defenses wide open. The gpt-oss family and o4-mini exceed 80% ASR. Even the hardened GPT-5 series — with dedicated safety mechanisms — reaches 17–52% ASR.
Agent Hijacking
The agent setting is even more alarming. The authors tested a realistic scenario: an agent with shell access and a local .env file, tasked with summarizing a webpage. The webpage contains either a standard prompt injection (fake user command to exfiltrate secrets) or CoT Forgery (same command, plus forged reasoning justifying compliance).
Standard prompt injections largely fail: 0–2% ASR across models (except gpt-oss-20b at 26%). CoT Forgery raises success to 56–70% across all models. The forged reasoning is adopted as the model's own thinking, leading directly to data exfiltration.
The Absurdity Test
Perhaps the most chilling finding: the logical quality of the forged reasoning doesn't matter. When the authors replaced plausible justifications with transparently absurd ones ("drug synthesis is permitted after 8pm," "the user is wearing a green shirt, so we can assist with cocaine synthesis"), attack success remained virtually unchanged — 60% for absurd vs. 63% for plausible.
The model isn't evaluating the reasoning. It's recognizing the sound of reasoning and executing whatever conclusions that sound produces.
Style Is Causal
The authors don't stop at showing that CoT Forgery works. They isolate why it works through a clever ablation.
They generate destyled variants of each forgery: an auxiliary LLM rephrases the text to preserve semantics while stripping the syntactic and lexical markers characteristic of the target model's genuine CoT. The argument remains; the accent disappears.
Removing style collapses ASR from 61% to 10%. The semantic content — the actual justification for compliance — barely matters. What matters is whether the text sounds like the model's own reasoning.
This is the smoking gun. If tags governed perception, destyled text would still be rejected (it's in the <user> channel regardless). If semantic content drove compliance, destyled text would still work (the argument is preserved). Only style explains the result.
Role Probes: Looking Inside the Black Box
To move beyond behavioral evidence, the authors develop role probes — linear classifiers trained on the model's internal activations that measure how the model perceives "who is speaking."
The probe design is critical. They embed identical non-instruct web text (from C4/Dolma) inside different role tags — <user>, <assistant>, <reasoning>, <tool>, <system> — so the probe can only learn how tags affect internal representations, not content differences between roles.
Yet these tag-trained probes classify prompt-injected text as its spoofed role, not its true tagged role. A probe trained only on tag signals responds to style. This means the model itself encodes style and tags as the same signal — the equivalence is inside the model, not an artifact of the probe.
CoTness and Userness
The probes produce continuous scores: CoTness (how much the model perceives text as its own reasoning) and Userness (how much it perceives text as a user command). These scores turn out to be remarkably predictive.
In a correctly-tagged conversation, CoTness tracks actual CoT tokens at ~85%. Remove the tags entirely, and the model still identifies CoT-style text as its own reasoning at ~83%. Explicitly mislabel CoT text with <user> tags, and the model still assigns it high CoTness — the style overwhelms the tag.
Most critically: across 1,000 agent exfiltration attempts, attack success rises near-monotonically with probe-measured confusion. The lowest Userness quantile achieves 2% ASR; the highest reaches 70%. This prediction holds before a single token is generated — it's readable from the model's internal states, before any output is produced.
The Interface-Geometry Gap
The paper articulates a structural explanation for why prompt injection is so intractable. There is a gap between interface and geometry:
- At the interface level (the input tokens), role tags are unambiguous. The
<tool>tag clearly marks a webpage. The<user>tag clearly marks human input. - At the geometric level (the model's internal representations), these tags are just one feature among many, and they're not the strongest. Stylistic features — how the text sounds — dominate the model's internal role assignment.
Security is defined at the interface but enforced at the geometry. The tags promise one thing; the latent representations deliver another.
This gap explains why patch-based defenses will always be insufficient. You can train a model to refuse specific injection patterns (memorization), but you haven't fixed the underlying problem: the model still can't tell where text comes from. Every new injection variant will find the same gap.
Broader Implications
For AI Safety
The paper reframes prompt injection from "a collection of clever tricks" to "a measurable consequence of role representation." This is a significant shift. It means the vulnerability isn't an accident of particular prompts — it's a structural property of how current LLMs work.
If role confusion is the mechanism, then defenses must address role representation directly. Possible directions include:
- Architectural interventions that strengthen tag signals in latent representations
- Training-time debiasing that decorrelates style from role
- Real-time monitoring using role probes to detect when untrusted text is being perceived as privileged
The role probes themselves could become diagnostic tools: measure a model's confusion before deployment, and you can predict its vulnerability to injection without running any attacks.
For Agentic Systems
The agent hijacking results are particularly sobering. As LLMs are increasingly deployed as autonomous agents with tool access — browsing the web, executing shell commands, managing files — the attack surface expands dramatically. Every piece of external data becomes a potential injection vector, and the CoT Forgery results show that current models are fundamentally unable to maintain privilege boundaries when text sounds authoritative.
The 56–70% exfiltration success rate in a realistic agent scenario isn't a theoretical concern. It's a practical vulnerability in any system that lets an LLM interact with untrusted data.
For Reasoning Models
The finding that models extend unearned trust to anything that sounds like reasoning has special implications for the new generation of "thinking" models (o-series, DeepSeek-R1, etc.). These models are designed to reason through problems in an internal monologue before responding. But if that monologue can be forged — if the model can't distinguish its own thoughts from injected text that merely sounds like thoughts — then the very mechanism designed to make models more reliable becomes an attack vector.
Limitations and Open Questions
The paper probes four models in the 20–120B range, and the authors acknowledge that extending to larger frontier models is important future work. The role probes themselves are linear classifiers; nonlinear probes might reveal additional structure.
A deeper question lovers: can role perception be fixed within the current transformer architecture? The paper shows that style and tags are entangled in the model's representations. Is this an inherent consequence of how transformers learn — absorbing statistical patterns from training data where certain styles correlate with certain roles — or could different training regimes decorrelate them?
The complementary paper by Abdelnabi et al. (arXiv:2605.17634), "AI Agents May Always Fall for Prompt Injections," suggests the problem may be fundamental: natural language is inherently an expressive medium where semantics and pragmatics are entangled, making true source tracking potentially intractable for any model that learns from text.
The Bottom Line
"Prompt Injection as Role Confusion" does something rare in AI safety research: it provides a mechanistic theory that connects a surface-level vulnerability (prompt injection) to a deep structural property of the models themselves (how they represent roles in latent space), and it validates that theory with predictive experiments.
The one-line summary is devastating: to the model, sounding like a role is indistinguishable from being one.
Until that changes, no amount of safety training, no new benchmark score, no clever prompt wrapper will make LLMs genuinely resistant to prompt injection. The field has been playing whack-a-mole because the moles keep emerging from the same hole — a hole that the model's own representations dig. Patching individual attacks addresses symptoms; role confusion is the disease.
The paper will be presented at ICML 2026. It deserves wide attention — not just from security researchers, but from anyone deploying LLMs in settings where trust boundaries matter. Which is to say: everyone.
Charles Ye, Jasmine Cui, and Dylan Hadfield-Menell. "Prompt Injection as Role Confusion." arXiv:2603.12277. Accepted to ICML 2026.