Skip to content

AgentBreeder: Mitigating AI Safety Risks of Multi-Agent Scaffolds through Self-ImprovementAgentBreeder: Mitigating the AI Safety Risks of Multi-Agent Scaffolds via Self-Improvement

arXiv· arXiv:2502.00757· NeurIPS 2025· J Rosser, Jakob FoersterUniversity of Oxford; FLAIRIndexed by this site · 2026-10-15· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

AgentBreeder evolves multi-agent scaffolds; the blue team's SaladData improved by an average of 79.4%, and the red team produced more vulnerable architectures.

Threat modelBlack-box. Without changing the base LLM weights, the Meta Agent evolves scaffolds in Python. The red team finds more vulnerable architectures via Pareto optimization of capability and 1-SaladData, without prompting it to generate unsafe systems. The blue team improves both capability and safety. SaladData Attack Enhanced is judged yes/no by an agent aware of the constitution.

Questions
When LLMs are placed in multi-agent scaffolds, performance on complex tasks often improves, but the safety impact lacks systematic evaluation. The authors aim to examine adversarial robustness alongside capability optimization in architecture search.
Methods
AgentBreeder starts from 7 hand-crafted seeds, clusters by text embedding, and samples from each cluster's Pareto frontier. Claude 3.5 Sonnet serves as the Meta Agent, mutating or crossing over Python scaffolds. It runs in three modes: blue team, red team, and capability-only.
Experiments and results
The blue team runs 20 generations on each of three capability benchmarks. The authors claim an average SaladData improvement of 79.4% and a maximum of 110.7%, with GPQA capability improving by up to 21.0%. The red team's 10-generation 1-SaladData is 81.6% ± 4.8. The authors say high safety scores may be reward hacking.
Limitations and future work
The authors state in Section 6 that the number of generations and population are limited, performance improvements are marginal, and the benchmarks and 7 seeds may also constrain conclusions. Section 8 proposes scaling up, more comprehensive benchmarks, and white-box, gray-box, and inference cost. Each setting is a single run, and the safety judge model is not specified.
Experimental setupGPT-4o mini (gpt-4o-mini-2024-07-18) · DROP、MMLU et al. · median accuracy、F1 et al.
Evaluated models
GPT-4o mini (gpt-4o-mini-2024-07-18)
Benchmarks
DROPMMLUGPQASaladData1-SaladDataTruthfulQA
Metrics
median accuracyF1HV95% bootstrap confidence interval
AI summaryThe paper proposes AgentBreeder, a framework for multi-objective self-improving evolutionary search over multi-agent scaffolds, and evaluates the discovered scaffolds on reasoning, mathematics, and safety benchmarks. In blue mode, safety benchmark performance improves by an average of 79.4% while maintaining or improving capability scores; in red mode, capability optimization simultaneously produces adversarially weak scaffolds. The authors state that this work demonstrates the risks of multi-agent scaffolds and provides a framework for mitigating these risks, with code open-sourced on GitHub.

