NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MatrixWorld: A pursuit-evasion platform for safe multi-agent coordination and autocurricula

Yuhui Shi, Lijun Sun, Yu-Cheng Chang, Chao Lyu, Chin-Teng Lin, Yuhui Shi 0001arXiv 2023 · DOI

Introduction

Multi-Agent Reinforcement Learning (MARL) often struggles with two major hurdles: the lack of robust safety constraints and the high computational cost of studying complex emergent behaviors like autocurricula. Most existing benchmarks either ignore agent collisions or handle them in simplistic, biased ways. Furthermore, researching "autocurricula"—where agents generate their own learning challenges through competition—typically requires resource-heavy environments like StarCraft II or Quake III.

MatrixWorld is introduced as a lightweight pursuit-evasion platform designed to bridge this gap. It serves as a specialized "sandbox" for studying safety-constrained coordination and co-evolutionary arms races without the overhead of high-fidelity simulations.

Safety-Constrained Action Execution Model

A primary contribution of MatrixWorld is its systematic approach to resolving agent conflicts. Unlike standard environments that may suffer from race conditions or provide no feedback upon collision, MatrixWorld classifies interactions into three categories: Agent-Obstacle, Cooperative Agent-Agent, and Competitive Pursuer-Evader.

Hierarchy of collision types and resolution outcomes (Disappear, Reach, Bounce).

Each collision type is mapped to one of three resolution outcomes:

  • D (Disappear): The agent is removed from the environment (e.g., a crash or being captured).
  • R (Reach & Alive): The agent successfully moves to the target square and remains active.
  • B (Bounce): The agent is blocked and remains in its previous position, simulating collision avoidance.

Co-evolutionary Framework and Autocurricula

To facilitate the study of autocurricula, MatrixWorld implements several co-evolutionary training schemes. These schemes allow researchers to observe how agents accumulate skills over time through an "arms race."

Taxonomy of co-evolution and self-play leading to an 'arms race' in autocurricula.

The platform supports three main training paradigms:

  1. Specialist vs. Specialist: Agents train only against the most recent version of their opponent.
  2. Generalist vs. Specialist: One side trains against a historical pool of opponents to ensure robustness.
  3. Generalist vs. Generalist: Both sides train against the entire history of their rivals, preventing the "forgetting" of old skills and stabilizing the learning process.

Benchmarking and Tasks

MatrixWorld includes nine distinct pursuit-evasion tasks. These variants are defined by combining different collision resolutions with two primary capture behaviors:

  • Occupation-based: Requires a pursuer to land exactly on the evader's position.
  • Surrounding-based: Requires multiple pursuers to encircle an evader, necessitating higher-level coordination.

Key Insights and Results

Research using MatrixWorld has yielded several critical insights into MARL dynamics:

  • The Forgetting Problem: Simple "Specialist vs. Specialist" training often leads to policy cycles where agents forget how to defeat older strategies. The "Generalist" approach acts as a vital stabilizer for long-term skill accumulation.
  • Passive Policy Advantage: Evasive (passive) policies tend to benefit more from co-evolution than pursuing (active) ones. An evader's complexity is directly driven by the increasing skill of its predators.
  • The Persistence of Collisions: Even with negative rewards, collisions do not naturally vanish as agents improve. As agents become more efficient at their tasks, the frequency of "conflicts of interest" increases, reinforcing the need for explicit safety models.

Conclusion

MatrixWorld provides a theoretically grounded, lightweight environment for iterating on complex MARL concepts. While it identifies responsibility in collisions, future work will focus on translating this feedback into reward signals that can guarantee zero-collision policies without compromising task performance. Its efficiency makes it an ideal staging ground for autocurricula research before transitioning to high-fidelity 3D simulations.

Summary updated

BibTeX
@misc{shi2023matrixworld,
  author = {Yuhui Shi and Lijun Sun and Yu-Cheng Chang and Chao Lyu and Chin-Teng Lin and Yuhui Shi},
  title = {{MatrixWorld: A pursuit-evasion platform for safe multi-agent coordination and autocurricula}},
  year = {2023},
  eprint = {2307.14854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.14854},
}
Figure