AgenticRed: Evolving agentic systems for red teamingAgenticRed: Evolving Agentic Systems for Red-Teaming
AgenticRed achieves 96% ASR on HarmBench against Llama-2-7B, and transfers to 100% on GPT-5.1.
The red teaming goal is to make the target LLM give a response to malicious intent that the judge judges as successful. The search is over single-turn, query-agnostic agent workflows, not individual prompts. The evolution phase can query local open-source targets (temperature 0) and judge log probabilities; the paper calls JS-Guided black-box. Closed-source models did not participate in evolution, only in transfer evaluation without retuning.
- Manual red-teaming workflows are called human-biased by the authors, and exploring the broader design space is expensive. AgenticRed treats automatic red-teaming as system design, evolutionarily generating single-round, query-agnostic attack workflows.
- The archive contains Self-Refine and JS-Guided AdvReasoning. A GPT-5 meta-agent writes multiple systems per generation, first selecting by ASR on 16 intents, then evaluating 50 before archiving; failed and successful prompt memories are passed to descendants. The target is queried at temperature 0, and judge log-probabilities are used.
- ASR on HarmBench is 96%, 98%, 100% for Llama-2-7B, Llama-3-8B, Qwen3-8B (Table 1). Table 2 shows 100% for GPT-5.1 and 48 for Haiku 4.5.
- The authors note that targets are continuously patched and the design space has mode collapse. Experiments include three open-source attacker-target settings and the Table 2 transfer targets; that table's baselines are taken from Wang et al. (2026). The paper does not report the diversity neighbor count k.
- Evaluated models
- Llama-2-7BLlama-3-8BQwen3-8BGPT-3.5-TurboGPT-4oGPT-5.1GPT-5.2Claude Sonnet-3.5Claude Haiku-4.5DeepSeek-R1DeepSeek-V3.2Qwen3-Max
- Benchmarks
- HarmBench StandardAdvBenchClearHarmStrongREJECT
- Metrics
- ASRStrongREJECT judge scorePrecisionRecallSpecificityF1-scoreAccuracyqueries-per-success
The research proposes AgenticRed, a pipeline that uses large language model in-context learning to automatically evolve red-teaming systems, without requiring human-specified red-teaming procedures, treating red teaming as a system design problem and improving red-teaming systems through evolutionary selection and cross-generation knowledge iteration. The paper reports it achieves a 96% attack success rate on HarmBench (Llama-2-7B), 98% (Llama-3-8B), and 100% (Qwen3-8B); the generated systems are query-independent and transferable, also reporting 100% ASR on GPT-5.1, DeepSeek-R1, and DeepSeek V3.2. The authors argue that evolutionary algorithms are a safety path that can keep pace with rapid model evolution.
Related events and news
0 events · 3 news mentions
News that mentions this paper
- Failure-Firstnames the paperAI Safety Daily 5 月 3 日:VLA 模型安全综述、Spore 记忆提取攻击与多轮越狱基准
Evaluated on HarmBench, AgenticRed achieves superior attack success rates compared to fixed attacker designs, suggesting defensive benchmarks also need to model adaptive adversaries.
- Failure-Firstcites the paper's id or linkAI Safety Daily 5 月 21 日:AgentWall、IS-Bench、AgenticRed 等五项 AI 安全研究
The result reframes automated red-teaming as a system design problem rather than a prompt engineering problem. arXiv:2601.13518
- Failure-Firstcites the paper's id or linkAI Safety Daily:SpecBench 等四项研究显示系统通过可见安全检查却在关键检查上失败
advance for systematic red-teaming coverage. arXiv:2601.13518
Paper analysis
What problem does this paper attempt to solve?
The authors state that manual red-teaming workflows have human bias, so they instead turn to evolutionary search for system design.
Automated red teaming still relies on manually specified agent workflows; the authors state this introduces human bias and makes exploration of the broader design space expensive.
- Scenario: The authors state LLMs have entered healthcare, education, finance, and content moderation, where safety and alignment are core challenges. Automated red teaming uses computation to discover adversarial prompts; mainstream approaches often organize attack strategies through multi-agent workflows.
- Limitations: The authors state text-feedback methods may have low ASR when fine-grained quantitative signals are lacking; RL has sparse rewards on strongly aligned targets and overfits on weaker targets with poor transfer. Hand-designed workflows are expensive, time-consuming, and biased.
- Approach: The authors treat developing red teaming systems as a system design problem, using in-context learning plus evolutionary algorithms to search workflows, rather than optimizing attack strategies within a fixed structure.
- Method: Propose AgenticRed: starting from a red teaming archive, a meta-agent generates candidate systems generation by generation, keeps the fittest by fitness, and accumulates memory of failed and successful attacks. The authors state this is the first framework to formulate automated red teaming as an agent system design problem.
- Threat model:
- Goal: Given malicious intent I, find prompt p such that target LLM T's response is judged successful by judge J. This paper only discusses red teaming centered on jailbreaks.
- Interface: The evolution phase queries responses from local open-source targets with temperature set to 0, and can query the judge and its log probabilities. The paper calls JS-Guided AdvReasoning a black-box implementation that does not need white-box logits.
- Search object: Single-turn, query-agnostic agent workflow code, not prompts optimized individually for a single intent.
- Victim models: Evolution targets are Llama-2-7B, Llama-3-8B, Qwen3-8B. Closed-source models did not participate in evolution, only in transfer evaluation without retuning.
What related research exists?
The authors divide related work into feedback-driven red-teaming, workflow optimization, and evolutionary attacks, and compare against the single-round setting.
Feedback-Driven Automated Red Teaming
- Text feedback: TAP (Mehrotra et al., 2024), PAP (Zeng et al., 2024), AutoDAN-turbo (Liu et al., 2025b) mainly use text feedback or guidance. The authors state they can leverage the language model's text and reasoning, but ASR may be low when fine-grained quantitative information is lacking.
- Numerical and RL: Jailbreak-R1 (Guo et al., 2025), RL-Hammer (Wen et al., 2025) use numerical rewards to directly optimize jailbreak models. The authors state that rewards are sparse on strongly aligned targets, policies easily overfit on weak targets, and transfer to more robust targets is difficult.
- Reasoning plus numerical: PAIR (Chao et al., 2025) and tree-structured search (Sabbaghi et al., 2025) combine reasoning with numerical feedback. The authors state these are still manually designed agent workflows.
Agent System Optimization
- Structured frameworks: Self-reflection (Madaan et al., 2023), multi-role debate (Du et al., 2023), role assignment (Xu et al., 2025) are used for long-horizon tasks.
- Workflow search: Meta Agent Search (Hu et al., 2025) writes workflows as code and iteratively searches with a growing experience list. Subsequent work uses graph representations, MCTS, or direct preference optimization to improve search efficiency. The authors state these methods are effective on reasoning tasks such as math and code.
- This paper extends this paradigm to red teaming and modifies the archive and interface to address the lack of target responses and judge feedback.
Evolutionary Safety Attacks
- EvoSynth (Chen et al., 2025) targets multi-turn attacks, evolving query-specific attack programs.
- Claudini (Panfilov et al., 2026) applies AutoResearch to red teaming, optimizing GCG-style discrete suffixes to reduce token-forcing loss.
- The authors contrast that AgenticRed performs single-turn, query-agnostic attack workflows to generalize across benchmarks and produce more diverse attack styles.
Baselines and Data
- Baseline methods: The paper compares Self-Refine, AdvReasoning, AutoDAN-Turbo, PAIR, UJA; StrongREJECT also compares TAP, PAP-top5. The AutoDAN-Turbo, PAIR, ActorAttack, Jailbroken, X-Teaming numbers in Table 2 are taken from Wang et al. (2026), not results rerun by the authors in that table.
- Benchmarks: HarmBench Standard, AdvBench, ClearHarm; judge side uses HarmBench classifier and StrongREJECT.
The authors position this paper as: not optimizing attack strategies within a predefined structure, but using evolutionary selection and cross-generation knowledge to search the red teaming system itself.
How does the paper address this problem?
AgenticRed uses a meta-agent to generate systems generation by generation over a red-teaming archive, selecting by subset ASR and passing cross-generation memory.
AgenticRed adapts Meta Agent Search into a red-team-specific evolutionary process: a meta-agent writes new systems based on an archive, selects the fittest on a small subset, and uses cross-generation attack memory to guide the next generation.
Problem setting
A red-teaming system A maps an intent I to a prompt p; if a target phrase is also given, then p=A(I, target(I)). A judge J maps the response and intent to success or failure. Effectiveness is measured by attack success rate:
ASR(A,T,J,D)=𝔼I∼ D[J(T(A(I)),I)]
That is, the expectation over the dataset of the judge judging success. The authors want a framework that can quickly find an effective A for a given target LLM and judge. An agentic system refers to a process that calls the LLM multiple times, coordinates roles or tools, and has memory; it is not a single prompt.
Archive and JS-Guided
The archive does not use general reasoning workflows but red-team components that can read target responses and judge feedback. The initial two items are Self-Refine (Reflexion) and the authors' JudgeScore-Guided Adversarial Reasoning. The latter borrows the Proposer and Verifier from Adversarial Reasoning: iteratively ranking and refining the reasoning string given to the attack model. The original method requires white-box target logits; JS-Guided changes to black-box, using the judge model's first-token logit, and Appendix B.2 further writes it as the log-probability of the judge outputting the failure token, used as a reverse reward, with fewer iterations. The authors give three reasons: it can use response and judge signals, it covers multiple modules and helper functions, and different workflows differ greatly in fitness.
Evolutionary selection and cross-generation memory
The meta-agent is GPT-5-2025-08-07. Each generation samples M offspring; in the implementation M=3, with at most 10 generations. The selection rule is
An+1∈argmaxA∈ CnASR(A,T,J,d)
That is, only the system with the highest ASR on the initial subset d is sent to fuller evaluation and written into the archive. In the implementation, d is 16 intent-target pairs randomly drawn from the training set; before archiving, final fitness is computed on 50 more pairs. Format or length errors that appear only at deployment are fed back for self-correction. The algorithm has a written cap k; the main text does not give a value for k.
Cross-generation knowledge is stored in FailedPromptMemory and SucceedPromptMemory. Before new attacks, the failure memory is checked to avoid repetition; in diversity search, the semantic distance between candidate successful attacks and existing successful attacks is evaluated.
Search interface
The authors state that directly applying Meta Agent Search gives little improvement, partly because there is no interface to interact with the target and judge (Appendix D.1). They therefore provide structured guidance and two helper functions: querying the target at temperature 0 so responses to the same prompt are reproducible; and querying whether the judge sufficiently responds to the intent, returning log-probabilities. Success can be returned immediately, giving a verifiable dense signal. Appendix F gives the meta-agent and judge prompts; constraints therein are not excerpted here.
Three settings during evolution
HarmBench Standard is split into training and validation; evolution uses only the training set. The three combinations are: Mixtral-8x7B attacking Llama-2-7B, Mixtral-8x7B attacking Llama-3-8B, and Qwen3-8B attacking Qwen3-8B, the last to avoid attacker-target capability mismatch. The judge is HarmBench-Llama-2-13b-cls. Appendix A gives pseudocode.
What experiments did the paper conduct?
The authors state that ASR on HarmBench exceeds the baselines in the table; Table 2 shows 100% for GPT-5.1 and 48 for Haiku 4.5.
Experimental setup
- Targets: Evolution phase targets are local Llama-2-7B, Llama-3-8B (also referred to as Llama-3-8B-Instruct in the results narrative), and Qwen3-8B. Transfer targets are in Table 2: GPT-3.5-Turbo, GPT-4o, GPT-5.1, GPT-5.2, Sonnet 3.5, Haiku 4.5, DeepSeek-R1, DeepSeek-V3.2, Qwen3-Max. The main text writes the latter two as Claude Sonnet-3.5 and Claude Haiku-4.5.
- Attack side: The meta-agent is GPT-5-2025-08-07. The attacker LLM is Mixtral-8x7B or Qwen3-8B. Ablations additionally use Vicuna-13b-v1.5 as the attacker and DeepSeek-R1 as the meta-agent. Qwen3-8B and DeepSeek-R1 also appear among the tested targets.
- Data and procedure: HarmBench Standard is split into training/validation; evolution uses only the training set. Each generation has 3 candidates, initial evaluation on 16 pairs, the fittest evaluated on 50 more pairs, for 10 generations. After evolution, AdvBench, ClearHarm, and the held-out HarmBench validation set are additionally evaluated. The paper does not give total sample counts for these benchmarks.
- Baselines: Table 1 lists Self-Refine, AdvReasoning, AutoDAN-Turbo, PAIR, UJA. StrongREJECT additionally has TAP, PAP-top5. Table 2 baseline numbers are taken from Wang et al. (2026).
- Metrics and judges: The primary metric is ASR. The HarmBench judge is HarmBench-Llama-2-13b-cls. StrongREJECT is scored by gpt-4o-mini according to Appendix F.2's refusal items and 1–5 persuasiveness and specificity; the table reports the judge score. Human evaluation is 200 pairs, 5 people, majority vote.
- Repetition: Appendix B.1 states that post-evolution evaluation is repeated over 3 random seeds, reporting median ASR, 95% confidence intervals, and queries-per-success. Table 1 ASR does not list intervals; StrongREJECT gives ±.
Main results
According to Table 1a, HarmBench ASR (%):
| Target | AgenticRed | Self-Refine | AdvReasoning | AutoDAN-Turbo | PAIR | | Llama-2-7B | 96 | 4 | 60 | 36 | not reported | | Llama-3-8B | 98 | 14 | 88 | 62 | 75 | | Qwen3-8B | 100 | 58 | 80 | 83 | 47 |
- UJA is 72 on Llama-3-8B and 63 on Qwen3-8B; not reported for Llama-2-7B. In Table 1a, AgenticRed is higher than the reported baselines in the same table on all three targets.
- The authors state that on Llama-2-7B it exceeds JS-Guided AdvReasoning by 46% and AdvReasoning by 36% within six generations; Llama-3-8B-Instruct reaches 98% within four generations, and Qwen3-8B reaches 100% within two generations. JS-Guided's standalone ASR is not listed in Table 1.
- The authors state that after ASR saturates, queries-per-success decreases across generations, which they attribute to cross-generation knowledge. The main text does not give specific query counts for the open-source targets.
Closed-source transfer and query cost
- Table 2 AgenticRed attack performance: GPT-3.5-Turbo 100, GPT-4o 100, GPT-5.1 100, GPT-5.2 88, Sonnet 3.5 60, Haiku 4.5 48, DeepSeek-R1 100, DeepSeek-V3.2 100, Qwen3-Max 96. The table note states these systems were originally designed for Llama2-7B or Qwen3-8B and are not re-tuned. The table does not state which system each cell comes from.
- The main text writes Claude Sonnet-3.5 as 60% and Claude Haiku-4.5 as 44%. The 44% for Haiku is inconsistent with Table 2's 48. In Figure 9, the Qwen3 system's Haiku 4.5 is 44/53 and the Llama2 system's is 48/736; the Llama2 column has the same values as the AgenticRed column in Table 2, and the paper does not state whether they are the same condition.
- Table 2 is not higher than the cited baselines everywhere: on Sonnet 3.5, AgenticRed is 60, X-Teaming is 67.9, and ActorAttack is 66.5. Figure 9 average ASR/QpS is 69.7/48.7 for the Qwen3 system and 84.6/323.7 for the Llama2 system. The authors state the former is more query-efficient; the figure caption labels QpS as time, without further defining units.
Judges, other benchmarks, and diversity
- StrongREJECT (Table 1b): AgenticRed is 0.58±0.0059, 0.59±0.0082, 0.85±0.0079 (Llama-2-7B, Llama-3-8B, Qwen3-8B). AutoDAN-Turbo is 0.12, 0.23; not reported for Qwen3-8B. The authors state that relative to AutoDAN-Turbo it is 300% higher on Llama-2-7B and 157% higher on Llama-3-8B.
- Human evaluation randomly samples 200 pairs, of which the judge judged 151 successful and 49 failed, with 5-person majority vote. Table 1c: Precision 0.9139, Recall 0.9324, Specificity 0.7500, F1 0.9231, Accuracy 0.8850. The authors state this supports that the resulting prompts are not reward-hacking artifacts; the paper does not explain why specificity is lower than precision.
- The authors state that in Figure 3, systems evolved on HarmBench maintain 100% ASR on AdvBench and ClearHarm; that sentence does not list per-model results. Diversity search treats the average distance to k nearest neighbors in SucceedPromptMemory as novelty. The authors state that successful attacks gradually spread in embedding space, with the cumulative average pairwise cosine distance monotonically increasing; k and distance values are not given.
Other ablations and analysis
- Keeping only 1 candidate per generation (Mixtral→Llama-2-7B): best score is 6% lower (Figure 6a, Appendix C).
- Degenerate archive without JS-Guided: no improvement after the second generation (Figure 6b); the paper does not give ASR for that curve.
- Naive Meta Agent Search against Llama-2-7B: archive Self-Refine is 6; three generations found by GPT-3.5 are 2, 2, 0 (Table 3).
- Mixtral→Llama-2-7B over 10 generations: attack templates 10 times, refusal suppression 8 times, genetic operators 10 times (Section 6).
- Switching to Vicuna-13b-v1.5 or replacing the meta-agent with DeepSeek-R1: the paper does not report specific ASR (Figure 5). The authors state that the weaker attacker still exceeds baselines but does not reach the ASR of the stronger attacker; DeepSeek-R1 as meta-agent does not reach its SOTA performance.
- The authors state that the highest-fitness systems do not merely recombine archive items but also use reward shaping, prefix injection, adversarial prompt translation, and refusal suppression, and write elitist selection, crossover, and mutation into the system (Figure 4). Appendix H gives code examples and Appendix E gives attack examples; prompts or banned phrases are not reproduced here. The authors state that in Figure 8a, generated programs are separated from the human archive, and programs under the two open-source targets are separated from each other; overall similarity across generations remains high.
What are some points that can be further explored?
The authors note that targets are continuously patched, and the meta-agent's design search exhibits mode collapse.
Limitations and Future Directions Noted by the Authors
- Attack-defense co-evolution: The authors write that target models are not static; safety teams continuously patch vulnerabilities, forming a co-evolution of red teaming and defense. Future work could evolve attack and defense simultaneously (Section 6).
- Mode collapse: The authors state that mode collapse appears in design space exploration. Meta-agents trained on existing red teaming literature tend to converge to similar designs across generations, thereby limiting the broader design space and hindering discovery of new attacks. In 10 generations of Mixtral attacking Llama2-7B, attack templates appeared 10 times, refusal suppression 8 times, genetic operators 10 times. The authors state this phenomenon needs to be addressed (Section 6). Appendix D.2 quantifies it with embedding similarity.
- Broader self-evolving algorithms: The authors hope to apply more complex self-evolving algorithms to AI safety, and state such methods require tasks with clear boundaries, mature interfaces, and verifiable rewards, which is exactly the framework AgenticRed provides (Section 6).
Experimental Coverage
- Evolution has three attacker-target combinations, each with 10 generations and 3 candidates per generation; initial evaluation of 16 pairs, final evaluation of 50 pairs. Post-evolution evaluation repeats 3 random seeds and reports median ASR with 95% CI (Appendix B.1). There are also ablations of attacker, meta-agent, initial archive, and selection mechanism (Figure 5, Figure 6).
- Open-source targets are Llama-2-7B, Llama-3-8B, Qwen3-8B. Transfer targets in Table 2 are GPT-3.5-Turbo, GPT-4o, GPT-5.1, GPT-5.2, Sonnet 3.5, Haiku 4.5, DeepSeek-R1, DeepSeek-V3.2, Qwen3-Max. Baseline numbers in that table are taken from Wang et al. (2026).
- Main judge is HarmBench-Llama-2-13b-cls; StrongREJECT uses gpt-4o-mini. Human evaluation is 200 pairs, 5 annotators, majority vote (Appendix B.3, Table 1c).
- Search and main experiments target single-turn, query-agnostic workflows. Related Work describes EvoSynth as multi-turn, query-specific program evolution, and Claudini as GCG-style suffix optimization.
- The paper does not report the diversity neighbor count k, the self-correction cap k values, or the total sample counts for HarmBench, AdvBench, ClearHarm. Figure 9 gives ASR/QpS for proprietary models; the main text does not give specific queries-per-success numbers for open-source targets.
Summarize the main content of the paper
AgenticRed evolves designs of single-turn red teaming systems; the authors state ASR reaches 96–100% on open-source targets and can transfer to some closed-source models.
AgenticRed changes automatic red-teaming from changing prompts within a fixed workflow to evolving the agentic system itself.
- Problem: The authors state that manual workflows have human bias and that it is hard to cheaply explore the design space. The task is to elicit responses for malicious intents that the judge judges as successful, scoped to single-round jailbreak-style red-teaming.
- Method: The archive contains Self-Refine and black-box JS-Guided AdvReasoning. A GPT-5 meta-agent writes 3 systems per generation, selects by ASR on 16 pairs, confirms on 50 pairs before archiving, and passes failed and successful prompts to the next generation, for 10 generations. The target is queried at temperature 0, and the judge provides log-probabilities.
- Open-source results: Table 1 HarmBench ASR is 96% (Llama-2-7B), 98% (Llama-3-8B), 100% (Qwen3-8B), higher than the reported baselines in the same table. StrongREJECT is 0.58±0.0059, 0.59±0.0082, 0.85±0.0079. Human F1 is 0.9231 (200 pairs).
- Transfer: Systems designed for Llama-2-7B or Qwen3-8B are not re-tuned. Table 2 shows 100 for GPT-5.1, DeepSeek-R1, DeepSeek-V3.2, 88 for GPT-5.2, 60 for Sonnet 3.5, and 48 for Haiku 4.5. On Sonnet it is below X-Teaming's 67.9 in the same table. In Figure 9, the two systems' average ASR/QpS are 69.7/48.7 and 84.6/323.7.
- Authors' conclusion: The authors state that evolutionary search can serve as safety oversight that scales as models update, while also holding that human-provided initial archives and interfaces remain important, and point to mode collapse and attack-defense co-evolution as future issues.