NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Anytime Multi-Agent Path Finding via Machine Learning-Guided Large Neighborhood Search

Taoan Huang, Jiaoyang Li, Sven Koenig, Bistra Dilkina

Abstract

Multi-Agent Path Finding (MAPF) is a critical yet computationally expensive challenge in robotics and logistics. While anytime algorithms like Large Neighborhood Search (LNS) offer a path to scalability by iteratively refining solutions, their efficiency is often hampered by suboptimal selection of agent subsets for replanning. This paper introduces MAPF-ML-LNS, an approach that integrates a machine learning-based ranking function to intelligently prioritize agent sets. By training a lightweight $SVM^{rank}$ model to imitate an expert oracle, the proposed solver achieves significant speedups and higher-quality solutions across diverse environments, demonstrating robust zero-shot generalization to unseen maps.

Introduction

Multi-Agent Path Finding (MAPF) involves navigating a team of agents from their respective start positions to goals without collisions. As an NP-hard problem, finding optimal solutions for large-scale systems, such as warehouse robots, is often computationally infeasible in real-time.

Anytime algorithms address this by finding an initial valid solution quickly and then iteratively refining it to reduce the total travel time (sum of costs). The current state-of-the-art, MAPF-LNS, utilizes Large Neighborhood Search to "destroy" and "repair" agent paths. However, its reliance on random or heuristic-based subset selection often leads to wasted computation on replanning steps that yield no improvement. This paper addresses this bottleneck by introducing a machine-learning "brain" to the selection process.

Methodology

The authors propose MAPF-ML-LNS, which replaces heuristic selection with a learned ranking model. The methodology consists of four key components:

  1. Oracle Generation: To provide training data, the researchers created an expert oracle that exhaustively tests multiple candidate agent sets to identify which ones yield the most significant cost reductions.
  2. Feature Engineering: Agent sets are characterized by 17 features categorized into static map geometry (e.g., vertex degree) and dynamic metrics (e.g., agent "delay" and local "heat" or congestion).
  3. Learning to Rank: A lightweight $SVM^{rank}$ model is trained to imitate the oracle's rankings. The authors specifically avoided heavy deep learning models like Graph Convolutional Networks (GCNs) to ensure that the inference overhead did not outweigh the time saved by better selection.
  4. Iterative Refinement: During execution, the solver samples candidate sets, ranks them using the ML model, and replans only the highest-ranked set.

Evaluation and Datasets

The approach was evaluated using the standard MAPF benchmark set across five diverse map types, including random grids, structured warehouses, and complex game maps from Dragon Age: Origins.

Example of a "city" map (Paris) used in the benchmark evaluation.

Key Results and Insights

MAPF-ML-LNS consistently outperformed the standard LNS across most benchmarks. Performance was measured using the Area Under Curve (AUC) of the sum of delays over time, where a lower AUC indicates faster convergence to high-quality solutions.

Performance comparison of MAPF-ML-LNS against the standard LNS and an oracle on a random map with 100 agents.
  • Significant Speedup: On city and game maps, the standard MAPF-LNS was 43% to 97% less efficient than the ML-guided version. In almost all cases, MAPF-ML-LNS found lower-cost solutions within a 60-second time limit.
  • Zero-Shot Generalization: Models trained on one map type performed remarkably well on others, suggesting that features like "delay" are universal indicators of optimization potential regardless of map geometry.
  • Efficiency vs. Complexity: The choice of a linear $SVM^{rank}$ proved optimal, providing the best balance between "smart" selection and raw computational speed.

Conclusion

MAPF-ML-LNS demonstrates that imitation learning can significantly enhance optimization solvers by prioritizing where to look for improvements. While the algorithm showed less substantial gains on purely random maps due to a lack of exploitable patterns, its performance on structured environments like cities and warehouses marks a significant step forward. Future work will focus on refining spatial features and scaling the approach to handle thousands of agents in real-time industrial applications.

Summary updated

BibTeX
@inproceedings{huang2022anytime,
  author = {Taoan Huang and Jiaoyang Li and Sven Koenig and Bistra Dilkina},
  title = {{Anytime Multi-Agent Path Finding via Machine Learning-Guided Large Neighborhood Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i9.21168},
}
Figure