Megaverse: Simulating Embodied Agents at One Million Experiences per Second

Aleksei Petrenko, Erik Wijmans, Brennan Shacklett, Vladlen Koltun

Overview

Megaverse is a novel 3D simulation platform designed specifically for reinforcement learning (RL) and embodied AI research. By building a custom engine optimized for massive parallelism rather than human perception, the authors have created a tool capable of generating over one million experiences per second on a single 8-GPU server. This represents a massive leap in efficiency—up to 70x faster than DeepMind Lab—effectively democratizing large-scale embodied AI research for smaller laboratories that lack massive CPU clusters.

The Bottleneck in Embodied AI

Deep reinforcement learning is notoriously data-hungry. Training agents to navigate and interact with 3D worlds typically requires millions, if not billions, of experience steps. Historically, researchers have relied on repurposed game engines, such as those powering Doom or Quake III.

However, traditional game engines are designed for human players. They prioritize high-resolution graphics, complex textures, and smooth physics at 60 frames per second. RL agents, by contrast, typically learn from low-resolution, egocentric (first-person) views and do not require visual smoothness. Running hundreds of separate game instances in parallel using these engines is computationally expensive, incurs high memory overhead, and fails to fully utilize modern GPUs. Consequently, cutting-edge embodied AI research has largely been restricted to massive industrial labs with thousands of CPUs.

Engine Design and Methods

The authors built Megaverse from scratch as a lightweight, purpose-built simulator. Its unprecedented speed stems from three core design choices:

  1. Batched Rendering: Instead of rendering one scene at a time, Megaverse employs a custom Vulkan-based renderer that bundles hundreds of agent observations into a single GPU request. This drastically reduces the communication bottleneck between the CPU and GPU.
  2. Discretized Continuous Physics: While agents move continuously, the environment is structured around a voxel grid. Objects can be picked up from anywhere but are placed at discrete locations. This hybrid approach allows for $O(1)$ proximity checks and extremely fast collision detection, enabling complex interactions like object stacking without the computational drag of high-frequency physics engines.
  3. Geometry Optimization: To accelerate the rendering of procedurally generated landscapes, the engine merges adjacent voxels into larger "parallelepipeds." This significantly reduces the number of geometric primitives the GPU must process.

The Megaverse-8 Benchmark

To validate the platform, the paper introduces Megaverse-8, a benchmark consisting of eight procedurally generated tasks designed to test various cognitive abilities:

  • Navigation & Exploration: HexExplore and Obstacles.
  • Memory: HexMemory, where agents must remember a reference object.
  • Logic & Planning: Sokoban.
  • Manipulation: TowerBuilding (stacking blocks) and Rearrange (matching a 3D structure).
Examples of the diverse 3D environments in the Megaverse-8 benchmark.

Unlike many older benchmarks, Megaverse-8 natively supports multi-agent scenarios, allowing researchers to study cooperation and competition at scale.

Key Insights

  • The "Human Perception" Tax: Traditional game engines waste immense computational power on "frame-skipping"—calculating physics steps that the agent never actually observes. By simulating physics at a lower frequency that matches the agent's actual decision rate, Megaverse achieves massive efficiency gains.
  • Voxel-Based Interaction: Restricting object placement to a grid while allowing continuous movement strikes a "sweet spot." It supports complex manipulation (like building bridges or stairs) while keeping the underlying mathematics simple enough to sustain million-step-per-second speeds.
  • GPU Utilization is King: While most simulators are CPU-bound, Megaverse shifts the heavy lifting to the GPU through batched rendering. This allows a single machine to perform the work that previously required an entire cluster.

Results and Performance

Megaverse reaches an astounding 1.1 million observations per second on a single 8-GPU node. This throughput is roughly 70x faster than DeepMind Lab and 20x faster than Atari simulators. In end-to-end training scenarios, Megaverse proves to be 2-3x faster than VizDoom and up to 14x faster than DeepMind Lab.

Despite the speed, the benchmark remains rigorous. While standard RL algorithms (like PPO) can solve the basic navigation tasks, they struggle significantly with the "hard" versions of Obstacles, Sokoban, and Rearrange. This confirms that Megaverse-8 provides a meaningful and difficult challenge for the next generation of AI models.

Limitations and Future Work

The primary limitation of Megaverse is its visual fidelity. The engine uses stylized, monochrome, and low-poly graphics. While this abstraction is perfect for training reasoning, memory, and spatial skills, it is not intended for "sim-to-real" applications where an agent must eventually recognize photorealistic textures in the real world.

However, the extreme speed of Megaverse opens the door for research areas that were previously too computationally expensive. The authors suggest it will be particularly valuable for meta-learning (where an agent learns how to learn across thousands of different tasks) and derivative-free optimization, which requires evaluating vast numbers of agent populations simultaneously.

Summary updated

BibTeX
@inproceedings{petrenko2021megaverse,
  author = {Aleksei Petrenko and Erik Wijmans and Brennan Shacklett and Vladlen Koltun},
  title = {{Megaverse: Simulating Embodied Agents at One Million Experiences per Second}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=UY8W6d7ropY},
}
Figure