LLMDR: LLM-Driven Deadlock Detection and Resolution in Multi-Agent Pathfinding
Seungbae Seo, Junghwan Kim, Minjeong Shin, Bongwon Suh
TL;DR
LLMDR addresses deadlocks in learning-based MAPF by coupling LLM-driven deadlock detection with LLM-guided resolution, executed through PIBT to produce collision-free 1-step actions. The method detects deadlocks within a detection window, groups proximate deadlocks, and assigns leader or radiation strategies to guide priorities, iteratively resolving conflicts as the plan unfolds. Experiments on multiple MAPF benchmarks show that LLMDR improves success rates and reduces episode lengths across several base models, with stronger gains in deadlock-prone, larger-agent scenarios, and when using higher-capability LLMs (e.g., GPT-4o). While effective, the approach incurs substantial computational cost from LLM inference, indicating future work in efficiency and hybrid designs for real-time applicability.
Abstract
Multi-Agent Pathfinding (MAPF) is a core challenge in multi-agent systems. Existing learning-based MAPF methods often struggle with scalability, particularly when addressing complex scenarios that are prone to deadlocks. To address these challenges, we introduce LLMDR (LLM-Driven Deadlock Detection and Resolution), an approach designed to resolve deadlocks and improve the performance of learnt MAPF models. LLMDR integrates the inference capabilities of large language models (LLMs) with learnt MAPF models and prioritized planning, enabling it to detect deadlocks and provide customized resolution strategies. We evaluate LLMDR on standard MAPF benchmark maps with varying agent numbers, measuring its performance when combined with several base models. The results demonstrate that LLMDR improves the performance of learnt MAPF models, particularly in deadlock-prone scenarios, with notable improvements in success rates. These findings show the potential of integrating LLMs to improve the scalability of learning-based MAPF methods. The source code for LLMDR is available at: https://github.com/ssbacc/llmdr-dhc
