VEPA: Verified Evolving Formal Policy for Lifelong LLM Agent Guardrails

Duy Nguyen, Lesly Miculicich, Bhavana Dalvi Mishra, Shuo Li, Krishnamurthy Dj Dvijotham, Mohit Bansal, Tomas Pfister, Long T. LearXiv 2026

As LLM agents move from simple chat interfaces to autonomous systems with access to private files and system tools, the stakes for safety have never been higher. Traditional guardrails face a "reliability vs. adaptability" dilemma: neural guardrails (using an LLM to judge another LLM) are flexible but inconsistent, while formal guardrails (hardcoded symbolic rules) are reliable but brittle.

A new paper from researchers at Google and UNC Chapel Hill introduces VEPA (Verified Evolving Formal Policy), a framework that bridges this gap by allowing formal guardrails to evolve safely over time.

TL;DR

VEPA is a framework that automatically evolves symbolic, deterministic guardrail policies for LLM agents based on deployment feedback. It uses an LLM to propose policy updates, a deterministic verifier to ensure those updates are conflict-free, and an "authority layer" that only activates rules once they have sufficient empirical evidence.

What Problem Does This Paper Address?

LLM agents are increasingly "lifelong" learners, encountering new risks, edge cases, and attacks after they are deployed. To keep them safe, we need guardrails that can adapt.

However, existing adaptive methods usually rely on "natural language memory"—essentially a list of safety tips the LLM consults. This is problematic because LLM inference is stochastic; the same prompt might lead to an "Allow" decision one minute and a "Refuse" decision the next. On the other hand, formal symbolic guardrails provide deterministic, auditable decisions, but they are typically static. If a new type of prompt injection emerges, a human must manually write a new rule.

VEPA aims to automate this evolution while maintaining the mathematical rigor of formal methods.

Figure 1 illustrates how static policies fail to adapt and natural language memories can lead to regressions or conflicts, whereas VEPA evolves symbolic rules that are verified for consistency.

Methods

VEPA operates in a two-layer architecture that separates policy generation from policy enforcement.

  1. Structured Event Parsing: First, raw agent traces are parsed into a typed Domain-Specific Language (DSL). This turns a messy conversation into a structured record (e.g., action: share_file, data: confidential, recipient: external).
  2. Layer 1: Constrained Policy Evolution: When the system receives feedback (e.g., a user flags a safety failure), an LLM acts as a "proposer." It suggests "patches"—edits like adding, deleting, or splitting symbolic rules.
  3. Deterministic Verification: Every proposed patch must pass a verifier that checks for structural validity and "conflict-freedom" (ensuring no two rules provide opposite decisions for the same event).
  4. Pareto Search: VEPA maintains an archive of candidate policies, using a multi-objective search to find the best balance between fixing new failures and avoiding "regressions" (breaking things that previously worked).
  5. Layer 2: Evidence-Aware Rule Authority: Even a verified rule isn't trusted immediately. VEPA uses a Bayesian model (Beta-Bernoulli) to track a rule's performance. A rule only moves from "Inactive" to "Active" once it has accumulated enough consistent evidence to meet a specific safety threshold.
Figure 2 provides an overview of the VEPA architecture, showing the loop between LLM-guided policy edits, deterministic verification, and the evidence-gated authority layer.

Datasets

The authors evaluated VEPA across three major agent safety and security benchmarks:

  • ASSEBench-Security: Focuses on "red-teaming" risks like prompt injection and unauthorized data exfiltration.
  • ASSEBench-Safety: Covers broader harms like privacy violations and unsafe system modifications.
  • ATBench: Focuses on failures arising from agent-tool interactions.

They also tested VEPA on a Mixed Stream of all three datasets to simulate a realistic, heterogeneous deployment environment.

Key Insights and Ideas

  • The "Proposer-Verifier" Split: By letting the LLM propose logic rather than make the final decision, VEPA gains the creative problem-solving of neural networks without inheriting their unreliability.
  • Conflict-Freedom as a First-Class Citizen: Because the rules are symbolic, the system can mathematically prove that a new rule won't contradict an existing one. This prevents the "policy bloat" and confusion common in natural language guardrails.
  • Authority Gating: The idea that a rule must "earn" its way into production is a powerful safety valve. It prevents the system from overreacting to a single noisy or malicious feedback point.

Key Results

  • Superior Performance: VEPA consistently outperformed baselines like AGrail and LiSA. In the mixed-stream evaluation, VEPA reached an F1 score of 0.86, compared to 0.80 for the best baseline.
  • Growing Coverage: As the agent encounters more tasks, the "formal authority" of the system grows. By the end of the experiments, VEPA could make deterministic decisions for 80-90% of all events.
  • Robustness to Noise: Even when 10% of the feedback was intentionally corrupted (flipped labels), VEPA’s performance remained stable, thanks to its evidence-gating mechanism.
  • Efficiency: Executing a symbolic rule takes roughly 0.25ms, which is negligible compared to the hundreds of milliseconds required for an LLM-based guardrail check.

Limitations and Future Work

The authors identify a few key areas for improvement:

  • The Parser Bottleneck: The system still relies on an LLM to parse raw text into the structured DSL. If the parser makes a mistake, the entire formal guarantee is undermined. Future work could involve populating fields directly from trusted system hooks.
  • Fixed Schema: Currently, the "vocabulary" of the guardrail (the DSL) is fixed. If a new type of risk emerges that requires a new attribute (e.g., "geographic location"), the schema must be manually updated.
  • Binary Decisions: VEPA currently only handles "Allow" or "Refuse." Expanding this to more complex actions like "Redact" or "Escalate to Human" is a logical next step.

Summary updated

BibTeX
@misc{nguyen2026vepa,
  author = {Duy Nguyen and Lesly Miculicich and Bhavana Dalvi Mishra and Shuo Li and Krishnamurthy Dj Dvijotham and Mohit Bansal and Tomas Pfister and Long T. Le},
  title = {{VEPA: Verified Evolving Formal Policy for Lifelong LLM Agent Guardrails}},
  year = {2026},
  eprint = {2610.12813},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.12813},
}
Figure