跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 密码学与安全

arXiv:2609.37737 (cs)
[提交于 2026年9月29日]

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

作者:Rui Wen, Jiayang Liu, Zeyu Yang, Jun Sakuma, Lu Sun
查看论文《Where Do LLMs Decide to Break the Rules? Mechanistic Localization of Prompt Injection Compliance》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要: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? Using layer-by-layer causal activation patching across five models (4B to 32B parameters), we find a clear dissociation: attack information is linearly decodable from the first layer, yet causal leverage over the model's behavior is negligible until a late-layer bottleneck in the final third of the network. Patching this bottleneck reverses compliance in 77--92\% of cases. We show that the compliance mechanism occupies a compact linear subspace (rank-8 in 4B and 14B models, scaling to rank-64 at 32B) and is architecturally stable across varying model families. Finally, we validate our mechanistic account by showing that this causal peak layer is also the representationally optimal site for detecting attacks, outperforming early-layer classifiers that degrade under surface-level obfuscation such as leetspeak substitution. This alignment between causal leverage and detection performance provides converging evidence that the late-layer bottleneck captures decision-relevant computation rather than merely reflecting an artifact of the intervention.
主题: 密码学与安全 (cs.CR)
引用方式: arXiv:2609.37737 [cs.CR]
  (或者 arXiv:2609.37737v1 [cs.CR] 对于此版本)
  https://doi.org/10.48550/arXiv.2609.37737

提交历史

来自:Rui Wen
[v1] 2026年9月29日 星期二 14:54:21 UTC (473 KB)
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.CR
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-09
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站