EVOLVE: a cumulative auditable guardrail tool evolution framework for LLM agent safetyCumulative and Audited Guardrail Tool Evolution for LLM Agent Safety
The authors propose the self-evolving defense framework EVOLVE, claiming it ranks first in F1 on 3 agent safety benchmarks and 4 backbone models, leading the second best by +22% on average.
A defense paper that does not define the attacker. The defense task is formalized as binary classification: given a user query and the agent's action trajectory, determine whether the interaction is safe/unsafe (unsafe is the positive class). The protected object is the LLM agent that calls tools and executes actions; the defender executes the generated guardrail tools in a sandbox and audits them, and separately tests robustness under four perturbations: Multilingual, Jailbroken, PAP, and ReneLLM.
- Existing agent guardrails are mostly static rules, prompts, or classifiers; the authors argue that they struggle to generalize to new risks that continually emerge in the open world, and that defenses capable of continuously evolving with the environment are needed.
- EVOLVE organizes defense into four stages: generation, reuse, auditing, and repair: multiple specialized agents externalize risks into executable Python guardrail tools, which are retrieved and fused into a lifelong tool library, and after sandbox execution and independent CWE auditing are added to the library; tools can also be repaired or dangerous actions replanned.
- On RJudge, ASSEBench, AgentHarm, and 4 backbone models, the authors claim EVOLVE ranks first in F1 in all 12 combinations, leading the second best by +22% on average; on AI2THOR, risk detection accuracy on 45 demos is 93.3%; under four prompt perturbations, accuracy remains 0.92–1.00.
- The paper has no dedicated limitations section. Experimental coverage: benchmark experiments use 4 backbone models and 3 benchmarks; AI2THOR uses only 45 manual demos; real-world validation consists of 3 robotic arm tasks and 12 OpenClaw risk cases; the paper does not report a cost comparison with baselines.
- Evaluated models
- DeepSeek-V3.2GPT-4oClaude-sonnet-4-5Gemini-3-pro-preview
- Benchmarks
- RJudgeASSEBenchAgentHarmAI2THOROpenClaw6-DoF myCobot 280-Pi 机械臂
- Metrics
- AccuracyPrecisionRecallF1工具复用率风险工具比例
EVOLVE is a tool-level self-evolving defense framework for LLM agent safety, improving average F1 by 22% over existing defenses. The framework externalizes safety knowledge into executable guardrail tools that are continuously inherited, independently audited, and iteratively improved over lifelong interaction. It was validated on multiple benchmarks, backbone models, and embodied environments as well as real robot and autonomous agent systems, indicating that scalable agent safety may require continuously evolving defenses rather than static guardrails.
Related events and news
1 events · 1 news mentions
News that mentions this paper
大模型安全周报:智能体安全边界在签名、授权与上下文
- 公众号 大模型安全研究cites the paper's id or link大模型安全周报:智能体的安全边界在签名、授权与上下文三层防线里
Cumulative and Audited Guardrail Tool Evolution for LLM Agent Safety(https://arxiv.org/abs/2611.02516)
Paper analysis
What problem does this paper attempt to solve?
Static guardrails struggle to generalize to new risks; the authors propose making agent defense an accumulable, auditable self-evolving capability.
Core problem: Existing LLM agent guardrails are static and struggle to cope with safety risks that continually emerge in the open world and cannot be predefined.
- Problem setting and importance: The authors state that LLM agents are transforming from passive language interfaces into active decision-makers in the open world, and that safety failures not only produce harmful outputs but may also cause real-world consequences such as financial fraud, privacy leakage, and unsafe robotic actions.
- Shortcomings of existing methods: The authors argue that existing defenses (prompt constraints, fine-tuned safety discriminators, rule/knowledge-driven policy enforcement) share an assumption—that risks can be predefined; these defenses degrade when threat scenarios shift, creating a structural mismatch between "dynamic risks and static defenses."
- Core observation and hypothesis: Drawing on how human society transforms experience into transferable protective knowledge, the authors hypothesize that defense should accumulate safety knowledge through a loop of "exploration—refinement—reuse—auditing"; another key observation is that self-evolved guardrail tools may themselves contain vulnerabilities, which the authors call Vulnerable Guardrail Tools (VGT), making independent auditing structurally necessary.
- Method proposed in the paper: EVOLVE, a tool-level self-evolving defense framework that externalizes safety knowledge into executable guardrail tools, continuously inheriting, independently auditing, and iteratively refining them across lifelong interaction through four stages: generation, reuse, auditing, and repair.
- Threat model: This is a defense paper and does not define an attacker profile; the protection tasks and objects are as follows:
- Protected objects: LLM agents that invoke tools, execute actions, and interact with the external environment.
- Defense task: Formalized as binary classification—given a user query and the agent's action trajectory, determine whether the interaction is safe/unsafe (unsafe is the positive class, covering safety constraints such as privacy leakage and dangerous physical actions, and security constraints such as code injection and unauthorized access).
- Defender capabilities: Execute generated guardrail tools and agent actions in an isolated sandbox, and after independently auditing tools, repair tools or replan actions.
- Adversarial testing: Defense accuracy was additionally tested under four input perturbation strategies: Multilingual, Jailbroken, PAP, and ReneLLM.
What related research exists?
The paper compares against four types of agent defense baselines and positions itself as a framework that closes the complete evolution loop of "externalization—reuse—auditing—repair."
Agent defense frameworks (direct baselines)
- CoTSafe [9]: A prompt-based framework that evaluates each step of an agent task step by step.
- ShieldAgent [10]: A model-based framework that fine-tunes a safety judgment model on 4000 agent interaction records; the paper notes that it does not rely on a backbone LLM (fine-tuned based on Qwen), and scores are the same across model groups.
- GuardAgent [11]: An agent-based framework that uses a guard agent with knowledge reasoning capability to protect another agent.
- AGrail [28]: A lifelong guardrail framework with extensible safety guidelines and adaptive safety detection. The paper notes that adaptive/lifelong frameworks such as GuardAgent and AGrail "only address isolated components and do not close the complete loop from knowledge externalization and reuse to auditing and repair"; EVOLVE's distinction lies precisely in closing the entire evolution loop.
Limitations of agent safety and guardrails (Appendix C)
- TrustAgent [58]: Requires predefined rules; GuardAgent [11] and Conseca [59]: Rely on manually specified trusted context. The paper states that most existing LLM agent protection methods lack generalization capability.
- The paper argues that existing adaptive work [28, 48] remains insufficient for agents with diverse output forms, and that letting agents evolve themselves is key to bridging the gap.
Self-evolving agents (Appendix C)
- Following [46], the paper divides self-evolution into four directions: model evolution (refining parameters with self-generated data, e.g., [47–49]), memory evolution ([50–52]), tool evolution (creating, reusing, and optimizing tools, [53, 54]), and workflow evolution ([55, 56]). EVOLVE belongs to the application of the tool evolution direction to safety defense.
Agent misevolution and code vulnerabilities (Appendix D)
- Han [45] proposes the "Alignment Tipping Process," stating that agent behavioral policies drift during sustained interaction; Shao [46] points out that agents may create tools containing vulnerabilities during tool evolution; Peng [38] finds that code agents tend to generate "functionally correct but vulnerable" (FCV) patches. EVOLVE's VGT concept and auditing design continue this line of work.
Benchmarks: Evaluation uses RJudge [6], ASSEBench [19], and AgentHarm [20]; embodied validation uses AI2THOR [25] (demos built following AgentSafe [29]), a 6-DoF robotic arm [26], and OpenClaw [27] (following the 12 categories of digital safety risks in [37]).
How does the paper address this problem?
EVOLVE uses six dedicated agents to externalize risk into executable tools, forming a lifelong evolution loop through retrieval and fusion, sandbox auditing, and repair and replanning.
EVOLVE formalizes agent safety as cumulative safety evolution: safety knowledge is continuously generated, reused, audited, and repaired, and externalized into executable Python guardrail tools stored in a lifelong tool library. The defense task is binary classification: given a user query Q and an action trajectory τ, output a safe/unsafe judgment y.
Generation: risk identification and tool creation
- AnalysisAgent performs open-ended risk reasoning over Q, τ, and environment context C, interacts with the lifelong risk knowledge base KR, and outputs a risk category R and a flag z indicating whether a tool is needed: (R, z) = fanalysis(Q, τ, C, KR), i.e., determining whether the current scenario hits a known risk or needs to be summarized as a new category.
- When z=1, generate an executable Python tool for that risk G = fgen(Q, τ, C, R); tools uniformly accept two string parameters (query, action) and return bool (True=risk detected).
- SimulationAgent (optional): infers the most likely action chain τ when only user instructions are available and there is no explicit action sequence.
Reuse: retrieval and evolutionary fusion
- FusionAgent maintains a lifelong tool library KG = {(Ti, Ri, ϕi)} (tool, risk category, functional description). Two-stage retrieval: first filter the candidate set MR by risk category, then use an LLM to assess functional-logic alignment, outputting a match flag m and the most similar tool Tsim.
- When m=1, fuse the new tool's logic into an existing tool to obtain an evolved tool G′, expanding coverage; when m=0, keep the new tool as a candidate. In both cases, the tool must pass downstream auditing before entering the library.
Auditing: sandbox execution and independent verification
- ExecutorAgent executes guardrail tools and agent actions in an isolated sandbox, producing execution evidence; the default backend is a Docker container, and an LLM-simulated sandbox is also provided to cover domains without dedicated containers.
- AuditorAgent audits evolved tools from a vulnerability perspective against 10 representative CWEs, giving a verdict D∈{0,1} and a vulnerability report V; it also gives the final safety verdict y by combining tool execution results, action execution results, and tool logic integrity.
Repair: iterative patching and action replanning
- When auditing fails (D=0), targeted repair is performed according to the vulnerability report; the audit–repair loop runs at most 3 rounds, and if it still fails the tool is discarded; only tools that pass auditing are admitted to the lifelong tool library.
- RevisionAgent (optional): when the final verdict is unsafe, replan the trajectory according to the risk category and action space, eliminating the risk while preserving the user's core intent (e.g., changing "put the phone in the microwave to heat it" to "put it on the table").
Implementation and parameters
- All LLM functions (fanalysis, fgen, fsim, fmatch, ffuse, faudit, frepair, frevise) are API calls with task prompt templates, parsing JSON output; Appendix E gives the complete prompts for each agent.
- Backbone models are DeepSeek-V3.2, GPT-4o, Gemini-3-pro-preview, and Claude-sonnet-4-5, temperature=0, random seed 44.
- Prompt reliability validation (Appendix I): non-decision modules used four-model mutual voting, with coverage above 85% on 150 sampled inputs; decision modules agreed with 4 human experts at 80.22%–83.04% on 450 samples.
What experiments did the paper conduct?
3 benchmarks × 4 backbones, 12 main experiment groups in total, plus ablations, evolution trajectories, perturbation robustness, VGT auditing, and two real-world cases.
Experimental setup
- Backbone models under test: DeepSeek-V3.2, GPT-4o, Gemini-3-pro-preview, Claude-sonnet-4-5 (temperature=0, seed 44); baselines and EVOLVE use the same backbones, while ShieldAgent is fine-tuned based on Qwen and does not rely on a backbone API.
- Benchmarks: RJudge (571 multi-turn interactions, 270 safe/301 risky, 5 domains), ASSEBench (the security subset under the strict criterion, 817 items, 412 safe/405 risky), AgentHarm (352 tasks, 176 safe/176 risky).
- Baselines: CoTSafe, ShieldAgent, AGrail, GuardAgent.
- Metrics: Accuracy, Precision, Recall, F1, with unsafe as the positive class, higher is better.
- Ablation: On RJudge with DeepSeek, each comparison experiment repeated 3 times and averaged.
- VGT auditing: An LLM judge evaluates generated tools according to 10 categories of CWE; manual verification randomly samples 120 pre-repair tools and 120 post-repair tools per benchmark, blind-reviewed by 4 safety researchers not involved in development (Table D2).
Main results
According to Table J3 (F1 column; ShieldAgent does not rely on a backbone, so scores are the same across groups):
Swipe horizontally to read the table
Method RJudge (DeepSeek) RJudge (GPT-4o) ASSEBench (DeepSeek) ASSEBench (GPT-4o) AgentHarm (DeepSeek) AgentHarm (GPT-4o) CoTSafe 0.7815 0.5804 0.7722 0.5781 0.6915 0.4801 ShieldAgent 0.8318 0.8318 0.8095 0.8095 0.1791 0.1791 AGrail 0.7601 0.4910 0.8587 0.7482 0.4964 0.3009 GuardAgent 0.6086 0.5455 0.7485 0.6336 0.7281 0.3362 EVOLVE 0.9065 0.9123 0.8690 0.8869 0.8719 0.9035 The conclusions for the Claude and Gemini groups are the same (EVOLVE's F1 in each column is 0.8841/0.8758/0.8994 and 0.9240/0.8834/0.9107, respectively), omitted here.
- The authors state that EVOLVE ranks first in F1 across all 12 benchmark–model combinations, averaging +9.0% (RJudge), +7.4% (ASSEBench), and +41.1% (AgentHarm) relative to the respective second-best, summarized in the abstract as an average of +22%.
- The authors state that EVOLVE is stable across backbones (F1 between 0.86–0.92, maximum variance across models on a single benchmark below 0.04), whereas baselines fluctuate widely, e.g., ShieldAgent drops from 0.83 on RJudge to 0.18 on AgentHarm.
- Domain level (Fig. 2b, five RJudge domains, GPT-4o): EVOLVE has the highest F1 in all five domains, exceeding 0.92 in application and programming, 0.83 in IoT, and 0.86 in finance; the authors state it leads the best opponent by +0.27 on average.
Ablation (Fig. 2c, RJudge, DeepSeek, average of 3 runs)
- Removing AnalysisAgent (using predefined risk categories instead): Largest degradation, Precision 0.90→0.54, F1 0.91→0.64, Accuracy and Recall drop by 12.6% and 14.7%, respectively.
- Removing FusionAgent (no retrieval, no fusion): F1 0.91→0.89, Accuracy 0.91→0.89.
- Removing AuditorAgent (no auditing): Recall 0.91→0.85, F1 0.91→0.86.
Evolution process and perturbation robustness
- Sample order (Fig. 3, RJudge application domain, GPT-4o, recorded every 30 samples): The three orders—decreasing difficulty, increasing difficulty, and random—eventually converge to similar cumulative accuracy and number of risk categories; the figure caption gives one of the trajectories: cumulative accuracy 86.7%→94.4%, risk categories 4→17, tool library 21→84, reuse rate 55.8%→81.9%. The authors state that reuse rate and accuracy change in tandem, indicating that reused tools bring real defensive utility.
- Frozen tool library (Table B1, RJudge application domain 252 samples, GPT-4o): Equipping a frozen tool library yields Accuracy +15.47 and F1 +8.38 over pure LLM reasoning, with Recall above 98% for both; the gain is concentrated in Precision (+11.72).
- Perturbation attacks (Fig. 5a, 50 randomly selected risky RJudge samples): EVOLVE achieves accuracy of 1.00 and 0.94 under Jailbroken and ReneLLM, and 0.92 under Multilingual; CoTSafe drops from 0.88 to 0.64 under ReneLLM and to 0.72 under Jailbroken.
VGT auditing and tool use
- Tool use and reuse (Fig. 5b, RJudge): On average more than 50% of tasks invoke generated tools (highest is Claude in the IoT domain at 86.7%); average reuse rate exceeds 50% (highest is GPT-4o in the application domain at 85.7%).
- VGT phenomenon (Fig. 5c): On average more than 20% of initially generated tools by DeepSeek and GPT-4o contain vulnerabilities, with some model–domain pairs reaching 50% (GPT-4o in IoT); after auditing, DeepSeek's programming domain drops from 44.78% to 8.20%, and GPT-4o's finance domain drops from 15.89% to 1.87%.
- Manual verification (Table D2, n=120 per cell): The binary agreement rate between LLM auditing and human review is 90.8%–94.2% before repair and 95.8%–97.5% after repair; the number of tools flagged as vulnerable after repair drops from 25–33 to 6–11.
Embodied and real-world cases
- AI2THOR: 45 demos manually constructed following AgentSafe, with risk detection accuracy of 93.3%; Fig. 4 shows three cases, and the authors state that EVOLVE replaces dangerous actions with feasible benign alternative actions rather than simply refusing.
- Robotic arm (6-DoF myCobot 280-Pi, 3 progressive tasks): Swinging a knife and dropping objects toward a person are identified and blocked; a knife-transport task with an obstacle in the path first moves the obstacle aside and then executes.
- OpenClaw: 12 categories of digital safety risks tested following [37]; in one case, the authors state that EVOLVE identified the semantic pattern of "transferring funds to an unverified address" and refused to execute, which the paper states cannot be solved by simple keyword matching.
Other ablations and analyses
- Cost (Fig. A1, RJudge application domain 252 samples, GPT-4o): On average 8.12 LLM calls per sample, average output of 1120.15 tokens per call, average time of 22.17 seconds per sample; more than 100 samples fall in the 0–4 calls range, and nearly one third of samples complete within 10 seconds.
- Prompt validation (Appendix I): The cross-model agreement coverage of the four models on non-decision modules all exceeds 85% (150 inputs per module); the agreement rate between the decision module and 4 human experts is 80.22%–83.04% (450 samples).
What are some points that can be further explored?
The paper does not have a dedicated limitations section; the Discussion proposes that self-evolving systems need governance mechanisms that co-evolve with capability growth.
Limitations and future directions noted by the authors
- Self-evolution paradox (Discussion): The authors state that self-evolving tools systematically introduce vulnerabilities (VGT), reflecting the tension of "optimizing for functional effectiveness first, with potential safety properties under-constrained"; self-evolving agent systems may exhibit a similar "safety divergence."
- Auditing is a necessary counterpart (Discussion): The authors argue that evolution without independent auditing will amplify hidden vulnerabilities through iterative optimization and reuse; future self-improving systems may need governance mechanisms that co-evolve with capability growth and constrain adaptation within verifiable safety boundaries.
- The paper has no Limitations section and lists no other explicit limitations or future work items.
Experimental coverage
- Benchmark experiments cover 4 backbone LLMs (DeepSeek-V3.2, GPT-4o, Gemini-3-pro-preview, Claude-sonnet-4-5) × 3 benchmarks (RJudge 571 items, ASSEBench security subset 817 items, AgentHarm 352 items), with 4 baselines: CoTSafe, ShieldAgent, AGrail, GuardAgent.
- Ablations are conducted on RJudge with DeepSeek, with each comparison repeated 3 times; the paper does not report repetition counts or confidence intervals for the main results.
- Perturbation robustness is tested with 4 strategies on 50 randomly selected risky RJudge samples; AI2THOR uses 45 manually constructed demos; the robotic arm uses 3 tasks; OpenClaw uses 12 categories of risk cases.
- Manual VGT verification uses 120+120 sampled tools per benchmark and 4 reviewers; the agreement rate between the decision module's prompts and humans is 80.22%–83.04%.
- The cost analysis (Appendix A) reports only EVOLVE's own call counts, tokens, and time in the RJudge application domain; the paper does not report a cost comparison with baselines.
Summarize the main content of the paper
EVOLVE makes agent defense a tool-level evolution loop of generation—reuse—auditing—repair; the authors state that it ranks first in F1 across all 12 benchmark–model combinations.
An LLM agent defense paper whose core claim is that static guardrails cannot cope with new risks in the open world, and that defense itself should become a cumulative, auditable, self-evolving capability.
- Problem: the authors argue that existing guardrails (prompts, fine-tuned discriminators, rule policies) assume risks can be predefined and degrade when threat scenarios shift.
- Method: EVOLVE consists of AnalysisAgent, FusionAgent, ExecutorAgent, and AuditorAgent (plus optional SimulationAgent and RevisionAgent) in a closed loop: externalize risks into executable Python guardrail tools, retrieve and fuse them into a lifelong tool library, execute in a sandbox, then independently audit against 10 CWEs (at most 3 repair rounds), and replan dangerous actions into safe actions that preserve intent.
- Main results: on RJudge, ASSEBench, AgentHarm × 4 backbone models, the authors claim EVOLVE ranks first in F1 in all 12 combinations, averaging +9.0%/+7.4%/+41.1% over the second best (summarized in the abstract as +22%), with its own F1 stable at 0.86–0.92.
- Evolution and auditing evidence: tool reuse rate averages over 50% (up to 85.7%); over 20% of initially generated tools on average contain CWE vulnerabilities (the VGT phenomenon), and after auditing the proportion of risky tools, e.g., in the DeepSeek programming domain, drops from 44.78% to 8.20%; LLM auditing agrees with 4 human reviewers at 90.8%–97.5% (n=120 per cell).
- Generalization validation: risk detection 93.3% on 45 AI2THOR demos; accuracy 0.92–1.00 under four prompt perturbations; blocking or safe replanning completed on 3 robotic arm tasks and 12 categories of OpenClaw risk cases.
- Authors' conclusion: scalable agent safety may not depend on enumerating all risks in advance, but on enabling the defense system to continuously expand, audit, and compound safety capabilities through tool-level inheritance; self-evolution must be paired with independent verification, otherwise hidden vulnerabilities will be amplified through reuse.