Soteria: Formally Verified Planning with Runtime Enforcement for Safe LLM Agents
Deyuan, Ankush Desai, Sharad Malik, Aarti Gupta
NeurIPS page · Open on the map
Category: AI Safety, Security & Alignment › LLM Agent Safety Evaluation · Type: new method · Keywords: LLM agents, formal verification, runtime enforcement, safety and utility, hierarchical planning
Areas: AI Agents › Agent Robustness › Agent Safety; Safety & Security › Safety Benchmarking › Agent Safety; Evaluation & Benchmarks › Agent Capabilities and Memory › LLM Agents; RL for LLMs & Agents › Language Model Agents › Language-Guided Policy Optimization
Summary
Soteria is a framework that uses formally verified hierarchical planning and runtime enforcement to simultaneously ensure safety and utility in LLM agents, achieving perfect specification conformance and up to 5× higher utility than prior guardrail methods.
Explained to a 5-year-old
Some computer programs called LLM agents try to help people by doing many small steps. They need to finish the task but also not do anything dangerous. Old ways either stop dangerous actions (and then they cannot finish) or finish the task (and might be unsafe). The new idea creates a plan that is checked carefully before anything happens, making sure the plan is safe. This plan is like a map that tells the agent which steps to take and also what to do if a step is blocked. This helps the agent be both helpful and safe at the same time.
Explained to a 5-year-old, longer
LLM agents are computer programs that try to help people by doing many small steps, like using tools. They have two goals: they want to finish the user's task, and they want to stay safe and follow rules. Sometimes doing a safe thing means they cannot finish the task, and sometimes doing the task means they might break a rule. Existing methods either stop unsafe actions (which can leave the agent stuck) or let the agent finish the task (which might be unsafe). The new idea creates a plan that is checked carefully before anything happens, making sure the plan is safe. This plan is like a map that tells the agent which steps to take and also what to do if a step is blocked. While the agent follows the plan, it can still do useful work, but if it tries to do something unsafe, the plan guides it to a safe alternative. This way the agent can keep working toward the goal without breaking safety rules. The plan also helps the agent recover when a step is blocked, so it doesn't get stuck. By using this safe plan and watching what the agent does, the system can keep both safety and usefulness. The result is that the agent can complete tasks more often while never violating safety. This makes the agent more reliable for real-world uses where both safety and performance matter.
For a technical reader
The paper presents a framework that generates hierarchical plans for LLM agents, formally verifies those plans against safety specifications before execution, and enforces the plans at runtime to ensure compliance while providing recovery guidance when unsafe actions are blocked. This dual role of the verified plan allows agents to maintain both utility and safety, addressing the trade-off inherent in prior guardrail approaches. Evaluation on multiple benchmarks shows perfect specification conformance and up to a 5× improvement in task utility compared to existing methods. The approach is generic and can be applied to any multi-step tool-use scenario where safety constraints must be respected.
Problem
LLM agents must both complete user tasks and adhere to safety policies, but these objectives conflict; current methods sacrifice either safety or utility, leaving agents stranded when unsafe actions are blocked. There is a need for a method that can reconcile safety and utility without compromising either.
Method
The approach generates a structured hierarchical plan for the agent, formally verifies the plan against safety specifications before execution, and enforces the plan at runtime to ensure specification-conformant trajectories while providing recovery guidance when unsafe actions are blocked.
Results
The approach achieves perfect specification conformance across benchmarks and improves utility by up to 5× compared to existing guardrail methods, showing that safety and utility can be jointly optimized.
Contributions
It introduces a framework that combines formal verification of hierarchical plans with runtime enforcement to reconcile safety and utility, and demonstrates its effectiveness on diverse tool-use tasks.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction