VEPA: Verifiable Evolution Formal Policies for Lifelong LLM Agent GuardrailsVEPA: Verified Evolving Formal Policy for Lifelong LLM Agent Guardrails
VEPA evolves agent guardrails with verifiable symbolic rules; in Table 3, with mixed streams and feedback 0.50, its final-round F1 is 0.86±0.02.
Guardrails allow or refuse events before the agent executes an action, or after messages and tool outputs are produced. The paper focuses on risks such as unauthorized data exfiltration, tool misuse, prompt injection, and unauthorized access; many actions are irreversible. Safety policies are often incomplete before deployment. Formal guarantees are conditioned on fixed typed events; LLM parsing and fallback when no rule covers an event are outside this boundary.
- Agent guardrails must give checkable, deterministic allow or refuse for sensitive actions before execution, but safety requirements are often incomplete before deployment. Memory-based policies applied with an LLM are inconsistent, and fixed formal policies lack a mechanism for updating with new risks.
- VEPA writes guardrails as executable symbolic rules over typed events. The LLM proposes patches to fix failures and avoid regression, a deterministic verifier accepts only well-formed and conflict-free policies, and rules with sufficient evidence receive deployment authority.
- The authors state that on the Safety and ATBench covered events, VEPA's final-round F1 is 0.81 and 0.76; with mixed-stream feedback at 0.50, it is 0.86±0.02. The authors state the advantage persists in noisy and long-horizon settings.
- The authors note that guarantees hold only after parsing into fixed typed events; parser errors and LLM fallback are not within the formal boundary, and the policy language is a binary decision over a fixed schema. Experiments compare five guardrails, using recorded trajectories from three benchmarks, five seeds, and include sparse, noisy, and long-horizon settings.
- Benchmarks
- ASSEBench-SafetyASSEBench-SecurityATBench
- Metrics
- cumulative prequential macro-averaged F1formal-policy coverageregression rate
VEPA represents LLM agent guardrails as executable symbolic rule formal policies based on typed agent events: during deployment, the LLM proposes policy patches based on feedback, a deterministic verifier accepts only structurally valid and conflict-free policies, and an evidence-aware authorization layer activates rules only when evidence is sufficient. On ASSEBench-Safety, ASSEBench-Security, and ATBench, VEPA consistently outperforms baselines, maintaining gains under mixed event streams, corrupted feedback, and longer horizons.
Related events and news
1 events · 1 news mentions
News that mentions this paper
谷歌论文提出VEPA:LLM智能体终身进化护栏
- 公众号 为机器立心gives the paper's title谷歌团队提出 VEPA 智能体护栏,兼顾在线学习新风险与规则确定可审计
来源|Google Cloud AI Research + Google DeepMind 论文|VEPA: Verified Evolving Formal Policy for Lifelong LLM Agent Guardrails
Paper analysis
What problem does this paper attempt to solve?
Deployment-time guardrails must adapt policies to new risks while giving reproducible allow or refuse for irreversible actions.
Guardrails for deployed agents must rewrite policies as new risks emerge, yet give an inspectable, reproducible allow or refuse before irreversible actions.
- Scenario: The authors state agents can read private documents, call privileged tools, send messages, and modify records, and mistakes become unauthorized leaks or policy-violating tool misuse. Many actions are irreversible, so guardrails should check the action and relevant context before execution.
- Limitations of existing work: Memory-based guardrails rely on LLMs applying natural-language policies; decisions are nondeterministic, unverifiable, may be vague or self-contradictory, and can regress previously correct behavior (Fig. 1). Formal guardrails can execute deterministically, but often require manually translating specifications into policies and are mostly fixed before deployment, lacking a mechanism for revision with new feedback.
- Design assumption: The authors argue that generation, verification, and deployment authority should be separated, letting the LLM only propose patches; structural verification alone still cannot guarantee that new rules generalize, so evidence gating is also needed.
- What this paper does: VEPA uses executable symbolic rules over typed events as guardrails, evolves the policy with deployment feedback, and only lets rules that pass verification and have sufficient evidence output allow or refuse.
- Threat model:
- Decision point: Before the agent executes an action, or after a message or tool output is produced, give an allow or refuse for the event.
- Visible inputs: Tool calls or environment interactions, plus context such as actor, data, recipient, authorization, purpose, and tool. Natural language is mapped by a parser to a fixed schema. The paper does not use white-box, black-box, or no-box descriptions of knowledge assumptions.
- Risks guarded against: The paper lists prompt injection, unauthorized access, data exfiltration, credential abuse, data tampering, privacy and integrity violations, and malicious or misleading tools and poisoned tool feedback.
- Guarantee boundary: Formal guarantees are conditional on fixed parsed events. The authors state that parser errors, adversarial inputs targeting the parser, and LLM fallback when there is no coverage are not within the symbolic guarantee.
What related research exists?
Related work is divided into neural guardrails, formal guardrails, and evolving memory; the authors position this paper on verifiable formal policy evolution.
The authors position this paper on top of formal execution: persistently evolving symbolic policies from deployment feedback, rather than relying again on LLM judgment or executing only a fixed pre-deployment specification.
Neural Guardrails
- Content Moderation and Trajectory Monitoring: Llama Guard (Inan et al., 2023), ShieldGemma (Zeng et al., 2024), WildGuard (Han et al., 2024) do content moderation; NeMo Guardrails (Rebedea et al., 2023), LlamaFirewall (Chennabasappa et al., 2025), GuardReasoner (Liu et al., 2025), GuardAgent (Xiang et al., 2025) check actions or trajectories, or provide programmable constraints. The paper states that these methods use an LLM for the final decision, so behavior remains probabilistic and less reproducible.
Formal Guardrails
- Executable Policies: Section 2 and Table 1 discuss AgentSpec (Wang et al., 2025), VeriSafe Agent (Lee et al., 2025), FIDES (Costa et al., 2025), FORGE (Palumbo et al., 2026), Conseca (Tsai and Bagdasarian, 2025), AgentGuardian (Abaev et al., 2026), Progent (Shi et al., 2025), VeriGuard (Miculicich et al., 2025), and ShieldAgent (Chen et al., 2025). The paper states that many formal guardrails require manual translation of specifications (Hong et al., 2026) and often fix the policy before deployment (Chen et al., 2025; Palumbo et al., 2026).
- Table 1 Checks: The paper marks Progent/VeriGuard with mechanically verified updates and deterministic execution, but not persistent evolution, explicit non-regression, or evidence gating; it marks LiSA with persistent evolution and evidence gating, but not executable symbolic policies or deterministic execution.
Evolving Memory
- Updating from Deployment Experience: AGrail (Luo et al., 2025c) maintains natural-language safety checklists induced from feedback; LiSA (Kim et al., 2026b) uses structured natural-language policy memory with conflict-aware refinement and confidence-gated reuse. PolicyBank (Choi et al., 2026a), Membrane (Choi et al., 2026b), and SafeHarbor (Liu et al., 2026) explore structured or safety-oriented memory.
- Experience Can Also Spread Risk: The paper cites work on memory that accumulates reasoning and skills (Hu et al., 2025; Ouyang et al., 2026; Yang et al., 2026), and work discussing that experience can propagate unsafe behavior (Gao et al., 2026; Shao et al., 2026; Zhao et al., 2026).
Baselines and Benchmarks
- Comparison under the Same Online Protocol: LLM No Memory, AGrail, LiSA, Hoeffding Tree (Manapragada et al., 2018), RIPPER (Cohen, 1995; Huynh et al., 2023). Benchmarks are ASSEBench-Safety, ASSEBench-Security (Luo et al., 2025a), and ATBench (Li et al., 2026). Appendix A.2 states: static audit models do not adapt from deployment feedback and have different taxonomies; most formal guardrails require explicit specifications, trusted task context, or a rehearsal phase; PolicyBank, SafeHarbor, and Membrane are also not supervised by the single-event sparse allow/refuse feedback used here.
The authors state that VEPA differs by separating proposal, deterministic verification, and evidence activation, so that rules directly decide deployment only after being verified and activated. In the contributions, the authors state that, to their knowledge, this is the first study of lifelong evolution of formal agent guardrails from deployment feedback.
How does the paper address this problem?
VEPA separates LLM proposals, deterministic verification, and evidence gating, letting only verified symbolic rules with sufficient evidence make deployment decisions.
VEPA writes guardrails as symbolic rules over typed events: the LLM only proposes patches, and rules that pass deterministic verification and meet evidence authority thresholds output allow or refuse at deployment.
Events, Rules, and Two Kinds of Failure
- Events: Tool calls or environment interactions, plus actor, action, data, recipient, purpose, authorization, context, and tool. Fields come from a fixed schema and finite vocabularies. Natural language is parsed by a lightweight LLM; fields that cannot be determined are marked unknown. The authors state that the parser can still make errors, and guarantees start after parsing.
- Rules: Each rule is a condition-decision pair, where the condition is a conjunction of typed predicates. An event triggers a rule if it satisfies the condition. If no rule triggers, the guardrail abstains, denoted ⊥. Covered events receive a deterministic decision under the given policy.
- Conflicts and Regression: Rules with opposite decisions conflict if they share a common event; the no-conflict requirement makes such scopes disjoint. Regression refers to labels that were correctly judged before an update being changed after the update. The authors note that natural language memory only sees conflicts indirectly at inference time, and checking regression requires rerunning the LLM, which is expensive and nondeterministic; typed rules, by contrast, allow checking whether scopes intersect and replaying on correctly labeled examples.
Constrained Pareto Search
- Patches and Archives: Each round, feedback is split into a failure set and a correct set using the previous policy version. A patch is a sequence of Add, Delete, Rewrite, Split, Merge actions.
- Objective: The authors write a constrained bi-objective maxΔ(MF(Δ(πt−1);Ft),−MR(Δ(πt−1);πt−1,Ct)), accepting only well-formed and conflict-free policies. M_F is macro-F1 on the failure set, to be maximized; M_R is the loss of macro-F1 relative to 1 on the correct set, to be minimized. Well-formed means paths, operators, and values are within the schema.
- Search and Selection: The authors argue that enumeration would explode with field and edit combinations, and useful patches require semantic abstraction, so they use an LLM to propose and a verifier for admission. Parent policies on the Pareto frontier of feasible archives are sampled by the inverse of behavioral density. At most K=30 candidates per round; rejected evidence enters subsequent feedback packages. Finally, a max-min rule selects the policy whose weaker of the two objectives is as large as possible.
Evidence-Aware Authority
- Separation from Verification: Verified rules do not necessarily generalize. Inference uses only the active subset; other rules remain auditable and continue accumulating evidence.
- Activation: Within a scope, labels equal to the rule decision count as support, and labels different count as contradiction. Unchanged rules update incrementally; new rules or rules with changed conditions are re-estimated from a fixed prior and do not inherit the previous posterior. The error-rate prior is Beta(α0, β0). A rule enters the active set if and only if r∈πactt ⟺ r∈πt ∧ Ut(r)≤τdr. U_t(r) is the (1-δ) quantile of the posterior. Experiments use α0=β0=1, and τ=0.05 and δ=0.5 for both decisions. The authors give an example: with no contradictions, at least 13 supports are needed for the posterior median error rate to fall below 0.05; about 32 supports are needed with 1 contradiction, and about 51 with 2.
- Relation to LiSA: The paper states that LiSA applies evidence gating to memory items; VEPA applies gating to executable rules with explicit scopes, counting via rule execution rather than LLM interpretation.
Inference and Stated Boundaries
- Execution: Only the active policy gives symbolic decisions. The no-conflict guarantee ensures the same event never receives opposite decisions. If no rule applies, the guardrail abstains; fallback cannot override active rules and is not within the symbolic guarantee. Section 4.3 uses a deployment-time LLM as fallback.
- Rule Language: The operators in Appendix B.2 are in and not_in, and rules are conjunctions. unknown is an ordinary category value; negative conditions that should hold only when a field is known must exclude unknown under that semantics. Appendix G gives full prompts for parsing, memory-free judging, mixed judging, and rule synthesis.
- Statement of Guarantees: The authors state that the active policy remains well-formed and conflict-free, hence reproducible on fixed parsed events, and each active rule satisfies the quantile threshold above. Appendix D calls this a Bayesian criterion for operation, not a selection-corrected frequentist guarantee, nor a time-consistent guarantee over the entire deployment period.
What experiments did the paper conduct?
The authors state that on covered events VEPA's final-round F1 is 0.81 and 0.76; with mixed-stream feedback at 0.50, Table 3 gives 0.86±0.02.
Experimental Setup
- Data: ASSEBench-Safety has 1476 items (allow 670, refuse 806), ASSEBench-Security has 817 (408, 409), ATBench has 1000 (503, 497) (Table 2). Safe and unsafe outcomes are mapped to allow/refuse. The mixed stream merges the three benchmarks. Within the same seed, all methods see the same order and the same feedback.
- Protocol: Each round, methods first predict on an unseen batch, then feedback is revealed and updates occur. Default reveal is 50%. The metric is cumulative prefix macro-F1 with equal weight on allow and refuse, counted before the batch's feedback is revealed. Means are over five shuffled seeds, with standard deviation as shading. At step 1, before learning any rules, all methods start from the no-memory deployment model's performance; the main text does not give that value.
- Models: Deployment and parsing default to Gemini-3.1-Flash-Lite, with parsing and direct judgment at temperature 0. Updating defaults to Gemini-3.1-Pro, with formal policy generation at temperature 1.0. Fallback also uses Flash-Lite, with input as event plus current policy. Section 5.3 uses Gemini-3.6-Flash to replace only the proposer, and Gemini-3.5-Flash-Lite to replace only deployment parsing and inference. Appendix C.4 replaces the Section 4 backbone with Qwen-3.8-27B.
- Baselines: LLM No Memory retains no feedback. AGrail and LiSA are implemented per the original papers. Hoeffding Tree and RIPPER use the same parsed events as VEPA; the former updates incrementally each round, the latter retrains on all labels so far. Adaptive methods all start from empty external state.
- VEPA Parameters: At most K=30 candidates per update. Authority layer α0=β0=1, with τ and δ both 0.05 and 0.5 for both decisions.
- Evaluation Scope: RQ1, and Fig. 5(A–B) named in Appendix B.3, compare only on unseen events covered by the active policy before VEPA's update, with baselines using the same subset. Fig. 5(C) evaluates the full stream, with uncovered events given to the LLM. Fig. 6 evaluates the full stream without fallback, counting abstention as error.
Main Results
The main text gives final-round F1 on covered events for Fig. 3; coverage in Fig. 4 is described as approximately.
| Benchmark | VEPA final-round F1 | vs. strongest baseline | final-step coverage | | ASSEBench-Safety | 0.81 | 0.02 higher | about 80% | | ASSEBench-Security | not reported | not reported | about 89% | | ATBench | 0.76 | 0.09 higher | about 88% |
- Authors' Interpretation: The authors state that VEPA has the highest F1 on all three datasets, above fixed LLM and natural-language memory guardrails. The final-round F1 for Security is not written in the main text.
- Coverage: The authors state that active policy coverage increases monotonically as verified rules accumulate, reaching about 80%, 89%, 88% at the final step, thereby expanding the scope of deterministic execution.
- Reading Boundaries: 0.02 and 0.09 are differences the authors give relative to the "strongest baseline"; the main text does not name that baseline or give absolute F1 values for each baseline in Fig. 3.
Mixed Stream, Noise, and Fallback
- Mixed Stream: Merges the three benchmarks, with risk types changing over time. The authors state that VEPA has the highest F1 at each step, about 0.86 at the final step, AGrail 0.78, LiSA 0.80; and that AGrail and LiSA plateau later while VEPA continues to rise (Fig. 5A). Appendix B.3 states that this figure is computed only on covered events.
- Noise: Each revealed adaptation label is flipped independently with probability 0.1. The authors state that VEPA remains strongest and continues to rise, about 0.81 at the final step, AGrail 0.77, LiSA 0.76 (Fig. 5B). The authors attribute the gain to structural verification and evidence authority. This figure is also listed in the appendix as a covered-event evaluation. The reveal proportion is not separately stated; the default protocol is 50%.
- Fallback: When a rule applies, the formal policy decides; otherwise, a deployment-time LLM decides with the formal rules as context. The authors state that after the first step the hybrid system exceeds all baselines and maintains the lead (Fig. 5C); the main text gives no exact F1. The authors emphasize that formal guarantees still cover only events hit by the active policy.
Regression Trade-off and Component Ablation
- Regression: Appendix C.2 compares final-round F1 and the proportion of previously correct examples changed to wrong on the mixed stream. The regression subset is examples that all compared methods judged correctly before adaptation. The authors report VEPA at 0.86 and 3.8%, LiSA at 0.80 and 8.5%, AGrail at 0.78 and 7.5%, Hoeffding Tree at 0.76 and 6.6%, RIPPER at 0.79 and 12.7% (Fig. 11). The authors consider this consistent with explicitly optimizing failure repair and non-regression. The paper does not state whether this F1 is computed only on covered events.
- Ablation: No Authority lets verified rules take effect immediately; Greedy keeps only new candidates each step; No Verifier directly adopts LLM patches. Fig. 6 is the mixed stream, no LLM fallback, abstention counted as error. The authors report that removing the verifier gives the largest final-round drop, 0.13 F1; greedy drops 0.04; removing the authority gate drops 0.03. The authors believe verification is necessary for rule accumulation, while Pareto search and the authority gate add gains in decision quality and stability.
- Numbers That Cannot Be Directly Compared: The main text does not give VEPA's absolute F1 in Fig. 6, so 0.13 cannot be subtracted from the about 0.86 in Fig. 5A. Table 3 also gives 0.86±0.02 at feedback 0.50, but the title does not say covered events, so equal numbers do not imply the same subset as Fig. 5A.
Other Ablations and Analyses
- Sparse Feedback (Table 3, mixed stream final round): at 0.05, VEPA 0.79±0.04, the authors state the strongest baseline is 0.74, and Hoeffding Tree in the same table is 0.62±0.11; at 0.10, VEPA 0.81±0.05; at 0.25, VEPA 0.83±0.03, AGrail 0.79±0.04; at 0.50, VEPA 0.86±0.02, LiSA 0.80±0.02, RIPPER 0.79±0.02. The authors state VEPA is highest at every proportion.
- Targeted Tampering (Fig. 10): 10% of observed labels are tampered with, concentrated only on prompt-injection samples. The authors report VEPA from 0.68 to 0.83, with the strongest baseline's final-round mean at 0.81, and state it is 0.05 above LiSA and 0.08 above AGrail.
- Long Horizon: 20-round mixed stream final-step VEPA about 0.87, LiSA 0.83, AGrail 0.79 (Fig. 7); the paper does not separately state the event subset. At 30 rounds, VEPA 0.85±0.07, LiSA 0.81±0.06, AGrail 0.80±0.06, RIPPER 0.78±0.07, Hoeffding Tree 0.77±0.07, LLM No Memory 0.71±0.04 (Table 4).
- Model Replacement: In Fig. 8, Fig. 9, Fig. 13, the authors state VEPA retains its advantage; the main text gives no exact F1 for these figures.
- Latency and Rule Count: Evaluating a typed event with a three-predicate rule takes about 0.25 ms. The authors state that parsed active rules require no additional LLM calls, so inference overhead is lower than adaptive guardrails that rely on LLM interpretation of memory; Fig. 14 gives no relative latency multiples in the main text. In Fig. 12, the authors state the verified library grows continuously while the active set is more conservative; the main text gives no final-round counts.
What are some points that can be further explored?
The authors note that formal guarantees hold only after parsing, and the policy language is limited to a fixed schema and binary allow/refuse.
Limitations and Future Directions Noted by the Authors
- Parser: Deterministic and reproducible execution occurs only after an interaction is mapped to a fixed typed event; the upstream LLM parser can still extract errors or be affected by adversarial inputs (Section F).
- Fallback: Decisions made by the LLM fallback are outside the formal guarantee boundary (Section F).
- Policy Language: The current language is binary allow/refuse over a fixed event schema; the authors believe it may not express richer temporal, relational, or multi-step requirements (Section F). Appendix E.2 lists jointly evolving the schema and policy as future work.
- Reducing Neural Dependence: Future work could fill more fields with trusted execution hooks, or combine LLM parsing with parser verification and provenance checks (Section F).
- Language and Learning: Future work could add temporal and relational rules, actions such as escalation or cleanup, and multi-tool or multi-agent workflows; on the learning side, selection-corrected or anytime-valid authority criteria, bounded archives with coresets, and stronger defenses against feedback poisoning and distribution shift (Section F). Appendix E.2 also leaves archive size to future work.
- Statistical Meaning of Guarantees: Appendix D states that the activation criterion is a pointwise posterior statement on fixed rounds, providing no simultaneous or time-consistent guarantee over the entire deployment period, nor a guarantee for the round in which a rule is first activated. Re-estimating with historical evidence that participated in rule construction and selection may make support and contradiction statistics optimistic relative to future unseen events. The authors list selection correction or anytime-valid criteria as future work.
Experimental Coverage
- Methods and Data: Comparison of VEPA, LLM No Memory, AGrail, LiSA, Hoeffding Tree, RIPPER. Data are ASSEBench-Safety (1476), ASSEBench-Security (817), ATBench (1000), and a mixed stream of all three (Table 2, Section 4).
- Rounds and Evaluation: Default 10 online steps, with 20 steps (Fig. 7) and 30 steps (Table 4); five shuffled seeds; default 50% feedback revealed per round. F1 is computed against benchmark labels. The paper does not report human agreement or statistical significance tests.
- Models: Deployment and parsing use Gemini-3.1-Flash-Lite, updating uses Gemini-3.1-Pro; replacements include Gemini-3.6-Flash, Gemini-3.5-Flash-Lite, and Qwen-3.8-27B. The paper does not report exact F1 for Fig. 8, Fig. 9, Fig. 13, nor parser error rates or final-round rule counts.
- Feedback Variants: Table 3 uses reveal proportions of 0.05, 0.10, 0.25, 0.50; the noise experiment flips revealed labels independently with probability 0.1; Fig. 10 concentrates tampering on prompt-injection samples, covering 10% of observed labels.
- Trajectories and Comparison Scope: Experiments use recorded trajectory streams (Appendix B.1). The paper states that AgentDojo and AgentHarm can invoke the same framework at action boundaries, and the streams in this section come from the three benchmarks above. Appendix A.2 explains that static neural audit models, most formal guardrails, and PolicyBank, SafeHarbor, and Membrane were not empirically compared because their supervision or required inputs differ from this online protocol.
Summarize the main content of the paper
The authors state VEPA outperforms memory-based guardrails on covered events across three benchmarks and maintains its lead in noisy and long-horizon mixed streams.
VEPA is a lifelong formal guardrail for LLM agents: policies are executable symbolic rules, and deployment authority is given only to rules that are verified and have sufficient evidence.
- Problem: Guardrails must give checkable allow or refuse before irreversible actions, but safety requirements are often incomplete before deployment. Memory applied with an LLM is inconsistent and can regress; fixed formal policies lack a mechanism for revision from new feedback.
- Approach: Trajectories are first mapped to typed events over a fixed schema. The LLM proposes patches balancing failure repair and regression avoidance, with edits being add, delete, rewrite, split, or merge. The verifier accepts only well-formed and conflict-free candidates. An authority layer uses a posterior error-rate quantile to decide whether a rule enters the active set. An LLM fallback can be used when no rule covers an event, but it cannot override active rules.
- Results on Covered Events: The authors state that VEPA has the highest F1 on all three benchmarks. The final-round numbers written in the main text are ASSEBench-Safety 0.81, 0.02 above the strongest baseline; ATBench 0.76, 0.09 above. Final-step coverage is written as about 80%, 89%, 88%. The final-round F1 for Security is not written in the main text.
- Other Settings: With mixed streams and feedback proportion 0.50, Table 3 gives VEPA final-round F1 of 0.86±0.02. With label flip probability 0.1, the authors state a final-step value of about 0.81 on covered events. The 20-round mixed stream gives about 0.87 at the final step, and the paper does not separately list subsets; the 30-round Table 4 gives 0.85±0.07. In Fig. 11 its regression rate is 3.8% and adaptation F1 is 0.86. Removing the verifier reduces final-round F1 by 0.13 (Fig. 6, full stream with abstention counted as error).
- Authors' Conclusion: The authors believe formal guardrails can adapt over time while keeping deterministic execution after parsing. The authors state that, to their knowledge, this is the first study of lifelong evolution of formal agent guardrails from deployment feedback. The authors also state that the parser, fallback, and binary decisions over a fixed schema remain outside this formal boundary.