上下文中的幽灵:在决策时间装配中的政策承载失败测量
Ghost in the Context: Policy-Carriage Integrity in LLM Agents
AI总结:
本文研究了在决策时间装配过程中由于状态丢失、削弱或反弹导致的政策边界跨越问题,提出SafeContext控制层以缓解风险,并展示了其在不同模型上的效果。
摘要:
LLM代理并不直接基于原始交互历史进行操作,而是基于截断、总结、重排和重写后的有限决策状态进行操作。如果包含指令的状态在这一过程中被丢弃、削弱或反弹,代理可以在没有提示覆盖、模型变化或持久记忆妥协的情况下跨越政策边界。我们通过本地Llama 3.1 8B、Qwen 2.5 7B和Mistral 7B使用判断精确约束尊重和装配状态可见性直接审计来研究这种失败模式。我们评估了SafeContext,一种通过固定模型权重固定控制状态、重用保留的控制前缀并在压力下可选地注入提醒的控制层。未缓解的风险是系统性的,但绝对精确的合规性仍较低。针对截断,SafeContext产生小幅收益;针对强结构压缩策略,大多数聚合提升消失,只剩下溢出驱逐和选定别名切片中的残余收益。仅回放无法解释该效果。在Qwen 14B和Llama 70B上的更大模型扩展显示,尽管符号和幅度仍受政策条件影响,但较大的模型下相同的失败对象仍然存在。因此,决策时间上下文装配是控制路径中可以部分加固的可测量部分。
英文摘要:
LLM agents choose actions from bounded decision states assembled from system policy, runtime state, tools, workload content, and the final request. We study policy-carriage integrity: applicable trusted policies must remain present, sound, and correctly bound in the decision state immediately before action. Under controlled pressure replay over AutoGen/tau3 and OpenHands/SWE-bench traces, the tested protected-placement configurations preserve policy across the pressure sweep, while task-local placement exhibits eviction, weakening, or over-budget continuation depending on the context manager. We keep this result state-level: a fixed-assembler behavioral calibration produced 0/90 unsafe-action proposals and 0/90 unguarded policy violations, so policy absence alone did not establish unsafe model behavior. The resulting design guidance is systems-level: assign typed provenance to policy state, isolate control budget, check before assembly that the complete active policy set fits, fail closed on overload, and enforce structured policies at the action boundary. We present ControlCapsule as a reference design pattern for these requirements; exact active-policy replay + preflight remains the key baseline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。