Abstract
The Animal-AI Environment is a unique game-based research platform designed to facilitate collaboration between the artificial intelligence and comparative cognition research communities. In this paper, we present the latest version of the Animal-AI Environment, outlining several major features that make the game more engaging for humans and more complex for AI systems. These features include interactive buttons, reward dispensers, and player notifications, as well as an overhaul of the environment's graphics and processing for significant improvements in agent training time and quality of the human player experience. We provide detailed guidance on how to build computational and behavioural experiments with the Animal-AI Environment. We present results from a series of agents, including the state-of-the-art deep reinforcement learning agent Dreamer-v3, on newly designed tests and the Animal-AI testbed of 900 tasks inspired by research in the field of comparative cognition. The Animal-AI Environment offers a new approach for modelling cognition in humans and non-human animals, and for building biologically inspired artificial intelligence.
Introduction
Despite the meteoric rise of artificial intelligence, most modern models still struggle with basic physical reasoning—the kind of "common sense" a crow or a toddler uses to solve a simple puzzle. Historically, the AI community and the comparative cognition (animal psychology) community have worked in silos. AI researchers use benchmarks like Atari or ImageNet, while psychologists use physical apparatuses like trap-tubes or mazes.
The Animal-AI Environment bridges this gap by providing a physically realistic "virtual laboratory." This platform allows researchers to directly compare the reasoning capabilities of AI agents against those of humans and non-human animals on equal footing, moving beyond narrow digital optimization toward generalized intelligence.
Methodology: The Virtual Laboratory
The environment is built on the Unity engine and utilizes the ml-agents Python API, allowing for high-performance physics and seamless integration with standard machine learning libraries like Gymnasium.
Key technical features include:
- The Arena: A 40x40 unit space where agents (represented as a hedgehog, panda, or pig) interact with objects.
- Observation Modes: Agents can "see" via first-person RGB camera pixels or more computationally efficient raycasts (laser-like sensors that detect object distance and type).
- Interactive Objects: The latest update introduces complex elements like interactive buttons, reward dispensers (simulating fruit trees or laboratory vending machines), and signboards for neutral stimuli.
- Configuration Design Assistant: A new GUI-based tool allows researchers to procedurally generate thousands of unique experiments without writing complex code.
The Animal-AI Testbed
The core of the platform is the Animal-AI testbed, a massive benchmark consisting of 900 tasks divided into 10 levels of increasing cognitive complexity:
- L1-L3: Basic food retrieval and navigating static obstacles.
- L4-L5: Avoidance of "hot zones" and spatial reasoning.
- L8-L10: High-level cognition, including object permanence (tracking items that are out of sight) and causal reasoning (using tools or buttons to reach a goal).
To establish a biological baseline, the researchers collected data from 59 children (aged 6–10) who performed a subset of these tasks, providing a direct comparison for AI performance.
Key Insights: Bridging the Gap
The platform encourages a "Virtuous Cycle" of research. By replicating animal experiments in AI, researchers can evaluate the flaws in current models, develop new hypotheses, and then test those new designs back in the physical lab with animals.
Two major insights emerged from initial testing:
- Curriculum Learning is Essential: Agents dropped directly into complex "operant chambers" (requiring multi-step actions like pressing a button to release food) failed completely. However, when trained on a sequence of increasingly difficult versions of the task, they successfully learned the behavior.
- The "Common Sense" Gap: Even state-of-the-art (SOTA) agents struggle with tasks that biological entities find trivial. For example, tracking a ball that rolls behind a wall (object permanence) remains a significant hurdle for standard reinforcement learning architectures.
Experimental Results
The researchers tested several agents, including PPO (a standard RL algorithm) and Dreamer-v3 (a SOTA model-based RL agent):
- Foraging: Both PPO and Dreamer-v3 performed well on simple foraging, nearly matching heuristic-based "perfect" navigation.
- The Testbed Performance: On the full 900-task suite, children (aged 6-10) were 47 times more likely to pass a task than chance. In contrast, the best-performing AI agents from previous competitions (Trrrrr and ironbar) were only about 19-22 times more likely to pass than chance.
- Dreamer-v3 vs. PPO: Dreamer-v3 showed superior generalization, being roughly 6 times more likely to pass tasks than a random agent, whereas standard PPO struggled significantly without specific curriculum training.
Conclusion and Future Work
While the Animal-AI Environment is a significant step forward, several areas for growth remain. Future versions may include more naturalistic textures (grass, stone, sky) to better simulate the visual complexity of the real world. Additionally, the authors suggest expanding into social cognition by including multi-agent setups to test social learning and cooperation. Currently, even the best agents require millions of steps to learn tasks that a child or a crow might grasp in a handful of attempts, highlighting a persistent and critical gap in sample efficiency between silicon and biological intelligence.
Summary updated