This paper introduces Aquarium, an open-source, highly customizable Multi-Agent Reinforcement Learning (MARL) environment designed specifically for studying predator-prey dynamics. By bridging the gap between overly simplistic grid-worlds and computationally heavy 3D simulations, Aquarium offers a standardized platform for researchers to explore emergent behaviors like swarming and group hunting.
TL;DR
Aquarium is a new open-source MARL framework that provides a continuous 2D toroidal environment with physics-based movement and customizable perception. It integrates seamlessly with the PettingZoo framework, enabling researchers to quickly benchmark algorithms and study emergent coordination behaviors in predator-prey scenarios.
What Problem Does This Paper Address?
Predator-prey interactions are a cornerstone of ecological and multi-agent systems research. However, the MARL community has long suffered from a lack of standardized environments. Researchers often build custom, one-off simulations that are difficult to reproduce or lack critical features like continuous movement, collision physics, and realistic agent perception.
Existing environments often fall into two extremes: discrete grid-worlds that can't model complex steering behaviors (like flocking), or complex 3D simulations that are computationally expensive. Aquarium addresses this by providing a "Goldilocks" solution: a continuous 2D space with enough physical realism to support emergent behavior without the overhead of full 3D physics.
Methods
The authors built Aquarium to be modular and compatible with the PettingZoo interface, allowing it to work out-of-the-box with popular RL libraries like Stable-Baselines3 and Ray RLlib.
Key technical features include:
- Continuous Toroidal Space: Agents move on a 2D plane that wraps at the edges (a torus), preventing "cornering" strategies and allowing for unbounded navigation.
- Physics-Based Movement: Instead of teleporting, agents apply steering forces to adjust their velocity, governed by mass and maximum speed constraints.
- Customizable Perception: Unlike many environments that grant agents "god-like" global visibility, Aquarium implements a Field of View (FOV) mechanism. Agents only "see" others within a specific distance and angular range.
- MARL Training Strategies: The authors evaluated the framework using Proximal Policy Optimization (PPO) under two paradigms: Individual Learning (IL), where each agent learns its own policy, and Parameter Sharing (PS), where all agents of a type share a single policy.
Datasets
The paper does not use external datasets. Instead, it introduces the Aquarium environment as a generative platform. The authors provide baseline results using standard RL algorithms (PPO) and heuristic baselines (Random and "TurnAway" strategies) to serve as a benchmark for future users.
Key Insights and Ideas
- Parameter Sharing is a Game-Changer: The most significant finding was that sharing policy parameters among prey agents drastically improved learning speed and coordination. While individually trained agents struggled to survive, parameter-sharing agents quickly learned to cooperate.
- Emergent Alignment: In a fascinating "aha" moment, the authors observed that prey agents trained with parameter sharing naturally adopted an alignment rule—they all started swimming in the same direction. This simple emergent behavior, a key component of natural swarming, proved highly effective at confusing the predator.
- The "Perception Gap": By implementing FOV constraints, the authors highlight how limited information changes agent behavior. This opens the door for testing biological theories like the "Many Eyes Hypothesis," where group living compensates for individual sensory limitations.
Key Results
- Individual vs. Parameter Sharing: Individual Learning resulted in poor performance, with prey agents being captured roughly 5 times per episode. In contrast, Parameter Sharing led to a rapid decline in captures and significantly higher rewards.
- RL vs. Heuristics: Interestingly, even the best-trained RL agents still underperformed compared to a simple "TurnAway" heuristic (which turns 180° from the predator). This suggests that learning optimal evasion in continuous space is a non-trivial task for current RL algorithms.
- Scalability: The framework successfully handled scenarios with 16 prey agents and a predator, demonstrating its utility for studying population-level dynamics.
Limitations and Future Work
While Aquarium is a robust starting point, the authors acknowledge several areas for growth:
- Dimensionality: The current 2D model doesn't capture the vertical dynamics of real-world underwater or aerial (UAV) scenarios.
- Metrics for Swarming: The environment currently lacks built-in metrics to quantify collective phenomena like cohesion or flocking density.
- Computational Efficiency: To support thousands of agents, the authors plan to optimize the FOV and collision detection systems, potentially using ray-tracing techniques.
- Environmental Factors: Future versions may include "vector flow fields" to simulate water currents or wind, adding another layer of complexity to the agents' navigation task.
Summary updated