Source-linked AI summary
Evo-MARL: Co-Evolutionary Multi-Agent Reinforcement Learning for Internalized Safety
Zhenyu Pan, Yiting Zhang, Yutong Zhang, Jianshu Zhang, Haozheng Luo, Yuwei Han, Dennis Wu, Hong-Yu Chen, Philip S. Yu, Manling Li, Han Liu
TL;DR
Multi-agent systems face attacks that can spread across agents, while external guards offer limited protection and add cost. Evo-MARL co-trains task agents with evolving attacks to internalize defenses. Experiments report up to 22% lower HarmBench ASR and up to 5 percentage-point accuracy gains on task benchmarks.
Problem
External safety guards provide limited protection when task agents lack safety awareness, create a potential single point of failure, and add cost and complexity.
Source: §1 · p. 1Method
Evo-MARL jointly trains task agents to internalize defenses and co-evolves attack prompts through mutation and selection.
Source: §1 · p. 1, §3.2 · p. 3Results
HarmBench attack success rate drops by up to 22% for trained 1.5B MAS, while trained 1.5B MAS gain up to 5 percentage points in accuracy on mathematical reasoning and creative writing benchmarks.
Source: §4.2 · p. 4Takeaways & Limitations
The reported results show that MAS safety and task performance can improve together through adversarial training.
Source: §1 · p. 2, §4.2 · p. 4Challenges remain in stabilizing training with adaptive attackers, scaling to larger or more complex systems, and incorporating memory or external knowledge for long-term robustness in dynamic adversarial environments.
Source: §5 · p. 4
Abstract
from arXiv · showhide
Multi-agent systems (MAS) built on multimodal large language models exhibit strong collaboration and performance. However, their growing openness and interaction complexity pose serious risks, notably jailbreak and adversarial attacks. Existing defenses typically rely on external guard modules, such as dedicated safety agents, to handle unsafe behaviors. Unfortunately, this paradigm faces two challenges: (1) standalone agents offer limited protection, and (2) their independence leads to single-point failure-if compromised, system-wide safety collapses. Naively increasing the number of guard agents further raises cost and complexity. To address these challenges, we propose Evo-MARL, a novel multi-agent reinforcement learning (MARL) framework that enables all task agents to jointly acquire defensive capabilities. Rather than relying on external safety modules, Evo-MARL trains each agent to simultaneously perform its primary function and resist adversarial threats, ensuring robustness without increasing system overhead or single-node failure. Furthermore, Evo-MARL integrates evolutionary search with parameter-sharing reinforcement learning to co-evolve attackers and defenders. This adversarial training paradigm internalizes safety mechanisms and continually enhances MAS performance under co-evolving threats. Experiments show that Evo-MARL reduces attack success rates by up to 22% while boosting accuracy by up to 5% on reasoning tasks-demonstrating that safety and utility can be jointly improved.
1. Introduction
Multi-agent systems face safety risks from attacks that can spread through inter-agent communication, while external guard modules have limits and add cost. Evo-MARL trains task agents to internalize defenses through adversarial co-evolution, with reported gains in safety and task performance.
1. Introduction
- External guards provide limited protection when task agents lack safety awareness, create a potential single point of failure, and add cost and complexity when multiplied.Attacks can also spread through inter-agent communication and trigger cascading failures.Source: §1 · p. 1
- Evo-MARL internalizes defenses in every task agent and co-evolves attackers and defenders using an evolving pool of attack prompts.Mutations are guided by attack success rates to foster more generalizable defenses.Source: §1 · p. 1
- During adversarial training, some agents act as attackers while others detect, mitigate, and correct unsafe or misleading content, with rewards tied to harmfulness and correctness.Attack prompts are injected sequentially into a randomly selected victim and downstream agents.Source: §1 · p. 1
- Experiments report up to 22% improvement in safety and up to 5% gains in task performance across multimodal and text-only red-team datasets.These results are presented as evidence that robustness and utility can improve together.Source: §1 · p. 2
2. Related Works
Prior MAS safety approaches use external modules or defense protocols, while reinforcement learning has been used to improve agent behavior and coordination. This work applies adversarial co-training to embed safety awareness in each agent.
2. Related Works
- MAS attacks can hijack individual agents or manipulate communication and workflow execution, while LLM agents also face prompt injection and adversarial manipulation.External tools and memory systems add further exposed interfaces.Source: §2 · p. 2
- Prior MAS defenses include dedicated inspection agents, communication-graph detection with supervised fine-tuning, and peer review, but do not improve agents’ intrinsic safety mechanisms.External modules can also create scalability bottlenecks and fragility.Source: §2 · p. 2
- LLM-based reinforcement learning has supported search, agentic and software-engineering tasks, and coordinated multi-agent policies, including collaborative reasoning and role-based training.Examples include Search-R1, Park et al., and Wan et al..Source: §2 · p. 2
- Evo-MARL uses adversarial co-training between attacker and defender agents to build individual safety awareness and improve overall system reliability.This extends prior RL-based coordination toward internalized safety capabilities.Source: §2 · pp. 2–3
3. Methodology
Evo-MARL jointly trains task agents to defend against adversarial behavior while maintaining task performance. It combines a shared MARL training setup with an evolutionary process that continually refreshes attack strategies.
3. Methodology
- Evo-MARL combines a co-evolutionary attacker module that mutates and selects prompts with joint GRPO optimization of all task agents.The framework aims to preserve task performance while improving robustness.Source: §3 · p. 3
3.1. Internalizing Safety via MARL
- Attackers and defenders are jointly modeled in a shared Markov decision process, with distinct action spaces, rewards, and policies for inducing unsafe behavior or maintaining robustness.The state transition depends on both attacker and defender actions.Source: §3.1 · p. 3
- Training uses a chain of specialized agents and injects attacks into downstream responses; defenders collaboratively detect, discard, or purify malicious content.Safe final responses earn defenders +1, accurate answers add +0.5, and unsafe or incorrect responses receive negative rewards.Source: §3.1 · p. 3
- Defenders share parameters for training efficiency and use GRPO, whose shared policy uses grouped query samples to compute advantages and a KL penalty to constrain updates.The paper specifies G as the number of samples per query and DKL as the penalty term.Source: §3.1 · p. 3
3.2. Evolving Attacks through Biological Evolution
- Attack prompts evolve through mutation and crossover, with attack effectiveness serving as a fitness signal to select successful variants for the next generation.This lets attack strategies and defenses iteratively improve without including attackers in the RL training loop.Source: §3.2 · p. 3
4. Experiments
Across red-team evaluations, Evo-MARL improves safety, and task evaluations report accuracy gains without compromising safety. Experiments span multimodal and text-only settings, multiple benchmarks, and different agent scales.
4.1. Experimental Setup
- The evaluation covers three red-team datasets and two task benchmarks, including JailBreakV-28K, HarmBench, MultiJail, MATH, and Creative Writing.The official JailBreakV 280 mini dataset, multimodal HarmBench split, English MultiJail split, and 100 sampled MATH points are used.Source: §4 · p. 3, §4.1 · p. 4
- Tests use chain-structured and hierarchical MAS settings, with Qwen2.5-1.5B and 3B agents and additional 7B comparisons; metrics include ASR, MATH accuracy, and Creative Writing scores.Multimodal ASR evaluation counts samples that successfully attack the first multimodal agent.Source: §4.1 · p. 4
4.2. Results
- Trained 1.5B MAS reduce HarmBench attack success rate by up to 22%, and outperform untrained 7B MAS on JailBreakV and MultiJail.Across tasks and model scales, the method yields consistent safety improvements; 1.5B models also outperform their 3B counterparts in safety.Source: §4.2 · p. 4, Table 1 · p. 4
- On mathematical reasoning and creative writing benchmarks, trained 1.5B MAS achieve accuracy gains of up to 5 percentage points without compromising safety.Figure 2 provides qualitative comparisons before and after MARL-based training.Source: §4.2 · p. 4, Table 1 · p. 4
5. Discussion & Conclusion
Evo-MARL uses reinforcement learning and co-evolutionary adversarial training to improve multi-agent system robustness. It embeds defenses in every task agent while improving task performance, with challenges remaining in adaptive training and scaling.
- Evo-MARL combines reinforcement learning with co-evolutionary adversarial training to improve multi-agent system robustness.Source: §5 · p. 4
- By embedding defense capabilities in every task agent, Evo-MARL mitigates jailbreak attacks while enhancing reasoning and creative-writing performance.Source: §5 · p. 4
- Open challenges include stabilizing training with adaptive attackers, scaling to larger or more complex systems, and adding memory or external knowledge for long-term robustness.Source: §5 · p. 4
6. Examples
Figure 2 concerns successful defense on JailBreakV.
- Figure 2 presents successful defense on JailBreakV.Source: Figure 2 · p. 7