Neural diversity is key to collective artificial learning

Matteo Bettini, Ryan Kortvelesy, Amanda Prorok

Abstract

Many of the world's most pressing issues, such as climate change and global peace, require complex collective problem-solving skills. Recent studies indicate that diversity in individuals' behaviors is key to developing such skills and increasing collective performance. Yet behavioral diversity in collective artificial learning is understudied, with today's machine learning paradigms commonly favoring homogeneous agent strategies over heterogeneous ones, mainly due to computational considerations. In this work, we employ diversity measurement and control paradigms to study the impact of behavioral heterogeneity in several facets of multi-agent reinforcement learning. Through experiments in team play and other cooperative tasks, we show the emergence of unbiased behavioral roles that improve team outcomes; how behavioral diversity synergizes with morphological diversity; how diverse agents are more effective at finding cooperative solutions in sparse reward settings; and how behaviorally heterogeneous teams learn and retain latent skills to overcome repeated disruptions. Overall, our results indicate that, by controlling diversity, we can obtain non-trivial benefits over homogeneous training paradigms, demonstrating that diversity is a fundamental component of collective artificial learning, an insight thus far overlooked.

Introduction

In the field of Multi-Agent Reinforcement Learning (MARL), researchers often utilize parameter sharing to ensure training stability and speed. By forcing all agents to share the same neural network weights, the system avoids the complexity of training multiple unique entities. However, this efficiency comes at a cost: the "homogeneity trap." When every agent is a clone, the team struggles to develop specialized roles, often leading to suboptimal collective behavior—like a soccer team where every player chases the ball simultaneously, leaving the goal undefended.

This paper argues that behavioral diversity is not just a byproduct of complex systems but a necessary ingredient for high-level cooperation, efficient exploration, and resilience. The authors propose a framework to measure and precisely control this diversity to unlock these benefits.

Methodology

To move beyond simple clones, the researchers introduced two primary frameworks:

  1. System Neural Diversity (SND): This metric quantifies behavioral differences by measuring the Wasserstein distance between the action distributions of different agents. It provides a mathematical way to say exactly how "different" two agents' behaviors are.
  2. Diversity Control (DiCo): This training paradigm allows for setting a specific "diversity target." It represents an agent's policy as a sum of a shared (homogeneous) base and a unique (heterogeneous) deviation. By scaling this deviation, the system can precisely enforce a desired level of heterogeneity.
The System Neural Diversity (SND) metric and Diversity Control (DiCo) framework for measuring and scaling agent heterogeneity.

For complex 5v5 scenarios, the team utilized Graph Neural Networks (GNNs) for inter-agent communication and Deep Sets to allow agents to process information about varying numbers of opponents flexibly.

Experimental Setup

The study evaluated these methods in the Vectorized Multi-Agent Simulator (VMAS) across several distinct tasks:

  • Soccer (2v2 & 5v5): High-stakes environments requiring motor skills and strategic coordination.
  • Pac-Men: A sparse-reward task where agents must explore different corridors to find rewards.
  • Dynamic Passage: A test of resilience where physically linked agents must navigate changing gaps.
  • Tag: An adversarial task requiring chasers to coordinate to capture a faster evader.

Key Results and Insights

The Emergence of Specialized Roles

In 5v5 soccer, controlled diversity led to the natural emergence of a "goalkeeper" role. One agent learned to stay back and defend, a behavior never explicitly programmed. Homogeneous teams were incapable of this specialization, as every agent converged on the same "optimal" strategy of ball-chasing.

Performance and Control Precision

Experiments showed a clear correlation between the controlled diversity level and task success. In soccer, teams with optimized diversity reached near-perfect success rates, while homogeneous teams plateaued significantly lower due to their inability to coordinate defense.

Impact of controlled diversity on reward and the precision of the SND control mechanism across different target levels.

Latent Resilience and Exploration

One of the most striking findings was "latent resilience." In the Dynamic Passage task, diverse teams learned skills to handle disruptions (like a narrowed gap) and retained them. When disruptions were reintroduced later, they adapted instantly, whereas homogeneous teams had to re-learn from scratch. Furthermore, in the Pac-Men task, diversity acted as an exploration engine, forcing agents to branch out into different corridors rather than collapsing onto a single reward source.

Conclusion

While behavioral diversity introduces computational overhead compared to simple parameter sharing, the benefits in strategic sophistication, robustness, and exploration are substantial. Diverse teams proved more robust to "out-of-distribution" challenges, winning over 50% of matches against unseen opponents. Future research will focus on transitioning these diversity-control paradigms from simulation to real-world robotic platforms and exploring their role in lifelong learning systems.

Summary updated

BibTeX
@misc{bettini2024neural,
  author = {Matteo Bettini and Ryan Kortvelesy and Amanda Prorok},
  title = {{Neural diversity is key to collective artificial learning}},
  year = {2024},
  eprint = {2412.16244},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.16244},
}
Figure