Abstract
This research investigates the impact of environment and population diversity on the generalization capabilities of multi-agent reinforcement learning (MARL) agents. By introducing Expected Action Variation (EAV), a novel task-agnostic metric for behavioral diversity, the study quantifies how procedural generation and population scaling influence performance. Results indicate that while diversity significantly reduces the generalization gap, it often necessitates a trade-off with peak training performance.
Introduction
Reinforcement learning (RL) agents frequently suffer from overfitting, where they memorize specific environment layouts or the idiosyncratic behaviors of training partners. In multi-agent settings, this leads to a collapse in performance when agents encounter novel co-players or unfamiliar terrains. While procedural generation has been used to mitigate overfitting in single-agent RL, its quantitative impact on MARL remains less explored. This paper provides a rigorous framework for measuring how different forms of diversity—both environmental and social—affect agent robustness.
Quantifying Diversity: Expected Action Variation (EAV)
A core contribution of this work is the Expected Action Variation (EAV) metric. Unlike previous diversity measures that rely on domain-specific features (e.g., unit types in a strategy game), EAV is task-agnostic. It calculates the probability that two agents, randomly sampled from a population, will select different actions when presented with the same state. By focusing solely on action distributions, EAV allows researchers to monitor the behavioral "health" and variety of agent populations across any environment.
Experimental Setup
The study utilizes four distinct environments implemented in the DeepMind Lab2D engine, each designed to test different social and strategic dynamics:
- HarvestPatch: A mixed-motive social dilemma requiring a balance between individual gain and resource sustainability.
- Traffic Navigation: A coordination task where eight agents must reach goals without colliding.
- Overcooked: A cooperative game requiring tight synchronization between two players.
- Capture the Flag: A competitive team game involving strategic navigation and tagging.
Agents were trained using V-MPO (an on-policy variant of Maximum a Posteriori Policy Optimization). The researchers manipulated environment diversity by varying the number of unique training levels ($L$) from 1 to 10,000, and population diversity by adjusting the number of agents ($N$) and using Social Value Orientation (SVO) to vary intrinsic motivations.
Key Insights and Results
The Generalization Trade-off
Increasing the number of training levels consistently reduced the "generalization gap"—the performance difference between training and held-out test sets. Across all games, this gap approached zero when agents were trained on approximately 1,000 unique levels. However, a slight dip in peak training performance was observed, as agents could no longer rely on memorizing optimal paths and had to develop more general, albeit less specialized, policies.
Population Dynamics
Behavioral diversity (EAV) was found to emerge naturally as population size ($N$) increased, likely due to independent exploration and random initializations. The benefits of this diversity were task-dependent:
- High Impact: In Overcooked and Capture the Flag, moving from self-play ($N=1$) to a small population ($N=2$) resulted in a substantial performance boost.
- Low Impact: In HarvestPatch and Traffic Navigation, simple self-play performed comparably to larger, more diverse populations.
In competitive settings like Capture the Flag, the impact of environment diversity was stark: agents trained on 10,000 levels achieved an Elo rating of 1369 on test sets, whereas those trained on a single level reached only 258.
Conclusion
This research demonstrates that quantifying diversity through metrics like EAV is essential for developing robust MARL agents. While environment diversity is a primary driver for closing the generalization gap, population diversity provides critical behavioral variety necessary for complex cooperative and competitive tasks. Future work will aim to refine EAV to distinguish between low-level action noise and high-level strategic diversity, further bridging the gap between simulated training and real-world application, particularly in human-agent cooperation.
Summary updated