Abstract
DeepMind Lab is a first-person 3D game platform built on the Quake III Arena engine, designed specifically for reinforcement learning and artificial general intelligence (AGI) research. It provides a visually rich, partially observable environment where autonomous agents can learn complex tasks—such as navigation and laser tag—at simulation speeds far exceeding real-world robotics.
Introduction
To develop Artificial General Intelligence (AGI), agents must learn in environments that reflect the perceptual and physical richness of the real world. While testing embodied intelligence in physical robots is ideal, it is often prohibitively expensive and slow. Conversely, traditional 2D environments lack the 3D complexity and partial observability required for advanced spatial planning and vision. DeepMind Lab fills this gap by providing a platform with rich sci-fi visuals, naturalistic physics, and a fine-grained 3D action space tailored for machine learning.
System Architecture and Methods
DeepMind Lab is built upon ioquake3, an open-source version of the Quake III Arena engine. The engine has been modified to serve as a robust testbed for machine learning through several key features:
- Lock-stepped Simulation: The engine pauses after providing an observation, waiting for the agent's next action to ensure synchronized reinforcement learning loops.
- Rich Observations: Agents receive multi-modal inputs, including scalar rewards, first-person RGB or RGBD (depth) pixel arrays, and optional velocity vectors.
- Complex Action Space: The platform supports simultaneous actions such as movement (forward/back, strafe, jump, crouch), looking (pitch and yaw), and tagging.
Accessible APIs and Environment Design
The platform features a C API with Python bindings. For environment design, it utilizes a Lua-based API and a "Text Levels" feature. This allows researchers to generate 3D maps using simple ASCII text arrays, significantly lowering the barrier to creating custom tasks.
Environments and Tasks
DeepMind Lab functions as an environment generator rather than a static dataset. It includes several built-in level categories:
- Fruit Gathering: Agents collect rewards while avoiding obstacles.
- Maze Navigation: Tests memory and path planning in both static and procedurally-generated layouts.
- Laser-Tag: Complex arenas with AI opponents, featuring randomized textures to ensure agents learn robust visual processing rather than simple color-matching.
Key Insights and Performance
A primary insight of the platform is that procedural generation is essential for generalization. By randomizing layouts and textures, agents are forced to learn genuine visual processing and spatial mapping. Furthermore, by exposing depth and velocity data, the platform bridges the gap between software simulation and physical robotics.
Performance benchmarks indicate that DeepMind Lab is highly optimized. On a standard workstation (Intel Xeon CPU and NVIDIA Quadro K600 GPU), the engine achieves approximately 996 frames per second (fps) at 84x84 resolution. Even at higher resolutions or in CPU-only modes, the platform maintains high throughput, facilitating rapid iteration in reinforcement learning research.
Conclusion
DeepMind Lab provides a flexible, high-performance environment for pushing the boundaries of AGI. While its physics are governed by a game engine rather than a full-scale physical simulator, its visual complexity and customizable nature make it an invaluable tool for the research community. The platform is open-source, encouraging the development of novel intelligence tests and tasks.
Summary updated