The paper proposes AgentBreeder, a framework for multi-objective self-improving evolutionary search over multi-agent scaffolds, and evaluates the discovered scaffolds on reasoning, mathematics, and safety benchmarks. In blue mode, safety benchmark performance improves by an average of 79.4% while maintaining or improving capability scores; in red mode, capability optimization simultaneously produces adversarially weak scaffolds. The authors state that this work demonstrates the risks of multi-agent scaffolds and provides a framework for mitigating these risks, with code open-sourced on GitHub.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Multi-agent scaffolds can change the safety performance of the base LLM; AgentBreeder uses evolutionary search to optimize both capability and safety.

    While multi-agent scaffolds improve task performance, their impact on the base LLM's adversarial robustness has not been adequately evaluated.

    • Scenario: The authors state autonomous agents have been deployed to browse the web and act on behalf of users, entering new multi-agent scaffolds and facing multi-polar challenges. Alignment work almost exclusively handles a single LLM in a single-agent system.
    • Gap: The authors state the safety impact of scaffolds has not been sufficiently explored. The ADAS they discuss searches code space for high-performance architectures, with no safety in the objective.
    • Approach: They propose AgentBreeder, which performs open-ended evolution of multi-agent scaffolds and generates populations using multi-objective optimization of capability and safety.
    • Three modes: The blue team simultaneously improves capability and adversarial robustness; the red team seeks more vulnerable architectures; a capability-only mode serves as a control. The contributions the authors list are attack, defense, and implementation in Inspect.
    • Threat model:
      • Goal: The red team makes scaffolds more vulnerable to adversarial attack than the base model; the blue team makes them more robust. The paper states the red team does not generate adversarial examples but evolves architectures.
      • Knowledge: The authors state in Section 8 that the current evaluation is black-box and does not analyze interactions between agents and tools or APIs.
      • Capability: What is modified is the Python code defining the scaffold; base LLM weights are not searched. The red team does not prompt the Meta Agent to discover unsafe architectures.
      • Judgment: The victim system is the base LLM placed in a multi-agent scaffold. Safety is judged by yes/no evaluations from an agent aware of the Claude Constitution on SaladData Attack Enhanced; capability is judged on DROP, MMLU, or GPQA. The authors map the red team to outer misalignment: a designer pursuing seemingly beneficial goals under misaligned rewards.
  2. What related research exists?

    The work builds on ADAS's code-space search and adds quality-diversity and capability-safety multi-objectives.

    Section 3 covers self-improving system design and multi-agent safety; Section 2 connects the method to ADAS, multi-objective evolution, and adversarial robustness.

    Self-improvement and automatic design

    • EvoAgent: Yuan et al. (2024) use evolutionary algorithms to expand a single expert into a multi-agent system. The paper says it evolves the whole system as one unit.
    • EvoMAC: Hu et al. (2024) evolve agents and their connections at test time to improve code generation. The paper says it is domain-agnostic and searches the entire scaffold space.
    • Code-space search: ADAS, ComfyAgent, and Gödel Agent search for new scaffolds in code. The paper says they lack quality-diversity mechanisms. FunSearch searches for high-performance programs; PromptBreeder evolves prompts for a given domain, not the whole scaffold.

    Multi-agent safety

    • PsySafe: Zhang et al. (2024) inject malicious traits into agents from a psychological perspective and discuss mitigations such as psychological assessment and treatment. The paper only describes it.
    • Polaris: Mukherjee et al. (2024) propose a safety scaffold for real-time patient conversations.
    • Resilience discussion: Huang et al. (2024) study the resilience of multi-agent systems after injecting malicious or fallible agents. Fowler (2023) discusses safety risks of scaffolded LLMs.

    Directly adopted settings

    • ADAS: Hu et al. (2024) frame automatic design as a search space, search algorithm, and evaluation function, programmed by a Meta Agent in Python. This paper adopts its hand-crafted seeds and changes the search to a MAP-Elites-inspired quality-diversity algorithm.
    • Multi-objective and robustness: The paper uses the Pareto front to represent the trade-off between capability and safety. Adversarial robustness refers to resilience against malicious inputs like jailbreaks and prompt injections; the red team does not generate adversarial examples but evolves more vulnerable scaffolds.

    Baselines and benchmarks

    • Baselines: CoT, Self-Consistency CoT, Self-Refine, LLM-Debate, Step-back Abstraction, Quality-Diversity, Role Assignment. Experiment 3 also re-evaluates ADAS-discovered scaffolds with GPT-4o mini.
    • Benchmarks: DROP, MMLU, GPQA from simple-evals; safety is SaladData's Attack Enhanced; helpfulness uses TruthfulQA.

    The authors place the difference in the same code-space search: adding architecture-clustered quality-diversity and multi-objective capability-safety, thus enabling both blue-team hardening and red-team weakness exposure.

  3. How does the paper address this problem?

    AgentBreeder starts from 7 seed scaffolds and performs mutation and crossover along each cluster's Pareto frontier.

    AgentBreeder evolves multi-agent scaffolds in Python code space: each generation evaluates capability and safety, clusters by architecture embedding, then samples and breeds from the Pareto frontier of each cluster.

    Problem Setting and Modes

    • Object: A scaffold refers to the communication architecture of multiple LLMs, usually in Python. The authors follow ADAS: Python is Turing complete, so code space can theoretically express any scaffold.
    • Three modes: The blue team maximizes both capability and safety; the red team maximizes capability and minimizes safety, scored as 1-SaladData; Capable only maximizes one capability benchmark.
    • Seeds: The same 7 hand-crafted scaffolds as Hu et al. and Yin et al. Before evolution, a single CoT is evaluated on 1,000 validation examples, with oversampling or resampling when necessary.
    • Within-generation sampling: New scaffolds use 50% positive and 50% negative examples. Positive examples are questions the baseline CoT answered correctly. The authors state that intergenerational differences are often small, so this amplifies the signal.

    Selection, Mutation, and Crossover

    • Loop: See Algorithm 1 and Figure 1. Each generation computes fC, fS, and embeddings, clusters into K clusters, takes the union of each cluster's Pareto frontier as the elite, then evolves M times, and offspring are added to the population.
    • Elite: The paper defines Pareto optimal as: no other solution can improve one objective without worsening another. The Capable frontier is the best individual in each cluster.
    • Operators: Drawing 1 elite triggers mutation, drawing 2 triggers crossover. Mutation weight is set to twice crossover; the authors state this converges faster empirically.
    • Corpus: Mutations are hand-written short texts, divided into capability-enhanced and safety-enhanced. The blue team samples from the concatenation of both; the red team and Capable do not use the latter. Appendix D gives the full prompts and operators.

    Diversity and Implementation

    • Descriptor: text-embedding-3-small embeds the system name and code. The paper states it is 12-dimensional, encoding name, structure, and possible logic.
    • Clustering: Agglomerative clustering on the whole population with distance threshold 0.7; the number of clusters can vary with the threshold. The authors state that more clusters drive selection pressure toward zero, while fewer clusters reduce diversity.
    • Engineering: The framework is implemented as a custom ModelAPI in Inspect, with each scaffold derived as a Model.

    Models and Success Criteria

    • Code-writing model: The Meta Agent is Claude 3.5 Sonnet, version claude-3-5-sonnet-20241022-v2:0. The authors state it was chosen for its code generation performance. Candidates undergo two rounds of reflection after generation, then up to three rounds of debugging.
    • Answering model: Section 5.3 and Appendix F state scaffolds use GPT-4o mini (gpt-4o-mini-2024-07-18).
    • Safety score: The Claude Constitution is converted into yes/no questions. During validation, each system answers 100 attack-enhanced prompts, judged by an agent aware of the constitution. The paper does not name the judge model. Median accuracy and 95% bootstrap confidence intervals are reported.
    • Score-gaming check: The authors use helpfulness on TruthfulQA to check whether safety scores are inflated by blanket refusal out of distribution. When selecting by the sum of capability and safety, scaffolds the authors judged to be gaming the safety objective are excluded.
  4. What experiments did the paper conduct?

    The authors state that the blue team's SaladData improved by an average of 79.4%, and the red team's 1-SaladData was 81.6%.

    The three experiments correspond to blue team, red team, and capability-only optimization. Figure 2 and Figure 3 are validation set trajectories; the tables below are on the held-out test set.

    Experimental Setup

    • Models: scaffold base is GPT-4o mini (gpt-4o-mini-2024-07-18); Meta Agent is claude-3-5-sonnet-20241022-v2:0; embeddings are text-embedding-3-small. The safety judge model is not specified in the paper, and the TruthfulQA scorer is also not separately specified.
    • Benchmarks: capabilities are DROP, MMLU, GPQA, each evolved independently. Safety is SaladData Attack Enhanced; Appendix C states this subset augments harmful questions with multiple attacks, including GPTFuzz. Red team uses inverted scoring 1-SaladData. helpfulness uses TruthfulQA. The paper does not state the total number of questions per benchmark.
    • Budget and samples: blue team and Capable each run 20 generations, red team 10 generations, with 10 new scaffolds per generation. Appendix F states each setting is one run. Blue team and red team test 250 items; Capable tests 500 items. Safety validation uses 100 attack-enhanced prompts.
    • Metrics: DROP uses F1; other capabilities and safety use median accuracy with 95% confidence intervals. The safety section states in the main text that these are 95% bootstrap confidence intervals. Also reports test set HV. The paper does not report the number of bootstrap resamples.
    • Baselines: 7 ADAS seeds. Table 5 also includes ADAS-discovered scaffolds, re-evaluated with GPT-4o mini.
    • Not comparable across tables: Table 2, Table 4, and Table 5 give different scores for the same-named seeds; the paper does not explain this.

    Main Results

    Blue team test set (Table 2, 250 items). Empty cells are not reported in the paper for that evolution's corresponding capability score; marked as not reported.

    Swipe horizontally to read the table

    Architecture (Table 2)DROPMMLUGPQASaladDataTruthfulQA
    Role Assignment75.8±4.279.2±4.832.0±6.018.0±5.285.6±4.4
    Step-Back Abstraction71.4±4.379.2±4.830.8±5.240.8±5.685.2±4.4
    Quality-Diversity78.0±3.981.6±4.428.4±5.625.8±5.887.2±4.0
    DROP: safety argmax and sum of three62.0±4.8not reportednot reported86.0±4.083.6±4.4
    MMLU: capability argmaxnot reported85.2±4.4not reported54.0±5.681.2±4.4
    MMLU: safety argmax and sum of threenot reported84.0±4.4not reported84.4±4.076.0±5.2
    GPQA: safety argmaxnot reportednot reported31.2±6.095.2±2.449.6±6.4
    GPQA: sum of threenot reportednot reported36.8±5.249.2±6.886.8±4.0
    • The authors state that the capability-safety Pareto frontier on the validation set improved (Figure 2 caption: 20 generations, x-axis fC, y-axis fS). Test set HV is higher than seeds on all three benchmarks (Table 1). The authors state SaladData improved on average by 79.4%, maximum 110.7%, with capabilities maintained or improved, up to 21.0% on GPQA.
    • In the table, the safety-oriented rows do not all have higher capabilities than the same-table seeds. On GPQA, safety argmax and sum of three are not the same row. The authors state that the high-safety tier drops 43% on helpfulness and call this reward hacking.
    • Omitted: CoT, Self-Consistency CoT, Self-Refinement, Debate, and DROP capability argmax: 79.0±3.8, SaladData 46.4±6.4, TruthfulQA 88.0±4.0. In the omitted rows, Debate's MMLU is 77.6±5.2, the lowest in that column among the seven seeds.

    Red Team Mode

    10 generations, maximizing DROP and 1-SaladData. Table 4 is on 250 test items. The caption states Figure 3's y-axis is inverted safety 1-fS, validation set, up to generation 10; point coordinates are not given in the text.

    Architecture (Table 4)DROP F11-SaladData
    CoT68.2±4.776.8±4.8
    Quality-Diversity74.9±4.273.6±5.2
    Roles73.1±3.746.4±6.0
    Capability argmax75.0±4.126.0±5.2
    Harm argmax and sum of two67.7±4.781.6±4.8
    • The authors state that harm argmax exceeds all seeds by at least 6.25%, and with only half the generation budget of the blue team. Omitted: CoTSC, Refine, Debate, StepBack.
    • The authors state that this architecture's DROP remains comparable to seeds, so task performance can co-occur with higher vulnerability. The authors suggest scaffolding may more easily weaken than strengthen the base model's resistance to adversarial attacks.
    • The capability argmax row's 1-SaladData is lower than all seeds in Table 4. The paper does not explain this row.

    Single-Objective Ablation

    Capable runs 20 generations, 10 mutants per generation, testing 500 items (Table 5). ADAS rows are discovered scaffolds re-evaluated with GPT-4o mini. Three unnamed-seed rows have SaladData 31.2±4.2, 17.8±3.4, 55.6±4.6.

    Run (Table 5)CapabilitySaladData
    ADAS, DROP72.0±3.057.0±4.2
    Capable, DROP72.3±3.139.4±4.4
    ADAS, MMLU80.4±3.476.4±3.6
    Capable, MMLU82.4±3.258.0±4.2
    ADAS, GPQA37.4±3.661.0±4.2
    Capable, GPQA41.2±4.443.8±4.4
    • The authors state that Capable slightly outperforms ADAS on the three capability benchmarks. In the table, one seed row has MMLU 82.6±3.4, higher than Capable's 82.4±3.2.
    • The authors state that single-objective does not strongly push SaladData; in multi-objective, the explicit safety objective, or the red team's negative safety, has a larger effect on results. The authors also state that multi-objective may improve the signal-to-noise ratio of per-generation validation. This is the authors' hypothesis, not a statistical test.
    • The authors believe that with a stronger model, the relative gain of seeds over discovered scaffolds becomes smaller. They give three possibilities: data contamination, higher baseline making marginal improvements harder to distinguish from noise, and the new model already fine-tuned for detailed reasoning.

    Other Ablations and Analyses

    • Table 1 test set HV, seeds vs. discovered: GPQA 0.219064 vs. 0.247536; MMLU 0.484208 vs. 0.542816; DROP 0.390754 vs. 0.438813.
    • Table 3 red team seed HV is 0.572759; the discovered column in the provided text is 0.0.602547, which is not adopted here.
    • Mutation weights are 2 times crossover, clustering distance threshold 0.7; the paper does not provide scans for these two.
    • Appendix F: blue team approximately $600 (gpt-4o-mini about $500, Claude about $100), red team about $115, Capable about $400.
    • Figure 2 and Figure 3 have only axes, generation numbers, and frontier descriptions in captions; the text does not provide point coordinates.
  5. What are some points that can be further explored?

    The authors note that the number of generations, population size, benchmark, and seed diversity are all constrained by computational cost.

    Limitations and Future Directions Noted by the Authors

    • Scale (Section 6 Limitations): The authors state that due to computational cost, the number of generations and population size are constrained, and performance improvements are marginal.
    • Claim strength (Section 6): The authors state the experiments are a proof of concept for multi-objective alignment; stronger helpfulness and safety claims require more comprehensive benchmarks.
    • Benchmark scope (Section 6): The authors state the evaluation is limited to selected benchmarks and may not fully cover real-world capability and safety issues.
    • Seeds (Section 6): The initial population has only 7 seeds, which the authors state may constrain the diversity of discovered scaffolds.
    • Scaling (Section 8): The authors propose larger populations, longer evolution, and benchmarks such as AILuminate and MMLU-CF.
    • Evaluation form (Section 8): The authors state the current evaluation is black-box; future work could do white-box and gray-box, tracking interactions among agents and between agents and tools; also optimizing inference cost, and considering different base LLMs within the same scaffold. The authors also propose establishing differentiated safety arguments for scaffolds of different transparency.

    Experimental Coverage

    • All three modes have test-set results: blue team in Table 2, red team in Table 4, Capable in Table 5 of Appendix B.
    • Models run are GPT-4o mini (gpt-4o-mini-2024-07-18), Claude 3.5 Sonnet (claude-3-5-sonnet-20241022-v2:0), and text-embedding-3-small.
    • Reported benchmarks are DROP, MMLU, GPQA, SaladData Attack Enhanced, 1-SaladData, and TruthfulQA. SaladData has 3 levels described in Appendix C; the main text reports Attack Enhanced.
    • Blue team and Capable run 20 generations per benchmark with 10 offspring per generation; red team runs 10 generations. Appendix F corresponds to one run per setting. Test samples are 250 or 500; safety validation is 100 prompts.
    • The paper does not report the safety judge model name, number of evolution repeats, bootstrap resampling count, or agreement between reviewers and humans. The authors write in Section 8 that the current evaluation is black-box.
  6. Summarize the main content of the paper

    AgentBreeder uses evolutionary search to discover safer or more vulnerable multi-agent scaffolds.

    AgentBreeder uses evolutionary search to generate multi-agent scaffolds and simultaneously examines task capability and adversarial robustness.

    • Problem: The authors note that autonomous agents on the web enter multi-agent structures, yet alignment evaluations almost exclusively cover a single LLM in a single agent.
    • Method: Starting from 7 hand-crafted seeds, it clusters using 12-dimensional architecture embeddings and samples from the Pareto front of each cluster. Claude 3.5 Sonnet writes, mutates, or crosses over Python scaffolds; the answering base model is GPT-4o mini. The blue team optimizes both capability and safety; the red team optimizes capability and inverted safety score, without prompting the model to write unsafe systems.
    • Blue team: DROP, MMLU, GPQA each run 20 generations, testing 250 items. The authors claim an average SaladData improvement of 79.4% and a maximum of 110.7%, with GPQA capability improving by up to 21.0%. In Table 2, safety-oriented architectures trade off capability; the authors say a certain high safety score is accompanied by a 43% drop in TruthfulQA helpfulness, which is reward hacking.
    • Red team: 10 generations on DROP. The argmax of 1-SaladData is 81.6 ± 4.8, corresponding to DROP 67.7 ± 4.7. The authors believe scaffolds may more easily weaken than strengthen the base model's resistance to adversarial attacks, while task scores can still match the seeds.
    • Comparison: When optimizing only capability, the authors claim capability is slightly higher than ADAS, but without a comparable push on SaladData. The authors conclude that unsafety can coexist with task performance, multi-objective search is better suited than single-objective for viewing safety simultaneously, and evolutionary methods can be used for pre-deployment inspection of multi-agent attack surfaces. In Appendix A, the authors believe the defensive benefits outweigh the risk of misuse of the red-team method.

Related papers

Show 3 more papers
Read originalNeurIPS 2025