单周期智能体自我摘要下的AI护栏存活性研究 AI Guardrail Survival under Single-Cycle Agentic Self-Summarization 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-11
👁️ 预览文献
💡 AI 中文简介
本研究探讨了长时间运行的AI智能体在上下文压缩(即用模型生成的摘要替换完整对话历史)过程中,安全规则(护栏)如何丢失。研究发现,仅仅检查规则是否在文本中存在并不等于安全得到保障:即使规则未被完全删除,也可能退化为看似存在但无法有效约束行为的“残留物”。行为重放测试显示,退化残留物导致模型执行被禁止行为的概率远高于完整规则(两种重放模型下分别高出34和57个百分点)。此外,规则形式的文本比同等显著性的普通事实更容易被保留,这解释了为何基于存在性的检查看似有效。文本丢失模式取决于压缩预算,且运行时难以察觉,只能通过与外部真实信息(如约束注册表)对比来检测。研究还指出了仅依赖LLM评判可能导致的评估陷阱。所有结果均基于单次压缩周期。
领域人工智能安全、智能体上下文管理
适合谁读需要一定专业背景,适合AI安全研究者、智能体开发者
核心贡献["首次细致刻画单次压缩周期中安全规则丢失的形态,区分了整体删除与残留退化。", "证明存在性检查不等于安全性检查,并揭示规则比普通事实更易保留的机制。"]
关键数据在行为重放中,退化残留物与完整规则导致的违规率差距为+34(Qwen)和+57(Llama)个百分点。
推荐理由如果你关心AI智能体的安全可靠性,这篇文章揭示了上下文压缩中一个隐蔽但关键的风险,值得一读。
关键词["AI安全", "上下文压缩", "护栏存活", "智能体", "行为评估"]

原文摘要

查看英文原文摘要

Long-running agents periodically compact their context, replacing the transcript with a model-generated summary. Recent work shows that dropping a standing safety constraint during compaction drives behavioral violations across many models (Governance Decay; Chen, 2026). We ask a finer question: under a single compaction cycle, how is a safety rule lost, and what does that imply for detection and evaluation? Our central finding is that a presence check is not a safety check: when compaction does not drop a rule outright, it often leaves something that looks like a rule but does not act like one. On behavioral replay, a degraded residue leads the model to perform the prohibited action far more often than an intact welded rule does (all-case gaps of +34 and +57 points under two replay models, both positive), category-level survival behaves like a residue, and even intact rules sometimes fail to fire, so an audit that checks only textual presence gives false assurance. Sharpening this, rule-form items are retained substantially more often than prominence-matched facts, which is exactly why presence-based checking feels adequate even though survival is not protection. Textual loss is regime-dependent (weld-or-drop with a single rule; degraded predicate-loss residues under a tighter budget), and we did not observe the hypothesized textual severing mode. Such loss is silent at runtime and detectable only by comparison with retained external ground truth (such as a constraint registry), which reveals textual absence but not whether a surviving rule still fires. We also document evaluation pitfalls where LLM-judge labels alone would have reversed a conclusion. All results concern a single compaction cycle.

📚 参考文献 (18 条)

查看18 条参考文献
  1. Anthropic (2025). Compaction. Claude API documentation. Accessed 2026-06-10. https://platform.claude.com/docs/en/build-with-claude/compaction
  2. Bort, J. (2026). A Meta AI Security Researcher Said an OpenClaw Agent Ran Amok on Her Inbox. TechCrunch, 23 February 2026. Accessed 2026-06-10. https://techcrunch.com/2026/02/23/a-meta-ai-security-researcher-said-an-openclaw-agent-ran-amok-on-her-inbox/
  3. Chen, S. (2026). Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents. arXiv:2606.22528. (The soft-versus-hard decay figures cited in §6 are from v1.)
  4. Ding, J. (2026). Analyzing the Incident of OpenClaw Deleting Emails: A Technical Deep Dive. Medium, 19 March 2026. Accessed 2026-06-10. https://medium.com/@dingzhanjun/analyzing-the-incident-of-openclaw-deleting-emails-a-technical-deep-dive-56e50028637b
  5. Eiras, F., Zemour, E., Lin, E., and Mugunthan, V. (2025). Know Thy Judge: On the Robustness Meta-Evaluation of LLM Safety Judges. ICBINB Workshop at ICLR 2025; PMLR 296:56-66. arXiv:2503.04474.
  6. Feng, C., Shen, M., Balashankar, A., Gerner-Beuerle, C., and Rodrigues, M. R. D. (2026). Noisy but Valid: Robust Statistical Evaluation of LLMs with Imperfect Judges. ICLR 2026. arXiv:2601.20913.
  7. Gamage, Y. (2026). Omission Constraints Decay While Commission Constraints Persist in Long-Context LLM Agents. arXiv:2604.20911.
  8. Hadeliya, T., Jauhar, M. A., Sakpal, N., and Cruz, D. (2025). When Refusals Fail: Unstable Safety Mechanisms in Long-Context LLM Agents. arXiv:2512.02445.
  9. Hankache, R., Acheampong, K. N., Song, L., Brynda, M., Khraishi, R., and Cowan, G. A. (2025). Evaluating the Sensitivity of LLMs to Prior Context. arXiv:2506.00069.
  10. Hong, K., Troynikov, A., and Huber, J. (2025). Context Rot: How Increasing Input Tokens Impacts LLM Performance. Chroma Technical Report. Accessed 2026-06-10. https://research.trychroma.com/context-rot
  11. Kamath, A., Zhang, S., Xu, C., Ugare, S., Singh, G., and Misailovic, S. (2025). Enforcing Temporal Constraints for LLM Agents. arXiv:2512.23738.
  12. Kang, M., Chen, W.-N., Han, D., Inan, H. A., Wutschitz, L., Chen, Y., Sim, R., and Rajmohan, S. (2025). ACON: Optimizing Context Compression for Long-horizon LLM Agents. arXiv:2510.00615.
  13. LangChain (2025). Context Engineering for Agents. Accessed 2026-06-10. https://www.langchain.com/blog/context-engineering-for-agents
  14. Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., and Liang, P. (2024). Lost in the Middle: How Language Models Use Long Contexts. Transactions of the Association for Computational Linguistics, 12. arXiv:2307.03172.
  15. Maynez, J., Narayan, S., Bohnet, B., and McDonald, R. (2020). On Faithfulness and Factuality in Abstractive Summarization. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. arXiv:2005.00661.
  16. Microsoft (2025). Compaction. Microsoft Agent Framework documentation. Accessed 2026-06-10. https://learn.microsoft.com/en-us/agent-framework/agents/conversations/compaction
  17. Morph (2025). Context Compaction: Delete Noise, Keep Signal. Accessed 2026-06-10. https://www.morphllm.com/context-compaction
  18. Trukhina, N., and Vashkelis, V. (2026). Compress the Context, Keep the Commitments: A Formal Framework for Verifiable LLM Context Compression. arXiv:2605.17304.