策略验证自训练:从可验证策略奖励中学习智能体合规性
Policy-Verified Self-Training: Learning Agent Compliance from Verifiable Policy Rewards
AI总结:
该研究提出 PVST 范式,利用运行时策略验证器的决策作为奖励训练智能体,在 AgentDojo 任务中显著降低违规与攻击率,且在未见过的攻击场景中仍有效。
摘要:
运行时策略验证器可阻止智能体执行不允许的动作,但其决策通常仅用于执行,之后便被丢弃。我们提出疑问:这些决策能否转而成为用于训练它们所保护智能体的可验证策略奖励?我们引入策略验证自训练(Policy-Verified Self-Training, PVST),这是一种后训练范式,其中智能体生成自身的交互轨迹,而可执行策略验证器(此处为根据书面策略编译的确定性门)会评估每个动作是否合规。合规轨迹被强化,违规则成为偏好优化的负样本;除了该门和基准的任务成功信号外,PVST 无需更强的教师模型、人类偏好标签或特定于攻击的监督,尽管在基准的受攻击环境中收集了 rollout。在 AgentDojo 任务的提示注入场景中,Qwen3-8B 的策略验证偏好训练将违规轨迹从 37.2% 降至 10.3±0.9%(3 个随机种子),成功攻击从 12.4% 降至 0.5%,且合并任务效用保持相等或更高(尽管在旅行任务上效用有所下降);相比之下,当负样本由攻击神谕选择时该比例为 22.0%,负样本不含违规时为 31.9±0.9%。所学行为在训练中未使用的攻击模板下(从 37.7% 降至 11.0%)和训练中排除的套件上(从 34.8% 降至 16.7%)均有效,保留的验证器干预率从 39.2%(种子 0)降至 8.8%。我们的分析确定了判决信息最丰富的两个条件:成功不得已隐含合规,且受保护动作必须同时出现在允许和禁止的上下文中。
英文摘要:
Runtime policy verifiers can prevent agents from executing disallowed actions, but their decisions are typically used only for enforcement and discarded afterward. We ask whether these decisions can instead become verifiable policy rewards for training the agents they guard. We introduce Policy-Verified Self-Training (PVST), a post-training paradigm in which an agent generates its own interaction trajectories and an executable policy verifier, here a deterministic gate compiled from a written policy, evaluates whether each action complies. Compliant trajectories are reinforced, and violations become negatives for preference optimization; beyond the gate and the benchmark's task-success signal, PVST needs no stronger teacher model, no human preference labels and no attack-specific supervision, although rollouts are collected in the benchmark's attacked environment. On held-out AgentDojo tasks under prompt injection, policy-verified preference training of Qwen3-8B reduces violating trajectories from 37.2% to 10.3 $\pm$ 0.9% (three seeds) and successful attacks from 12.4% to 0.5% at equal or higher pooled task utility, although utility falls on travel, compared with 22.0% when negatives are selected by an attack oracle and 31.9 $\pm$ 0.9% with negatives that contain no violation. The learned behavior holds under an attack template never used in training (37.7% to 11.0%) and on a suite excluded from training (34.8% to 16.7%), and the retained verifier's intervention rate falls from 39.2% to 8.8% (seed 0). Our analysis identifies two conditions under which the verdict is most informative: success must not already imply compliance, and guarded actions must appear in both permitted and forbidden contexts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。