Sample-Efficient Multi-Agent Reinforcement Learning with Demonstrations for Flocking Control

Yunbo Qiu, Yuzhu Zhan, Yue Jin, Jian Wang, Xudong Zhang

TL;DR

This paper introduces PwD-MARL, a novel method that significantly improves the sample efficiency of multi-agent reinforcement learning (MARL) for flocking control. By pretraining agents using non-expert demonstrations, PwD-MARL enables faster learning and better performance, even with limited or imperfect demonstration data.

What Problem Does This Paper Address?

Flocking control, essential for coordinating groups of agents like drones or underwater vehicles, aims to achieve cooperative navigation while avoiding collisions. While Multi-Agent Reinforcement Learning (MARL) offers a flexible approach to this problem, it's notoriously sample-inefficient, requiring vast amounts of interaction data to train effectively. This data collection is often expensive and time-consuming. Traditional methods, while simpler, lack the adaptability of MARL. The challenge is to bridge this gap by making MARL more practical for complex tasks like flocking, reducing the need for extensive real-world or simulated interactions.

Methods

The core innovation is PwD-MARL (Pretraining with Demonstrations for MARL). This method leverages existing, potentially non-expert, demonstrations to "pretrain" agents before they engage in online MARL. The pretraining phase involves two key components:

  • Simultaneous Learning: Agents learn from demonstrations using both MARL objectives (optimizing Q-functions and policies) and behavior cloning (imitating demonstrated actions).
  • Overfitting Prevention: To avoid agents becoming overly reliant on potentially suboptimal demonstrations, PwD-MARL incorporates a regularization term in the Q-function loss to prevent overfitting.

This pretraining provides a "warm start," allowing agents to learn faster and achieve better performance with fewer online interactions. The authors build their method upon the MADDPG (Multi-Agent Deep Deterministic Policy Gradient) algorithm, a popular MARL framework.

Datasets

The paper uses demonstrations generated by an artificial potential field algorithm for the flocking control task.

  • Demonstration Data: 3000 episodes of demonstrations were used, with an average success rate of 0.803.
  • Evaluation: Experiments were conducted in a simulated flocking environment.

Key Insights and Ideas

  • Non-Expert Demonstrations are Valuable: The paper demonstrates that even imperfect or "bad" demonstrations can be highly beneficial for MARL pretraining, a significant finding as acquiring expert demonstrations is often infeasible.
  • Pretraining as a Warm Start: The concept of using demonstrations to provide a strong initial policy significantly accelerates MARL training and improves final performance.
  • Balancing Imitation and Exploration: PwD-MARL effectively balances learning from demonstrations (behavior cloning) with learning through exploration and reward (MARL), preventing the pitfalls of relying solely on one.
  • Robustness to Demonstration Quality/Quantity: The proposed method shows resilience to variations in demonstration quality and quantity, making it more practical than methods that strictly require expert data.

Key Results

  • Improved Sample Efficiency: PwD-MARL converges significantly faster than baseline MARL algorithms (MADDPG, SVL-MARL, MARLwD) in terms of both success rate and reward.
  • Higher Performance: With the same number of training episodes, PwD-MARL achieves a higher success rate and average reward.
  • Better Flocking Behavior: Agents trained with PwD-MARL maintain closer proximity to the flock center.
  • Robustness: The algorithm performs well even with demonstrations that have a lower success rate or fewer episodes, outperforming other methods that degrade significantly under these conditions. For instance, with worse demonstrations, PwD-MARL's performance was still superior to MADDPG, while MARLwD and SVL-MARL degraded substantially.

Limitations and Future Work

  • Limitations: While PwD-MARL shows robustness, the paper acknowledges that the quality and quantity of demonstrations can still slightly hinder performance, though to a much lesser extent than other methods. The effectiveness of the regularization term in preventing overfitting is crucial and might require careful hyperparameter tuning.
  • Future Work: The authors plan to apply PwD-MARL to other complex multi-agent reinforcement learning applications beyond flocking control, highlighting its generalizability.

Summary updated

Abstract

Flocking control is a significant problem in multi-agent systems such as multi-agent unmanned aerial vehicles and multi-agent autonomous underwater vehicles, which enhances the cooperativity and safety of agents. In contrast to traditional methods, multi-agent reinforcement learning (MARL) solves the problem of flocking control more flexibly. However, methods based on MARL suffer from sample inefficiency, since they require a huge number of experiences to be collected from interactions between agents and the environment. We propose a novel method Pretraining with Demonstrations for MARL (PwD-MARL), which can utilize non-expert demonstrations collected in advance with traditional methods to pretrain agents. During the process of pretraining, agents learn policies from demonstrations by MARL and behavior cloning simultaneously, and are prevented from overfitting demonstrations. By pretraining with non-expert demonstrations, PwD-MARL improves sample efficiency in the process of online MARL with a warm start. Experiments show that PwD-MARL improves sample efficiency and policy performance in the problem of flocking control, even with bad or few demonstrations.
BibTeX
@inproceedings{qiu2022sample,
  author = {Yunbo Qiu and Yuzhu Zhan and Yue Jin and Jian Wang and Xudong Zhang},
  title = {{Sample-Efficient Multi-Agent Reinforcement Learning with Demonstrations for Flocking Control}},
  booktitle = {2022},
  year = {2022},
  doi = {10.1109/vtc2022-fall57202.2022.10012835},
}
Figure