Skip to content
NewA calmer, faster ZeroHour

Where Do LLMs Decide to Break the Rules? Mechanistic Localization of Prompt Injection Compliance

arXiv cs.CRby Rui Wen ()1 min read2 · 2 reads
AI summary · grok-4.7Summaries by Vani AI

Causal patching localizes prompt-injection compliance to a late-layer bottleneck, reversible in 77-92% of cases.

Using layer-by-layer causal activation patching on five models from 4B to 32B parameters, the authors localize where LLMs decide to comply with prompt injection. Attack information is linearly decodable from the first layer, but causal control over behavior is negligible until a late-layer bottleneck in the final third of the network. Patching that bottleneck reverses compliance in 77-92% of cases. The mechanism occupies a compact subspace—rank-8 in 4B and 14B models, scaling to rank-64 at 32B—and that same layer is the best site for detecting obfuscated attacks such as leetspeak.

Key facts
  • Injection content is decodable at layer one, but causal effect comes late.
  • Leverage concentrates in a bottleneck in the final third of the network.
  • Patching that bottleneck reverses compliance in 77-92% of cases.
  • The compliance subspace is rank-8 at 4B/14B and rank-64 at 32B.
  • The same late layer best detects attacks, including leetspeak obfuscation.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at arxiv.org

When a prompt injection attack succeeds, a Large Language Model (LLM) abandons its assigned system role to comply with an adversarial instruction. While prior work has extensively quantified how often this occurs, we ask a more fundamental question: where inside the network does the model actually decide to break the rules?

arXiv cs.CR

By Rui Wen · arxiv.org

Read the full article at arXiv cs.CR

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.