Abstract
Multi-Agent Pathfinding (MAPF) is a complex combinatorial problem where multiple agents must navigate to goals without collisions. This paper explores the application of Monte-Carlo Tree Search (MCTS) to MAPF, introducing "Subgoal MAMCTS." By decomposing joint actions into sequential steps and employing a subgoal-based reward system, the proposed method addresses the challenges of exponential branching factors and sparse rewards, significantly outperforming standard search-based baselines in dense environments.
Introduction
The challenge of Multi-Agent Pathfinding (MAPF) is often described as a "combinatorial nightmare." In scenarios such as warehouse automation, a fleet of robots must be coordinated such that each reaches its destination without colliding or swapping places. As the number of agents increases, the state space and the number of possible joint actions explode exponentially, rendering traditional search trees unmanageable.
In "Monte-Carlo Tree Search for Multi-Agent Pathfinding: Preliminary Results," Pitanov et al. investigate whether the MCTS framework—famously used in AlphaZero—can be adapted to solve these navigation puzzles effectively.
Problem Formulation
The primary obstacles in applying standard MCTS to MAPF are the massive branching factor and sparse rewards. With $n$ agents and $|A|$ possible moves per agent, the branching factor is $|A|^n$. For instance, 10 agents with 5 move options result in nearly 10 million possibilities per time step. Furthermore, agents typically only receive a reward upon reaching their final destination. In large grids, random rollouts during MCTS simulations rarely reach these goals, providing no useful feedback for the search process.
Methodology
The authors propose two key innovations to adapt MCTS for the MAPF domain:
Action Decomposition (MAMCTS)
Instead of a single tree node representing a joint action for all agents, the authors treat each agent's decision as a separate, sequential node in the tree. This reduces the branching factor from $|A|^n$ down to $|A|$. While this increases the depth of the tree, it makes the search significantly more manageable by narrowing the search space.
Subgoal-Based Reward Function
To mitigate the sparse reward problem, a "soft guidance" approach is introduced. An initial A* search is performed for each agent independently (ignoring others) to identify an ideal path. "Subgoals" are then placed along these paths. Reaching a subgoal provides a small intrinsic reward ($r^s$), while the final goal provides a much larger reward ($r^g$). This hierarchy ($r^s \ll r^g$) encourages agents to follow their paths while allowing them to deviate to avoid collisions when necessary.
Experimental Setup
The approach was evaluated using the POGEMA environment on two types of 2D grid maps:
- Cooperative Random Maps: 16x16 grids with 0.3 obstacle density, filtered for challenging narrow-passage interactions.
- Labmaze Maps: 15x15 maze-like structures with complex layouts generated using the
labmazepackage.
Key Results
The Subgoal MAMCTS variant demonstrated superior performance across various metrics:
- Success Rates: On 16x16 cooperative maps with 8 agents, Subgoal MAMCTS achieved a 93% Cooperative Success Rate (CSR), compared to 39% for a modified A* baseline and 0% for vanilla MCTS (which failed due to sparse rewards).
- Scalability: With 16 agents, Subgoal MAMCTS maintained a 90% Individual Success Rate (ISR), while the A* baseline dropped to 40%.
- Computational Efficiency: Decisions for 16 agents took approximately 4.2 seconds. While slower than simple A* (0.02s), it remains practical due to limited simulation depth and efficient tree management.
Discussion and Conclusion
The results suggest that sequential action decomposition and subgoal rewards are powerful tools for applying MCTS to MAPF. By planning "on the fly," the algorithm adapts to specific environmental geometries better than pure reinforcement learning, which often struggles with new map constraints.
However, limitations remain. The algorithm is currently slower than heuristic search-based solvers and has only been tested on relatively small grids. Future work involves integrating deep neural networks to approximate policy and value functions, potentially accelerating the search and improving long-term planning capabilities.
Summary updated