Abstract
DeepMind Lab2D is a high-performance, 2D grid-world simulator designed to facilitate the creation of complex environments for multi-agent reinforcement learning. By prioritizing 2D abstraction over 3D realism, it offers a scalable and flexible platform that treats environment design as a primary component of AI research.
Introduction: The "Problem Problem"
In the pursuit of Artificial General Intelligence (AGI), research often focuses on agent architectures—the "brains"—while treating the environment as a static backdrop. However, the environment is a fundamental causal factor in shaping intelligence, a concept the authors refer to as the "problem problem."
Existing tools present a dilemma: 3D simulators like Unity are visually realistic but computationally expensive and difficult to modify, while many 2D simulators lack the performance or multi-agent support required for modern deep reinforcement learning. DeepMind Lab2D bridges this gap, providing a tool that makes environment design a first-class citizen in AI experimentation.
System Architecture
DeepMind Lab2D is built on a "layered grid-world" architecture. To ensure maximum efficiency, the core engine is written in C++, while high-level game logic is scripted in Lua. This allows researchers to define custom rules and "tinker" with environments without needing to recompile the engine.
Key technical features include:
- Layered Grid & Pieces: Environments consist of multiple 2D layers where "pieces" (agents or items) occupy specific coordinates and orientations.
- State-Driven Logic: Each piece has attributes (e.g., color, group membership) that trigger callbacks when changed, forming the basis of the game logic.
- Sensing via Raycasts: Agents perceive the world through raycasting or area queries, allowing for complex visual interactions within a 2D space.
- Multi-Agent Native Support: The system is designed for multiple players, supporting custom views for each agent to enable "imperfect information" games.
Benchmark: Running With Scissors (RWS)
To demonstrate the platform's capabilities, the authors introduced "Running With Scissors" (RWS), a spatially and temporally embedded version of the classic matrix game. In RWS, agents move through a map to collect resources (rock, paper, or scissors icons). When an agent "zaps" another, a payoff is calculated based on their respective inventories.
Unlike simple matrix games, RWS requires agents to learn complex policies involving foraging, scouting opponent collections, and timing interactions strategically.
Performance and Learning Results
DeepMind Lab2D achieves massive frame rates, enabling researchers to run experiments in hours that would typically take days in 3D environments. On a single CPU core, the simulator can run at an average of 250,000 frames per second for two agents, including rendering 80x80 RGB observations.
Using the Advantage Actor-Critic (A2C) algorithm, the authors demonstrated that agents could successfully learn "best-response" strategies. For instance, if an opponent is restricted to collecting only rock, the learning agent successfully learns to forage for paper and then initiate a zap.
Conclusion and Future Work
While Lab2D is a discrete grid-world and not suited for continuous control tasks like robotics, its efficiency and flexibility make it an ideal platform for studying social complexity and strategic depth. The authors hope the community will use Lab2D to create a new generation of "intelligence tests" that focus on the strategic challenges of multi-agent interaction rather than just visual navigation.
Summary updated