arXiv cs.AI· Chao Shang, Wanyu Du, Yi Zhang, Sandesh Swamy·· 13 小时前AI 评分35
AgentPolicyForge:从可执行环境到策略基准与自适应防护
AgentPolicyForge: From Executable Environments to Policy Benchmarks and Adaptive Guards
AI 导读
AgentPolicyForge 框架利用可执行环境构建策略基准并迭代训练策略防护模型,据此构建的 PolicyGym 覆盖十类策略,含 698 个训练场景与 254 个独立留出场景。每个违规用例均使用被允许的工具,需检查参数、资源与上下文而非仅凭工具身份判断。最终基于防护模型的配置在 PolicyGym 上将攻击成功率相对降低 40-44%,且良性拒绝少于仅用策略提示词。
正文 · 原文
Abstract: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.
| Comments: | 20 pages, 2 figures |
| Subjects: | Artificial Intelligence (cs.AI); Cryptography and Security (cs.CR); Machine Learning (cs.LG) |
| Cite as: | arXiv:2610.28989 [cs.AI] |
| (or arXiv:2610.28989v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2610.28989 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Chao Shang [view email]
[v1]
Tue, 20 Oct 2026 23:31:32 UTC (1,042 KB)
来源:arXiv cs.AI · arxiv.org