Unreal-MAP: Unreal-Engine-Based General Platform for Multi-agent Reinforcement Learning

Tianyi Hu, Qingxu Fu, Zhiqiang Pu, Yuan Wang, Tenghai Qiu

TL;DR

Unreal-MAP is a new, open-source general platform for Multi-Agent Reinforcement Learning (MARL) built on Unreal Engine. It provides a high-fidelity, highly customizable environment that allows researchers to easily bridge the gap between simplified simulations and complex, real-world robotic applications.

What Problem Does This Paper Address?

Multi-agent reinforcement learning (MARL) has shown great promise in fields like robotics and autonomous driving, but researchers often hit a wall when moving from theory to practice. Existing simulation environments generally fall into two categories: "toy" environments (like grid worlds or particle systems) that lack physical realism, or highly specific "environment suites" (like StarCraft-based SMAC) that are difficult to customize for new tasks.

Furthermore, integrating new domain-specific environments with existing MARL algorithm libraries is often a technical nightmare. This "gap" prevents researchers from testing how state-of-the-art (SOTA) algorithms perform in realistic, heterogeneous, and large-scale scenarios. Unreal-MAP aims to solve this by providing a modular, Unreal-Engine-based platform that is both visually/physically realistic and easy to modify.

Methods

The authors developed a hierarchical, five-layer architecture to balance ease of use with deep customizability:

  1. Native Layer: Assets from the Unreal community and the engine itself.
  2. Specification Layer: Underlying C++ systems for time control and communication.
  3. Base Class Layer: Blueprint-based classes for agents and entities.
  4. Advanced Module Layer: Where users modify physical properties (kinematics, perception) using Blueprints.
  5. Interface Layer: A Python-based layer compliant with the gym standard, allowing for easy reward and observation customization.

Accompanying the platform is HMAP (Hybrid Multi-Agent Playground), an experimental framework that decouples tasks from algorithms. This allows for "Multi-Team Multi-Algorithm" training, where different teams in the same simulation can be controlled by entirely different algorithms (e.g., QMIX vs. MAPPO).

To solve the speed issue typically associated with heavy game engines, they implemented Controllable Time Flow, allowing users to accelerate simulations significantly for training or slow them down for debugging without affecting the underlying physics.

Datasets

The paper introduces an Example Task Library consisting of 4 main scenarios used to generate 15 distinct tasks:

  • Metal Clash: A large-scale, heterogeneous combat scenario (missile cars, laser cars, drones).
  • Monster Crisis: A cooperative task with sparse rewards (mushroom agents vs. a monster).
  • Flag Capture: A multi-team competitive game.
  • Navigation Game: A zero-sum game involving ground and air agents.

These tasks are designed to test specific MARL challenges like heterogeneity, scalability, and sparse reward structures.

Key Insights and Ideas

  • Decoupling is King: By separating the "Task," "Core," and "Algorithm," HMAP allows researchers to plug in third-party libraries (like PyMARL2 or HARL) with minimal friction.
  • The Power of Time Dilation: The authors found that by adjusting the "time dilation factor," they could maximize CPU utilization. This allows the engine to reach a staggering 1 million physics frames per second, making it competitive with much simpler simulators in terms of throughput.
  • Sim-to-Real Potential: Because Unreal-MAP uses a high-fidelity physics engine, the authors successfully demonstrated a "sim2real" pipeline, deploying a policy trained in Unreal-MAP directly onto physical UGVs and UAVs in a real-world navigation task.
  • Heterogeneity Matters: The results showed that value-based algorithms (like QPLEX) often struggle as the level of agent heterogeneity increases, whereas actor-critic methods (like MAPPO) tend to be more robust in these complex settings.

Key Results

  • Performance Benchmarking: The authors evaluated 7 SOTA algorithms (MAPPO, HAPPO, HATRPO, QMIX, QTRAN, QPLEX, WQMIX) across all 15 tasks.
  • Efficiency: A single server can simultaneously support 50 tasks (each with 20 agents) and complete 100,000 training episodes in just 3 hours.
  • Scalability: The platform successfully handled tasks with up to 100 agents per team, though some algorithms (like HATRPO) struggled with the resulting computational burden.

Limitations and Future Work

  • CPU Bottleneck: Unlike newer JAX-based simulators that run entirely on the GPU, Unreal-MAP still relies on the CPU for scene logic and physical calculations. This limits its maximum throughput compared to "pure-GPU" environments.
  • Learning Curve: While the Python interface is simple, deep customization still requires some familiarity with Unreal Engine's Blueprint system.
  • Future Directions: The authors plan to integrate Large Language Models (LLMs) to assist users in quickly customizing tasks via natural language prompts. They also aim to develop a more comprehensive "plug-and-play" sim2real toolkit.

Summary updated

BibTeX
@inproceedings{hu2026unreal,
  author = {Tianyi Hu and Qingxu Fu and Zhiqiang Pu and Yuan Wang and Tenghai Qiu},
  title = {{Unreal-MAP: Unreal-Engine-Based General Platform for Multi-agent Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i35.40190},
}
Figure