Generative Curricula for Multi-Agent Path Finding via Unsupervised and Reinforcement Learning

Thomy Phan, Timy Phan, Sven KoenigJAIR 2025

Abstract

Multi-Agent Path Finding (MAPF) is essential for modern logistics and automated warehousing, yet Reinforcement Learning (RL) agents often fail to generalize to novel environments due to "micro-aspect bias." This paper presents VAULT (Variational Autoencoder Utilized Learning of Terrains), a novel framework that automatically generates a diverse training curriculum. By learning a continuous latent space of map structures via a Variational Autoencoder (VAE), VAULT enables the discovery and generation of increasingly challenging environments. Our results show that VAULT significantly improves agent generalization and training efficiency, outperforming traditional search-based solvers and static training regimes in complex, large-scale scenarios.

The Challenge of Generalization in MAPF

Multi-Agent Path Finding involves finding collision-free paths for multiple agents in a shared environment. While traditional search-based solvers are precise, they are often computationally expensive and struggle with dynamic changes. Decentralized Reinforcement Learning (RL) offers a faster alternative, but agents often suffer from "micro-aspect bias"—they overfit to the specific structures (like open spaces or narrow corridors) present in their training data.

Traditionally, overcoming this bias required weeks of manual "reward shaping" or the hand-crafting of diverse training maps. VAULT addresses this by asking: Can we automate the creation of a training curriculum that covers all these edge cases without manual engineering?

The VAULT Framework

VAULT is a two-stage framework designed to move away from hand-engineered training scenarios toward an automatically evolving "syllabus" of maps.

Overview of the VAULT framework within the learning-based MAPF pipeline, illustrating the transition from map generation to policy evaluation.

Stage I: Unsupervised Learning

The first stage involves training a Variational Autoencoder (VAE) on thousands of subgrids extracted from standard MAPF benchmarks, including warehouses, cities, and mazes. The VAE learns to compress these complex maps into a low-dimensional, continuous "latent space."

The Variational Autoencoder (VAE) architecture used in VAULT to compress map subgrids into a continuous latent representation.

This continuity is key: it allows the system to "morph" between different map types, creating hybrid environments that do not exist in the original dataset. This "latent space smoothing" prevents agents from overfitting to specific structural patterns.

Stage II: Generative Curriculum

During RL training, VAULT employs an optimization algorithm (the Cross-Entropy Method) to search the latent space. It identifies regions where agents are currently making progress—the "Goldilocks" zone of difficulty—and generates more maps from those regions. This high-level map generation is combined with a low-level curriculum (CACTUS) that gradually increases the distance between agent start and goal points.

Key Insights

  • The Power of Pruning (CoreVAULT): The authors found that training on fewer maps can lead to better generalization. By pruning simple or redundant maps (like empty rooms) that the VAE masters instantly, the model focuses its capacity on complex structural features.
  • Median-Based Updates: To ensure stable learning, the curriculum updates are based on the median completion rate across map types. This provides a robust measure of progress that isn't skewed by outliers.

Results and Performance

VAULT-trained agents demonstrated superior performance across several metrics:

  • Generalization: Agents reached higher completion rates on unseen, novel maps compared to those trained on static benchmarks or random obstacles.
  • Efficiency: The generative approach allowed agents to reach peak performance faster than alternative RL methods.
  • Scalability: In large-scale tests with up to 800 agents (e.g., in City maps), VAULT-trained policies outperformed state-of-the-art anytime solvers like MAPF-LNS and LaCAM*, achieving lower average travel times with only a single forward pass per agent per time step.

Conclusion

VAULT represents a significant step toward fully automated training pipelines for multi-agent systems. By replacing manual map engineering with a generative latent-space search, the framework produces agents that are more robust, adaptable, and efficient. Future work may explore more advanced generative models, such as Diffusion Models, to further enhance the complexity and quality of the training environments.

Summary updated

BibTeX
@article{phan2025generative,
  author = {Thomy Phan and Timy Phan and Sven Koenig},
  title = {{Generative Curricula for Multi-Agent Path Finding via Unsupervised and Reinforcement Learning}},
  journal = {J. Artif. Intell. Res.},
  year = {2025},
  doi = {10.1613/jair.1.17403},
}
Figure