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

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

Abstract

While deep neural networks (DNNs) have strengthened the performance of cooperative multi-agent reinforcement learning (c-MARL), agent policies can be easily perturbed by adversarial examples. Considering safety-critical applications like traffic management, power grid control, and unmanned aerial vehicle (UAV) swarms, it is crucial to test the robustness of c-MARL algorithms before real-world deployment. Existing adversarial attacks for MARL are often limited to a single robustness aspect (e.g., state, action, or reward), whereas a c-MARL model could be attacked from any dimension. To overcome this, we propose MARLSafe, the first robustness testing framework for c-MARL algorithms. MARLSafe evaluates robustness comprehensively across three aspects: state, action, and reward. Experiments on the StarCraft Multi-Agent Challenge (SMAC) environment reveal that many state-of-the-art c-MARL algorithms exhibit low robustness across all aspects, highlighting an urgent need for enhanced testing and defense strategies.

Introduction

Cooperative Multi-Agent Reinforcement Learning (c-MARL) is transitioning from research labs to high-stakes applications. In scenarios like autonomous UAV coordination or smart grid management, a system failure is not just a bug; it is a significant liability. While we know deep neural networks are susceptible to adversarial examples—small, intentional perturbations that cause misclassification—most robustness research in MARL has been narrow, focusing on single points of failure like noisy sensors (state) or hacked reward signals.

However, a real-world attacker could target any part of the Markov Decision Process (MDP). For a c-MARL system to be truly secure, it must be simultaneously robust against perturbations in its states, rewards, and actions. This paper introduces MARLSafe to address this multi-dimensional security challenge.

The MARLSafe Framework

MARLSafe treats robustness testing as a multi-faceted adversarial challenge. It breaks down testing into three distinct "attacks" based on the core components of an MDP:

  1. State Test (Observation Perturbation): Using the Fast Gradient Sign Method (FGSM), the framework adds calculated noise to the agents' observations at test time. This mimics sensor interference or "spoofing" intended to break agent coordination.
  2. Reward Test (Training-time Poisoning): This targets the learning process itself. By flipping the sign of the top $k\%$ of rewards during training (e.g., turning a +10 into a -10), the attacker misleads agents into believing that successful outcomes are actually failures.
  3. Action Test (The "Traitor" Agent): This is a black-box attack where one agent in the team is replaced by a "traitor"—an adversarial policy trained specifically to sabotage the team’s goal while the other agents remain fixed.
Overview of the MARLSafe framework, illustrating the roles of researchers and policy makers in testing state, action, and reward robustness.

Experimental Setup

The researchers evaluated MARLSafe using the StarCraft II Multi-Agent Challenge (SMAC), a gold standard for c-MARL research. They specifically tested on the 2s3z map (2 Stalkers, 3 Zealots) and the 11m map (11 Marines). Two state-of-the-art algorithms were scrutinized: QMIX (a value-based method) and MAPPO (a policy-gradient method).

Key Results and Insights

Under normal conditions, both QMIX and MAPPO achieved near 100% win rates. However, the drop in performance across all adversarial tests was stark:

  • State Attacks: Win rates for QMIX plummeted to 0% on the 11m map. MAPPO fared better but still dropped significantly to 31.25%. This suggests that MAPPO's centralized critic may offer more resilience than QMIX's mixer network.
  • Reward Attacks: Both algorithms were completely neutralized, resulting in a 0% win rate. Flipping just 10% of the highest rewards caused agents to develop "fleeing" behavior, actively avoiding the enemy to prevent receiving what they perceived as punishment for winning.
  • Action Attacks: The introduction of a single traitor agent reduced win rates to 0% in almost all scenarios. The traitor doesn't just fail; it actively manipulates the environment to mislead its teammates.

Conclusion

MARLSafe demonstrates that robustness is not a single metric but a multi-dimensional requirement. An algorithm might perform well under sensor noise but collapse entirely if the reward signal is slightly tampered with. While MARLSafe provides a powerful diagnostic tool for identifying these "holes," it is primarily a testing framework. Future work must focus on developing "Comprehensive Defense" strategies, exploring how centralized training architectures can be designed to withstand simultaneous attacks on states, actions, and rewards.

Summary updated

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