arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.26649cs.AIcs.CR
收藏

智能体指令的自动形式化为策略即代码

Autoformalization of Agent Instructions into Policy-as-Code

Adam Mondl, Matthew Maisel, John H. Brock

AI总结:

提出自动形式化流水线,通过LLM生成-批评循环将智能体提示和自然语言策略转化为Cedar策略语言,在MedAgentBench上比手工编码覆盖更多规范。

摘要:

高风险领域中的智能体安全需要正式的策略执行,但现有方法要么依赖概率性护栏(微调分类器、基于提示的引导)无法提供形式保证,要么依赖手工编码的符号执行无法扩展到实际策略规范的广度。我们提出一个自动形式化流水线,利用基于LLM的生成-批评循环,将智能体提示、MCP工具描述和自然语言策略文档转化为经过形式验证的策略。生成的策略用Cedar策略语言编写。在MedAgentBench基准上,我们的自动形式化策略比先前工作中手工编码的符号执行覆盖了更多的源自然语言规范。

英文摘要:

Agent safety in high-stakes domains requires formal policy enforcement, but most existing approaches either rely on probabilistic guardrails (fine-tuned classifiers, prompt-based steering) that offer no formal guarantees, or on hand-coded symbolic enforcement that does not scale to the breadth of real policy specifications. We present an autoformalization pipeline that translates agent prompts, MCP tool descriptions, and natural language policy documents into formally verified policies using an LLM-based generator-critic loop. The resulting policies are written in the Cedar Policy Language. On the MedAgentBench benchmark, our autoformalized policies cover substantially more of the source natural-language specification than the hand-coded symbolic enforcement in prior work.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