Abstract
Multi-Agent Pathfinding (MAPF) is a critical challenge in robotics, requiring collision-free paths for multiple agents. While optimal solvers like Conflict-Based Search (CBS) exist, their exponential complexity often makes them impractical for real-time applications. This paper evaluates "anytime" variants of CBS that utilize Focal Search (FS) to provide immediate suboptimal solutions and refine them over time. We compare Anytime BCBS and Anytime ECBS, focusing on the trade-offs between reusing previous search efforts and restarting the search from scratch. Our analysis reveals a "re-use paradox": while tree reuse is vital for BCBS, a naive restart approach is often more effective for ECBS due to the overhead and inaccuracy of stale focal heuristics.
Introduction
In real-world multi-agent systems, such as automated warehouses or digital traffic management, the ability to find a valid solution quickly is often more important than finding the absolute shortest path. Anytime algorithms address this by finding an initial solution within a sub-optimality bound ((\epsilon)) and then using remaining computation time to lower that bound and improve the solution quality. The core challenge in designing these algorithms is determining how much information from previous search iterations should be preserved.
As shown in Figure 3, a suboptimal solution might be found quickly by avoiding complex coordination, while an optimal solution might require agents to perform "wait" actions or take longer paths to resolve conflicts. Anytime solvers bridge this gap by transitioning from the former to the latter.
Methodology
The study focuses on two frameworks combining CBS with Focal Search (FS). Focal Search maintains a "focal list" of nodes whose primary cost is within a factor of (\epsilon) of the minimum, then selects the node that minimizes a secondary heuristic, typically the number of agent conflicts.
- Anytime BCBS: This framework applies Focal Search only at the high level of CBS (managing agent conflicts). It traditionally reuses the search tree between iterations by pruning nodes that no longer satisfy the tightening (\epsilon) bound.
- Anytime ECBS: This version applies Focal Search at both the high level and the low level (individual agent pathfinding). The authors tested two strategies for ECBS: Advanced Re-use, which saves internal low-level search states, and Naive/Restart, which restarts the entire search when the bound is lowered.
Figure 5 illustrates the relationship between the physical grid and the high-level constraint tree. As the search progresses, constraints are added to resolve conflicts, and the anytime mechanism adjusts the sub-optimality bound to refine these paths.
Key Insights and Results
The researchers conducted extensive testing using the MovingAI benchmark across various map types, including open spaces, warehouses, and complex game maps. Several key findings emerged:
- The Re-use Paradox: For Anytime BCBS, reusing the search tree is essential for performance. However, for Anytime ECBS, the "Advanced Re-use" strategy often performed worse than simply restarting. This is because the secondary focal heuristics (conflict counts) become "stale"; reusing old nodes means the algorithm makes decisions based on outdated conflict data.
- Flexibility of ECBS: Anytime ECBS generally outperformed BCBS because it allows for sub-optimality at the low level. This flexibility enables the solver to find paths that are slightly longer but significantly easier to coordinate, preventing the high-level search tree from exploding in size.
- Cut Irrelevant Conflicts (CIC): The study found that keeping old constraints that are no longer strictly necessary (due to path changes) usually hinders performance. Pruning these irrelevant constraints is more effective than maintaining a larger, more constrained search space.
Conclusion
This analysis demonstrates that for complex MAPF problems, Anytime ECBS with a naive restart strategy is a robust and effective solver. It consistently finds initial solutions faster and converges to higher-quality solutions within time limits compared to BCBS. Future work should focus on developing methods to efficiently update focal heuristics during search reuse to overcome the current limitations of the advanced re-use strategy.
Summary updated