Soteria:用于安全大语言模型智能体的带运行时实施的形式化验证规划
Soteria: Formally Verified Planning with Runtime Enforcement for Safe LLM Agents
AI总结:
Soteria是协调安全大语言模型智能体的安全与效用的框架,通过形式化分层规划和运行时实施,在多基准测试中实现1.7倍于最佳基线的任务成功率且无违规。
摘要:
执行多步骤工具调用的大语言模型智能体必须同时满足两个目标:完成用户任务(效用)和符合领域策略与正确性约束(安全)。这两个目标存在冲突——阻止不安全动作可避免违规,但会使智能体陷入无原则恢复的困境。现有方法会牺牲其中一个目标。我们提出Soteria,一个通过形式化分层规划和规范运行时实施来协调安全与效用的框架。执行前,智能体生成结构化计划,在任何工具调用前针对规范进行形式化验证;执行期间,已验证计划兼具双重作用:确保智能体采取符合规范的轨迹,并在不安全动作被阻止时提供指导。在涵盖各类工具使用任务的多个基准测试中,Soteria的平均任务成功率达到最佳基线的1.7倍,且未出现任何规范违规,证明安全与效用无需权衡。
英文摘要:
LLM agents that execute multi-step tool calls must satisfy two objectives simultaneously: completing the user's task (utility) and conforming to domain policies and correctness constraints (safety). These objectives are in tension -- blocking an unsafe action prevents a violation but can leave the agent stranded with no principled way to recover. Existing approaches sacrifice one objective for the other. We introduce Soteria, a framework that reconciles safety and utility through verified hierarchical planning and runtime enforcement of specifications. Before execution, the agent generates a structured plan that is formally verified against the specifications prior to any tool invocation. During execution, the verified plan serves dual roles: it ensures that the agent takes specification-conformant trajectories and provides guidance when unsafe actions are blocked. Across multiple benchmarks covering a diverse range of tool-use tasks, Soteria achieves 1.7 times the average task success rate of the best baselines, with no violations of policy specifications, demonstrating that safety and utility need not be traded off.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。