Model and Method: Training-Time Attack for Cooperative Multi-Agent Reinforcement Learning

Siyang Wu, Tonghan Wang, Xiaoran Wu, Jingfeng Zhang, Yujing Hu, Changjie Fan, Chongjie ZhangDeepRL @ NeurIPS 2022

TL;DR

This paper introduces "training-time attacks" for cooperative multi-agent reinforcement learning (MARL). By subtly manipulating an agent's action selection during training, these attacks can significantly degrade team performance, even when the agents are designed to be robust to attacks encountered only at deployment time.

What Problem Does This Paper Address?

Deep cooperative multi-agent reinforcement learning (MARL) has shown great promise in complex coordination tasks, but its real-world application is hindered by a lack of robustness. Existing MARL algorithms are often sensitive to various factors and can be easily disrupted. While adversarial attacks are a good way to study and improve robustness, most research has focused on "deploy-time" attacks, where the learning agent is unaware of the attacker. This can lead to an overestimation of attack effectiveness, as agents can adapt to these attacks if they are present during training. This paper addresses this gap by proposing "training-time" attacks, where the attacker influences the learning process itself, forcing the MARL agent to learn in a compromised environment.

Methods

The core idea is to perturb the action selection of a single "poisoned" agent during the training phase. This perturbation is designed to be stealthy, making it indistinguishable from normal exploration noise. The authors propose two specific attack methods:

  • Variance-based attack: This method aims to increase the variance of the policy gradients. High variance in gradients can destabilize the learning process, making it difficult for the MARL agent to converge to a good policy.
  • J-based attack: This method directly aims to minimize the team's overall performance (J) after a single model update. It achieves this by calculating the adversarial perturbation that leads to the largest decrease in expected team return.

Both methods operate under a restricted "attack budget," which includes limiting the frequency of attacks and controlling the KL divergence between the attacked and original policies to maintain stealth.

Datasets

The authors evaluate their methods on two popular MARL benchmarks:

  • SMAC (StarCraft Multi-Agent Challenge): A suite of challenging cooperative combat scenarios.
  • MPE (Multi-Agent Particle Environments): A set of simpler cooperative tasks like Spread, Gather, and Formation.

Key Insights and Ideas

  • Training-time attacks are more potent: The paper convincingly demonstrates that attacks during the training phase are significantly more effective at undermining MARL performance than deploy-time attacks, especially when agents can adapt.
  • Stealth is crucial: The proposed methods achieve stealth by making the attack look like normal exploration noise, which is a key enabler for effective training-time attacks in cooperative settings where agents share information.
  • Variance-based attack is often superior: The experiments suggest that the variance-based attack is generally more effective than the J-based attack, likely because it more effectively exploits the limited attack budget to destabilize learning.
  • Attack budget matters: The effectiveness of the attacks is shown to be sensitive to the attack frequency and the KL divergence constraint, highlighting the importance of carefully tuning these parameters.

Key Results

  • The proposed TRAM (TRaining-time Attack Model) methods significantly undermine the learning performance of MARL algorithms like DOP on both SMAC and MPE benchmarks.
  • In many scenarios, TRAM attacks reduce the win rates of MARL agents to near zero, while a random attack baseline has a much weaker impact.
  • The variance-based TRAM consistently outperforms the J-based TRAM and the random attack baseline across various maps and tasks.
  • Higher attack frequencies and looser KL divergence bounds generally lead to more effective attacks.

Limitations and Future Work

  • Approximation in gradient calculation: The paper acknowledges that their methods use an approximation for the forward dynamics model, which could lead to inaccuracies in the computed adversarial vector, especially in long-horizon tasks. Future work could involve training a dedicated forward dynamics model.
  • Reliance on critic/advantage function: The attacks require access to the critic or advantage function and the policy, which might not always be available in realistic scenarios. Future work could explore using imitation learning to approximate these components.
  • Focus on policy-based methods: The current work focuses on policy-based MARL algorithms. The authors suggest extending their methods to value-based MARL algorithms and to the critic learning component.
  • Developing defenses: The paper implicitly calls for the development of novel, secure MARL defense schemes to counter these training-time attacks.

Summary updated

BibTeX
@inproceedings{wu2022model,
  author = {Siyang Wu and Tonghan Wang and Xiaoran Wu and Jingfeng Zhang and Yujing Hu and Changjie Fan and Chongjie Zhang},
  title = {{Model and Method: Training-Time Attack for Cooperative Multi-Agent Reinforcement Learning}},
  booktitle = {DeepRL @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=cZSNk8veQW7},
}
Figure