Abstract
Since more and more algorithms are proposed for multi-agent path finding (MAPF) and each of them has its strengths, choosing the correct one for a specific scenario that fulfills some specified requirements is an important task. Previous research in algorithm selection for MAPF built a standard workflow and showed that machine learning can help. In this paper, we study general solvers for MAPF, which further include suboptimal algorithms. We propose different groups of optimization objectives and learning tasks to handle the new tradeoff between runtime and solution quality. We conduct extensive experiments to show that the same loss can not be used for different groups of optimization objectives, and that standard computer vision models are no worse than customized architecture. We also provide insightful discussions on how feature-sensitive pre-processing is needed for learning for MAPF, and how different learning metrics are correlated to different learning tasks.
Introduction: The Search for a "Silver Bullet"
Multi-Agent Path Finding (MAPF) is the task of finding collision-free paths for multiple agents from their respective starting points to their goals. This problem is foundational to warehouse automation, autonomous driving, and robotics. However, because MAPF is NP-hard, a wide variety of solvers have emerged, ranging from optimal search-based methods to fast but suboptimal rule-based approaches.
A critical observation in this field is that no single algorithm dominates all scenarios. The performance of a solver is highly dependent on the map topology and agent density. As shown in Figure 1, the "best" algorithm varies significantly across different benchmark maps.
Previous work on automated algorithm selection focused primarily on minimizing runtime for optimal solvers. This paper expands that scope to include suboptimal solvers and hyperparameter tuning, addressing the real-world need to balance computation time with path quality (cost).
Methodology
The authors frame algorithm selection as an image-based prediction task. A MAPF instance is converted into a multi-channel image where layers represent obstacles, agent locations, and congestion heatmaps.
Broadened Scope and Objectives
The study includes optimal and suboptimal solvers (e.g., EECBS, PP, PIBT+) and hyperparameter selection (e.g., the suboptimality bound $w$ for EECBS). Instead of a single metric, the authors propose composite optimization objectives, such as $Score = Time + w \cdot Cost$.
Model Architectures and Training
The research compares standard computer vision models—ResNet-18, VGG16, and Vision Transformers (ViT)—against specialized MAPF architectures like MAPFAST. They also evaluate different loss functions, including standard Classification (Cross-Entropy), Binary Cross-Entropy, and a Regression-based approach that predicts the "expected score" of a solver.
Datasets
To support deep learning, the authors generated two large-scale datasets using the standard MAPF benchmark:
- Algorithm Selection Dataset: 89,940 instances across diverse maps.
- Hyperparameter Selection Dataset: 53,691 instances for tuning the EECBS solver. These datasets are significantly larger than those in previous studies, enabling the training of complex models like Transformers.
Key Insights
The Physics of Pre-processing
In standard computer vision, resizing images via interpolation is common. However, in MAPF, agents move in discrete steps on a grid. Resizing "stretches" the map, fundamentally altering the problem's physics. The authors found that padding images to a fixed size is generally superior to resizing for maintaining feature integrity.
Metric Mismatch and Loss Selection
A high classification accuracy (picking the absolute best solver) does not always correlate with a low "gap" (the performance difference between the chosen solver and the true best). A model might miss the top spot but pick a "second best" that is nearly identical in performance.
The choice of loss function is critical here. As demonstrated in Table 1 (Figure 5), while Cross-Entropy (CE) or Binary Cross-Entropy (BCE) might yield better raw accuracy, Regression-based training is significantly more effective at minimizing the performance gap.
Model Performance
Surprisingly, customized MAPF architectures did not outperform general-purpose CV models. The Vision Transformer (ViT) emerged as a particularly strong default, winning approximately half of the evaluated tasks. This suggests that the hierarchical features learned by standard models are well-suited for capturing the spatial constraints of MAPF.
Conclusion
This research demonstrates that algorithm selection for MAPF is a multi-faceted problem where "how you learn" is as important as "what you learn." By incorporating suboptimal solvers, utilizing regression for score prediction, and respecting the discrete nature of grid maps during pre-processing, we can build more robust systems for automated path planning.
Summary updated