Adaptive Anytime Multi-Agent Path Finding Using Bandit-Based Large Neighborhood Search

Thomy Phan, Taoan Huang, Bistra Dilkina, Sven Koenig

Abstract

Multi-Agent Path Finding (MAPF) is a critical challenge in robotics, particularly in high-density environments like automated warehouses. While Large Neighborhood Search (LNS) is the current state-of-the-art for anytime MAPF, it often relies on fixed parameters and greedy heuristics that limit its performance. This paper introduces BALANCE (Bandit-based Adaptive LArge Neighborhood search Combined with Exploration), a framework that utilizes Multi-Armed Bandits (MAB) to adaptively select search strategies online. By employing a bi-level MAB scheme and Thompson Sampling, BALANCE achieves over 50% cost improvement in large-scale scenarios compared to existing anytime solvers, all without the need for offline training.

Introduction

Finding collision-free paths for hundreds of agents in a shared environment is an NP-hard problem. In practical applications, "anytime" algorithms are preferred; they provide an initial feasible solution quickly and iteratively refine it. Large Neighborhood Search (LNS) has emerged as a powerful technique for this refinement, operating by repeatedly "destroying" a subset of paths and "repairing" them to reduce total delay.

However, traditional LNS implementations suffer from two primary limitations: fixed neighborhood sizes and greedy heuristic selection. These static approaches often fail to adapt to varying map densities or become trapped in local optima. While some researchers have turned to offline Machine Learning to address these issues, such methods require extensive pre-collected data and significant feature engineering. BALANCE addresses these gaps by implementing an online learning approach that adapts to the specific characteristics of a map in real-time.

The BALANCE Framework

The core innovation of BALANCE is the integration of Multi-Armed Bandits to manage the exploration-exploitation trade-off inherent in heuristic selection. To manage the complexity of the search space, the authors propose a bi-level MAB scheme.

The bi-level Multi-Armed Bandit structure of BALANCE.

In this hierarchy, the top-level bandit selects a destroy heuristic (such as random, agent-based, or map-based strategies). Conditioned on this selection, a second-level bandit determines the optimal neighborhood size (the number of paths to be replanned). This structure allows the algorithm to capture the dependency between specific heuristics and their ideal operating scales without the computational burden of a massive joint action space.

For the bandit algorithm, the researchers evaluated UCB1, Roulette Wheel, and Thompson Sampling. Thompson Sampling—a Bayesian approach—proved most effective due to its ability to maintain a probability distribution over arm performance, which is better suited for the stochastic nature of MAPF cost improvements.

Experimental Evaluation

BALANCE was evaluated using the standard MAPF benchmark set across five diverse map types: random, warehouse, game, and city maps. The experiments scaled up to 700 agents to simulate high-congestion, large-scale scenarios. The primary metric for success was the "Sum of Delays," representing the total time agents spend waiting or taking sub-optimal paths compared to their shortest possible routes.

Results and Discussion

The experimental results demonstrate that BALANCE significantly outperforms traditional LNS and even recent ML-based variants. In large-scale scenarios with over 350 agents, BALANCE variants reduced the sum of delays by at least 50%.

Performance comparison of BALANCE variants on warehouse and city maps.

As shown in the performance plots, BALANCE (Thompson) consistently achieves lower delay sums faster than other selection strategies. A key insight is that the "learning" overhead is negligible; because MAB updates involve simple mathematical increments or Beta distribution updates, the computational cost is minimal compared to the actual path replanning. Furthermore, the results highlight that explicit exploration is mandatory for long-term optimization; while standard LNS often plateaus early, BALANCE continues to find cost savings by testing alternative strategies.

Conclusion

BALANCE represents a significant step forward for anytime MAPF. By replacing fixed rules with adaptive, online learning, it provides a robust framework that excels in complex, large-scale environments. Future work will explore non-stationary MAB techniques to better handle the changing landscape of a solution as it nears optimality, as well as the potential for bandits to generate entirely new destroy heuristics on the fly.

Summary updated

BibTeX
@inproceedings{phan2024adaptive,
  author = {Thomy Phan and Taoan Huang and Bistra Dilkina and Sven Koenig},
  title = {{Adaptive Anytime Multi-Agent Path Finding Using Bandit-Based Large Neighborhood Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i16.29701},
}
Figure