Towards Comprehensive Testing on the Robustness of Cooperative Multi-agent Reinforcement Learning

Jun Guo, Yonghong Chen, Yihang Hao, Zixin Yin, Yin Yu, Simin Li

TL;DR

MARLSafe is the first comprehensive framework designed to stress-test the robustness of cooperative multi-agent reinforcement learning (c-MARL) algorithms. By systematically attacking the three pillars of the multi-agent Markov Decision Process—state, action, and reward—the researchers demonstrate that state-of-the-art algorithms like QMIX and MAPPO are alarmingly vulnerable to adversarial perturbations, often seeing win rates plummet from 100% to zero.

What Problem Does This Paper Address?

As deep reinforcement learning moves from research labs to safety-critical real-world applications—like autonomous drone swarms, smart power grids, and automated traffic management—security becomes paramount. In these cooperative settings, multiple agents must work together to achieve a goal. However, deep neural networks are notoriously fragile when faced with adversarial examples.

While previous research has looked at attacking single-agent RL or focused on a single vulnerability (like blurring an agent's vision), real-world hackers aren't so limited. They might hijack a reward signal during training or subvert a single "traitor" agent within a team. The authors argue that for a c-MARL system to be considered "secure," it must be robust across all possible attack vectors. MARLSafe fills this gap by providing a unified testing suite to uncover these hidden weaknesses.

Methods

The authors propose a three-pronged testing strategy based on the Multi-agent Markov Decision Process (MMDP) framework:

  1. State Test (Test-time): This targets the agents' observations. Using the Fast Gradient Sign Method (FGSM), the framework adds calculated noise to what the agents "see," aiming to minimize the probability of them choosing the optimal action.
  2. Reward Test (Training-time): This is a "poisoning" attack. During the training phase, the framework flips the sign of the top $k\%$ of rewards. This misleads the agents into learning corrupted policies that actively avoid the intended goal.
  3. Action Test (Test-time): This introduces a "traitor." The framework takes control of one agent in the team and trains it as an adversary whose sole goal is to maximize the failure of its teammates.
Figure 2. The framework of MARLSafe. Motivated by MMDP framework, we propose state, action and reward test to test its robustness.

Datasets

The researchers evaluated their framework using the StarCraft II Multi-Agent Challenge (SMAC), a popular benchmark for cooperative RL. They focused on two specific scenarios:

  • 2s3z: A battle involving 2 Stalkers and 3 Zealots.
  • 11m: A larger-scale battle with 11 Marines (modified from the original SMAC to ensure a fair "action test" environment).

They tested two heavyweights of the c-MARL world: QMIX (a value-based algorithm) and MAPPO (a policy-gradient-based algorithm).

Key Insights and Ideas

  • Diverse Failure Modes: One of the most fascinating findings is how different attacks manifest as distinct agent behaviors.
  • State attacks lead to "chaotic" and non-cooperative behavior; agents look like they are trying to fight but are simply incompetent.
  • Reward attacks turn agents into "cowards"; because the highest rewards for damaging enemies were flipped to punishments, the agents learn to flee from combat entirely to avoid "earning" those negative points.
  • Action attacks create a "saboteur" who hides behind the team, subtly influencing teammates' decisions until they are defeated.
Visualizing different agent behaviors under state, reward, and action attacks.
  • The Robustness Gap: Even though QMIX and MAPPO achieve near-perfect win rates against standard AI, they have almost zero resilience against targeted reward and action attacks.
  • MAPPO's Slight Edge: In state-based tests, MAPPO proved more resilient than QMIX. The authors hypothesize that the policy-gradient training process or the specific centralized critic architecture might inherently provide a small buffer against observational noise.

Key Results

The quantitative results highlight a severe vulnerability in current c-MARL standards:

  • Baseline: Both QMIX and MAPPO achieved ~100% win rates without attacks.
  • Reward & Action Attacks: Win rates for both algorithms dropped to 0% in almost every scenario. Even flipping just 10% of rewards during training was enough to completely break the learned policy.
  • State Attacks: QMIX was hit hardest, with win rates dropping to 0-9%. MAPPO fared better but still saw significant degradation, falling to 31-65% win rates.

Limitations and Future Work

The paper primarily focuses on discovery rather than defense. While it provides a powerful "sword" to find holes in c-MARL armor, it does not propose a "shield." The authors note that their findings point to an urgent need for the community to develop comprehensive defense mechanisms—such as adversarial training or robust centralized mixers—that can handle multi-aspect perturbations simultaneously. Additionally, the current action test assumes the attacker can fully control one agent; exploring "partial" subversion or communication-based attacks could be a fruitful next step.

Summary updated

Abstract

While deep neural networks (DNNs) have strengthened the performance of cooperative multi-agent reinforcement learning (c-MARL), the agent policy can be easily perturbed by adversarial examples. Considering the safety critical applications of c-MARL, such as traffic management, power management and unmanned aerial vehicle control, it is crucial to test the robustness of c-MARL algorithm before it was deployed in reality. Existing adversarial attacks for MARL could be used for testing, but is limited to one robustness aspects (e.g., reward, state, action), while c-MARL model could be attacked from any aspect. To overcome the challenge, we propose MARLSafe, the first robustness testing framework for c-MARL algorithms. First, motivated by Markov Decision Process (MDP), MARLSafe consider the robustness of c-MARL algorithms comprehensively from three aspects, namely state robustness, action robustness and reward robustness. Any c-MARL algorithm must simultaneously satisfy these robustness aspects to be considered secure. Second, due to the scarceness of c-MARL attack, we propose c-MARL attacks as robustness testing algorithms from multiple aspects. Experiments on \textit{SMAC} environment reveals that many state-of-the-art c-MARL algorithms are of low robustness in all aspect, pointing out the urgent need to test and enhance robustness of c-MARL algorithms.
BibTeX
@misc{guo2022towards,
  author = {Jun Guo and Yonghong Chen and Yihang Hao and Zixin Yin and Yin Yu and Simin Li},
  title = {{Towards Comprehensive Testing on the Robustness of Cooperative Multi-agent Reinforcement Learning}},
  year = {2022},
  eprint = {2204.07932},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.07932},
}
Figure