Sparse Adversarial Attack in Multi-agent Reinforcement Learning

Yizheng Hu, Zhihua ZhangarXiv 2022 · DOI

Introduction

Cooperative multi-agent reinforcement learning (cMARL) has seen significant success in complex environments, yet its robustness remains a critical concern for real-world deployment. This paper demonstrates that these systems are surprisingly fragile: a strategic attacker can collapse a team's performance by manipulating just one agent at a handful of critical moments. By training an "optimal sparse attack" (OPT) policy using reinforcement learning with soft regularization, the authors show that popular algorithms like QMIX and VDN can be rendered nearly useless with minimal interference.

The Challenge of Sparse Attacks

While previous research often assumed an attacker would disrupt an agent at every timestep (a "dense" attack), such disruptions are easily detected in practice. A robot that constantly malfunctions is quickly identified and repaired. This paper focuses on sparse attacks, which are disruptions characterized by:

  1. Agent Sparsity: Targeting only a subset of agents (often just one).
  2. Temporal Sparsity: Intervening only at a few specific, critical timesteps.

This approach mimics realistic scenarios, such as a subtle "spy" in a human-machine team or a hardware component that fails only under specific stress conditions.

Methodology: Learning to Attack

The core contribution is a method to identify the most damaging sparse attack. The authors argue that traditional rule-based methods—which use heuristics like policy entropy (attacking when an agent is confident) or value function differences—are sub-optimal because they do not account for the long-term "worst-case" impact on the environment's state.

Why Heuristics Fail

Mathematical examples using decision trees illustrate that an optimal attacker looks for "bottleneck" states where a single wrong move leads to an unrecoverable disaster, rather than simply attacking when rewards are high.

Decision tree illustrating how a strategic attack at a bottleneck state (A) can deviate the agent from the optimal policy (blue) to lower-reward outcomes (green/red).

The OPT Framework

The authors formulate the attack as a reinforcement learning problem. The attacker acts as a meta-agent whose goal is to minimize the team's total reward. To enforce sparsity, they employ soft regularization: the attacker receives a penalty (controlled by a hyperparameter $\lambda$) every time they choose to intervene. By training this adversarial policy using the QMIX algorithm, the attacker learns to "save" its limited attack budget for the most pivotal moments in an episode.

Experimental Evaluation

The researchers evaluated their approach using the StarCraft Multi-Agent Challenge (SMAC), testing on maps ranging from small homogeneous teams (3m) to large-scale heterogeneous battles (1c3s5z).

Key Results

The proposed OPT attack consistently outperformed baselines like random attacks (Ra-R/L) or rule-based heuristics (Ru-B):

  • Extreme Fragility: In the 3m map, the team's win rate dropped from 97.2% to 0% while attacking only ~18% of the timesteps.
  • The "Important Agent" Effect: In heterogeneous teams, the attacker naturally targets high-value units. In the 1c3s5z map, attacking the lone Colossus was far more effective than attacking smaller units, dropping the win rate to less than 1% with under 10% interference.
Comparison of the OPT attack against baseline methods on SMAC maps, showing significant win rate drops with minimal temporal interference.

Conclusion and Future Work

The study reveals a fundamental lack of robustness in current value-decomposition methods like QMIX, VDN, and QTRAN. While the current work assumes direct action manipulation and fixed target agents, it sets the stage for more complex adversarial scenarios. Future research must focus on developing defense mechanisms, such as adversarial training, to protect multi-agent systems from these strategic, sparse disruptions.

Summary updated

BibTeX
@misc{hu2022sparse,
  author = {Yizheng Hu and Zhihua Zhang},
  title = {{Sparse Adversarial Attack in Multi-agent Reinforcement Learning}},
  year = {2022},
  eprint = {2205.09362},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.09362},
}
Figure