Automatic Algorithm Selection In Multi-agent Pathfinding

Devon Sigurdson, Vadim Bulitko, Sven Koenig, Carlos Hernández, William YeoharXiv 2019

Abstract

Multi-Agent Pathfinding (MAPF) involves navigating multiple agents to distinct goals without collisions, a task that is computationally demanding and lacks a universal optimal algorithm. Different environments and agent distributions favor different heuristic approaches. This paper proposes an automated algorithm selection framework using a deep convolutional neural network (AlexNet) to classify MAPF problem instances and select the most effective solver from a portfolio. By representing the map and agent configurations as image data, the model achieves a 76.6% completion rate, significantly outperforming individual standalone algorithms and approaching theoretical peak performance.

Introduction

The Multi-Agent Pathfinding (MAPF) problem is a critical challenge in robotics, logistics, and digital entertainment. While finding optimal collision-free paths for multiple agents is NP-hard, various suboptimal algorithms offer real-time performance with specific trade-offs. Some algorithms excel in open spaces but fail in narrow corridors, while others manage congestion at the cost of high computational overhead. Traditionally, developers select a single algorithm for a given application, which often leads to suboptimal performance across diverse scenarios. This research addresses the algorithm selection problem: identifying the best solver for a specific map and agent distribution.

Methodology

The researchers framed algorithm selection as an image classification task, leveraging the spatial recognition capabilities of Convolutional Neural Networks (CNNs).

Algorithm Portfolio

The study utilized three distinct A*-based solvers:

  • Windowed Hierarchical Cooperative A (WHCA): Effective in congested areas but computationally intensive.
  • Flow Annotation Replanning (FAR): Utilizes "highways" for traffic flow, though susceptible to gridlock.
  • Bounded Multi-Agent A (BMAA): A real-time search method treating other agents as dynamic obstacles.

Input Representation and Model

Problem instances were abstracted into $227 \times 227$ RGB images. Black and white pixels represent the map geometry, while green and red pixels denote agent start and goal locations, respectively. This visual encoding allows the model to capture complex spatial patterns without manual feature engineering.

Input abstraction representing the MAPF problem as an RGB image with start (green) and goal (red) locations.

The model architecture is based on AlexNet, modified to output a classification across the three portfolio algorithms. Training data consisted of 20 maps from the Baldur’s Gate II benchmark, featuring seven distinct agent distribution scenarios (e.g., "Inside out," "Cross sides") with 300 agents per instance.

Results and Analysis

The automated selector ($\pi$) demonstrated a clear advantage over static algorithm choices. It correctly identified the optimal solver in 72.9% of test cases.

Completion rates of the automated selector ($\pi$) compared to individual algorithms and the theoretical optimal selector ($\pi^*$).

Key performance metrics include:

  • Completion Rate: The selector achieved a 76.6% completion rate, a substantial improvement over the best single algorithm, FAR (66.1%).
  • Proximity to Optimal: The theoretical "perfect" selector ($\pi^*$) would reach 80.8%. The CNN-based approach captured the majority of this potential gain.
  • Scenario-Specific Strengths: Analysis confirmed that algorithm performance is highly scenario-dependent. For instance, BMAA* dominated "Inside out" problems, while FAR was superior in "Cross sides" and "Tight to wide" scenarios.

Conclusion

This work demonstrates that deep learning can effectively automate algorithm selection in MAPF by treating problem instances as visual patterns. By bypassing manual feature engineering, this approach provides a scalable way to improve pathfinding efficiency in dynamic environments. Future research will explore expanding the algorithm portfolio, handling variable agent counts, and incorporating explicit start-to-goal mappings to further refine selection accuracy.

Summary updated

BibTeX
@misc{sigurdson2019automatic,
  author = {Devon Sigurdson and Vadim Bulitko and Sven Koenig and Carlos Hernández and William Yeoh},
  title = {{Automatic Algorithm Selection In Multi-agent Pathfinding}},
  year = {2019},
  eprint = {1906.03992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.03992},
}
Figure