AgentPolicyForge:从可执行环境到策略基准与自适应防护 AgentPolicyForge: From Executable Environments to Policy Benchmarks and Adaptive Guards 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-20
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
本研究针对智能体部署中策略违规问题,提出AgentPolicyForge框架,利用可执行环境构建策略基准并迭代训练策略防护模型。基于该框架构建了PolicyGym数据集,覆盖十类策略、698个训练场景和254个独立测试场景。通过攻击者生成请求、防护模型在环境验证的平衡样本上微调,最终防护配置相比仅提示策略,攻击成功率相对降低40-44%,且良性拒绝更少。
领域人工智能安全 / 智能体策略合规
适合谁读需要一定专业背景(了解智能体、策略学习与对抗训练)
核心贡献1. 提出AgentPolicyForge框架,利用可执行环境自动构建策略基准并迭代训练防护模型;2. 构建PolicyGym数据集,覆盖十类策略、698个训练场景和254个独立测试场景,所有违规案例均使用允许工具,需检查参数、资源和上下文而非仅工具身份。
关键数据最终防护配置在PolicyGym上实现攻击成功率相对降低40-44%,且良性拒绝少于仅提示策略;训练数据来自698个场景,测试集为254个独立人工审核场景。
推荐理由如果你关心智能体如何真正遵守策略而非仅靠提示,这篇工作用可执行环境造数据、训防护,实测攻击成功率降了四成多,值得一读。
关键词["智能体安全", "策略合规", "防护模型训练", "可执行环境", "基准数据集", "自适应防护"]

原文摘要

查看英文原文摘要

Customized agent deployments define policies over tools, resources, and execution conditions. Providing these policies in the task agent's prompt does not reliably prevent violations. Training a guard requires examples of tool calls that comply with or violate those policies. We introduce AgentPolicyForge, a framework that uses executable environments to construct policy benchmarks and iteratively train policy guards. With this framework, we construct PolicyGym, a dataset across ten policy families using 698 scenarios for training data generation and 254 separate held-out scenarios for human-reviewed test sets. Tool calls are executed and their outcomes recorded to help determine whether they comply with the policy. Every violating case uses a permitted tool, requiring checks of arguments, resources, and context rather than tool identity alone. The case construction process supports iterative guard training: an attacker generates requests using retrieved strategies, and the guard is fine-tuned on balanced, environment-verified examples. Training improves policy enforcement even with a fixed archive. Updating the archive further reduces in-domain attack success compared with keeping it fixed. We compare policy-aware task agent self-regulation with a trained policy guard. On PolicyGym, the final guard-based configuration achieves a 40-44% relative reduction in attack success rate and fewer benign rejections than policy prompting alone.