Robust Multi-Agent Reinforcement Learning with Diverse Adversarial Agent Generation and Contrastive Policy Encoding

Wenhao Ma, Yu-Cheng Chang, Yang Shen, Ziyi Zhao, Chin-teng LinOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

This paper introduces a co-evolutionary framework to protect multi-agent systems from "insider threats"—teammates that fail or turn malicious. By training cooperative agents against a diverse "zoo" of generated adversaries (DAAG) and giving them a "recognition module" (CAPE) to identify these behaviors, the system learns to adapt to unpredictable disruptions in real-time.

What Problem Does This Paper Address?

Multi-Agent Reinforcement Learning (MARL) has seen incredible success in games and simulations, but it has a "brittleness" problem. Conventional MARL algorithms often produce policies that are tightly coupled; agents become so reliant on their teammates performing specific, optimized actions that the whole system collapses if one agent fails or is compromised by an attacker.

In the real world, disturbances are diverse and evolving. Most existing "robust" MARL methods try to solve this by training against a single "worst-case" adversary. However, the authors argue that this leads to overly conservative policies that fail when they encounter a different kind of disruption. The challenge is creating a system that can not only withstand a wide variety of adversarial behaviors but also recognize and adapt to them on the fly.

Methods

The authors propose a two-pronged framework optimized through an alternating, co-evolutionary training paradigm:

  1. DAAG (Diverse Adversarial Agent Generator): Instead of training one "bad guy," DAAG uses an information-theoretic objective to generate a population of behaviorally diverse adversaries. By maximizing the mutual information between a latent "style code" and the resulting trajectory, the generator is forced to create adversaries that are not just effective at disrupting the team, but are "differently bad" from one another.
  2. CAPE (Contrastive Agent Policy Encoder): This is the "brain" that helps cooperative agents understand their environment. It uses contrastive learning to map the trajectories of teammates into an embedding space. Similar adversarial "styles" are pushed together, while different ones are pulled apart. This allows cooperative agents to receive a "context code" that tells them exactly what kind of teammate (or adversary) they are currently dealing with.
  3. Co-evolutionary Training: The training alternates between two stages. In the first stage, the adversaries (DAAG) are updated to find new ways to break the team. In the second stage, the cooperative agents and the encoder (CAPE) are updated to recognize and counter these new threats. They also use Instance-wise Relation Distillation (IRD) to ensure the encoder doesn't "forget" old adversarial styles as it learns new ones.

Datasets

The framework was evaluated on two standard MARL benchmarks:

  • Predator-Prey (PP): A classic coordination task where three predators must capture a fast-moving prey. Robustness is tested by replacing one or more predators with adversarial agents.
  • StarCraft Multi-Agent Challenge (SMAC): A high-complexity environment involving micro-management of combat units. The authors tested on three specific maps: 2s3z, 3m, and MMM.

Crucially, to ensure an unbiased evaluation, the "test" adversaries were generated using a completely different method (minimax population-based training) that the agents never saw during their own training.

Key Insights and Ideas

  • Diversity is the Best Teacher: The "aha moment" here is that training against a zoo of adversaries is better than training against the strongest adversary. Exposure to a wide range of "failure modes" forces the cooperative agents to develop more flexible, generalized coordination patterns.
  • Recognition as Adaptation: By treating adversarial policy encoding as a core learning problem (via CAPE), the agents don't just react to raw observations; they react to the intent or pattern of the disruption.
  • Stability through Multi-Objective Critics: The authors found that using separate "heads" in the neural network to evaluate task success versus behavioral diversity (in DAAG) was essential for stable training. Without this separation, one objective tended to "wash out" the other.

Key Results

  • Superior Robustness: In SMAC scenarios, the proposed method consistently achieved higher win rates against unseen adversaries compared to baselines like M3DDPG and ROMANCE. For example, on the MMM map, the method maintained nearly a 70% win rate where others dropped significantly lower.
  • Zero-Shot Adaptation: The system proved highly effective at "Dynamic Adversarial Switching," where the adversary's behavior changes abruptly in the middle of an episode. The CAPE module was able to update its context code, allowing the team to pivot their strategy mid-game.
  • No "Robustness Tax": Often, making a system robust makes it perform worse in "normal" conditions. This paper shows that their method maintains performance nearly identical to vanilla MAPPO when no adversaries are present, outperforming other robust baselines in standard settings.

Limitations and Future Work

While the framework is powerful, the authors acknowledge a few areas for growth:

  • Style Code Scaling: The current method relies on a fixed number of discrete "style codes" ($K$) to generate diversity. In a truly "open-world" scenario, adversarial behaviors might be continuous and infinite, requiring more sophisticated generative models.
  • Real-World Complexity: The experiments were conducted in simulated environments (MPE and StarCraft). Transitioning this to physical systems (like a fleet of autonomous drones) would introduce new challenges in observation noise and communication latency.
  • Future Directions: The authors suggest exploring how this architecture could adapt to "open-world" scenarios where the distribution of agents is constantly shifting beyond what was seen in training.

Summary updated

BibTeX
@misc{ma2026robust,
  author = {Wenhao Ma and Yu-Cheng Chang and Yang Shen and Ziyi Zhao and Chin-teng Lin},
  title = {{Robust Multi-Agent Reinforcement Learning with Diverse Adversarial Agent Generation and Contrastive Policy Encoding}},
  year = {2026},
  url = {https://openreview.net/forum?id=h9isaqF956},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure