Abstract
The rapid success of large language models (LLMs) has spurred extensive research into their ability to solve a wide range of tasks. However, their potential in multi-agent planning remains underexplored. Multi-agent planning presents unique challenges due to the combined complexity of coordination and long-horizon reasoning, often making it difficult to leverage external tools for assistance. In this paper, we introduce Multi-Agent Path Finding (MAPF), also known as multi-robot route planning, as a novel benchmark for evaluating the reasoning capabilities of LLMs. We first describe how the MAPF benchmark can be adapted for LLM-based evaluation, including dataset curation and an agentic workflow for LLMs. We show the motivating success of single-agent planning and multi-agent pathfinding in an empty room map without obstacles, then the failure to plan on the harder room map and maze map of the standard MAPF benchmark. We present our position on why directly solving MAPF with LLMs has not been successful yet, and we use various experiments to support our hypothesis. Based on our results, we discussed how researchers with different backgrounds could help with this problem from different perspectives.
Introduction
Large Language Models (LLMs) have demonstrated remarkable proficiency in domains ranging from software engineering to legal reasoning. However, their capacity for long-horizon planning and multi-agent coordination—skills essential for autonomous systems—remains a significant research frontier.
This study investigates Multi-Agent Path Finding (MAPF), a foundational problem in robotics and logistics (e.g., automated warehouse management). MAPF requires navigating multiple agents from distinct start points to goals without collisions. Beyond simple pathfinding, it necessitates "symmetry breaking"—the ability of agents to negotiate priority in narrow passages. We evaluate whether state-of-the-art LLMs can solve these complex spatial problems through direct prompting and iterative feedback.
Methodology and Agentic Workflow
To rigorously test LLMs, we developed an agentic workflow designed to mitigate the limitations of one-shot generation. The workflow transitions from high-level task descriptions to granular, step-by-step execution.
Key Components:
- Step-by-Step (SBS) Generation: Instead of requesting a complete path, the LLM generates actions for all agents at a single timestep. This reduces the complexity of the output space.
- Rule-Based Solution Checker: A deterministic checker validates each step against environment rules. If a collision is detected, the LLM receives specific error information and is prompted to regenerate the step.
- Prompting Modalities: We compared several map representations, including Textual Maps (TOM) using symbolic grids (e.g.,
@for walls), Textual Obstacles Only (TOO) using coordinates, and Multimodal (MM) inputs using raw images.
Experimental Setup
We utilized maps from the standard MAPF benchmark (Stern et al., 2019) to categorize difficulty:
- EMPTY-8-8: An open 8x8 grid (Easy).
- ROOM-32-32-4: A 32x32 grid with rooms connected by narrow doors (Medium).
- MAZE-32-32-2: A complex maze with numerous dead ends (Hard).
Analysis of LLM Performance
Our experiments revealed a stark contrast between simple navigation and coordinated planning. While LLMs achieved a 100% success rate on empty maps with two agents, performance collapsed as complexity increased.
Key Insights:
- The Coordination Paradox: LLMs struggle with "symmetry breaking." When two agents face a head-on collision in a narrow corridor, the models often fail to decide which agent should yield, leading to gridlock.
- Symbolic Blindness: Surprisingly, LLMs performed better with TOM (symbolic grids) than with coordinates or images. This suggests that LLMs process spatial relationships more effectively when they are represented as structured text patterns rather than abstract numerical data.
- The Memory Bottleneck: Long-horizon tasks eventually exceed the LLM's context window. Frequent "restarts" to clear context led to oscillatory behavior, where agents repeatedly moved back and forth because the model forgot its previous unsuccessful attempts.
- Reasoning vs. Planning: Advanced reasoning models like o1-preview occasionally performed worse than GPT-4-turbo in complex mazes. Their tendency to over-analyze often led them into dead ends that simpler, more direct models avoided.
Results and Limitations
On the Maze map, the success rate for LLMs plummeted to 0%, even with only two agents. In contrast, traditional algorithms like Conflict-Based Search (CBS) solve these scenarios in milliseconds. Furthermore, the latency of LLMs (15–30 seconds per step) makes them currently unsuitable for real-time robotics.
Conclusion
While LLMs are not yet ready to replace traditional pathfinding algorithms, MAPF serves as a rigorous "stress test" for spatial reasoning. Future work should explore fine-tuning LLMs on specialized spatial datasets or developing hybrid architectures where LLMs provide high-level strategic guidance while traditional solvers handle low-level collision avoidance.
Summary updated