Controlling Behavioral Diversity in Multi-Agent Reinforcement Learning

Matteo Bettini, Ryan Kortvelesy, Amanda Prorok

Introduction

Multi-Agent Reinforcement Learning (MARL) often grapples with a fundamental trade-off between parameter sharing and agent specialization. While sharing neural network parameters enhances sample efficiency, it frequently leads to homogeneous "clone" behaviors. Conversely, independent parameters allow for role specialization but often result in slow, unstable learning. Existing diversity-boosting techniques typically rely on intrinsic rewards or auxiliary losses, which can distort the primary learning objective and lack precise control over the degree of diversity.

Diversity Control (DiCo) Framework

To address these limitations, the authors introduce Diversity Control (DiCo), a framework that enforces a user-defined level of behavioral diversity through architectural constraints rather than reward modification.

Policy Decomposition and Rescaling

DiCo represents each agent's policy $\pi_i$ as a combination of a shared homogeneous reference $\pi_h$ and a unique heterogeneous deviation $\pi_{h,i}$: $$\pi_i(o) = \pi_h(o) + \pi_{h,i}(o)$$

The system's diversity is quantified using System Neural Diversity (SND), which measures the Wasserstein distance between agent action distributions. During training, DiCo calculates the current diversity of the unscaled deviations ($\widehat{SND}$) and applies a dynamic scaling factor to match a target diversity level ($SND_{des}$): $$\pi_i(o) = \pi_h(o) + \frac{SND_{des}}{\widehat{SND}} \pi_{h,i}(o)$$

Figure 1: The DiCo architecture decomposes policies into shared and individual components, rescaling the latter to achieve a target diversity level during deployment and training.

This architectural approach ensures that the diversity requirement is satisfied without altering the environment's reward signal, making DiCo compatible with various actor-critic algorithms.

Experimental Evaluation

The framework was evaluated using the Vectorized Multi-Agent Simulator (VMAS) across five tasks: Multi-Agent Navigation, Dispersion, Sampling, Tag, and Reverse Transport. These tasks were selected to challenge the system's ability to manage both beneficial heterogeneity (e.g., splitting up to reach multiple targets) and necessary homogeneity (e.g., coordinated pushing).

Key Results and Insights

DiCo enables diversity to be treated as a tunable hyperparameter, allowing researchers to find the optimal "sweet spot" for specific tasks.

Figure 2: Performance metrics and diversity visualizations across different target SND levels. DiCo successfully maintains target diversity (right) and improves rewards in complex tasks like Tag (center). Colormaps (left) show how agents allocate their "diversity budget" based on the observation.

Performance and Efficiency

In the Tag task, DiCo-constrained agents achieved nearly double the reward of unconstrained heterogeneous agents by discovering complex emergent strategies such as cornering and man-to-man marking. In the Dispersion task, forcing high diversity early on helped agents avoid suboptimal local minima, leading to faster convergence.

Theoretical and Practical Flexibility

The authors provide mathematical proofs for DiCo's ability to reach exact target diversity in continuous action spaces. Furthermore, the Reverse Transport experiment demonstrated that DiCo can effectively reduce diversity to improve stability in tasks where coordination is paramount.

Conclusion and Future Work

DiCo represents a significant step toward controllable MARL. By providing a "diversity knob," it allows for more predictable agent behavior and improved performance. Future research directions include automating target selection—perhaps via PID control—and extending the framework to complex discrete action spaces like those found in StarCraft II.

Summary updated

BibTeX
@inproceedings{bettini2024controlling,
  author = {Matteo Bettini and Ryan Kortvelesy and Amanda Prorok},
  title = {{Controlling Behavioral Diversity in Multi-Agent Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=qQjUgItPq4},
}
Figure