Data-Efficient Multi-Agent Spatial Planning with LLMs

Huangyuan Su, Aaron Walsman, Daniel Garces, Sham M. Kakade, Stephanie GilarXiv 2025 · DOI

Abstract

Multi-agent coordination in spatial environments, such as fleet management, traditionally requires extensive training of Reinforcement Learning (RL) or Graph Neural Network (GNN) models. This paper explores the use of Large Language Models (LLMs) as base policies for spatial planning. By integrating a fine-tuned Llama 3-8B model with a "one-at-a-time" rollout algorithm, the proposed framework achieves state-of-the-art performance while requiring 50 times less training data than traditional GNN-based approaches. The system demonstrates significant semantic adaptability and spatial reasoning capabilities, overcoming the "curse of dimensionality" inherent in joint action spaces.

What Problem Does This Paper Address?

Multi-agent resource allocation—like dispatching a fleet of taxis to minimize passenger wait times—is a classic "curse of dimensionality" problem. As the number of agents and locations grows, the possible combinations of actions explode exponentially.

Traditionally, solving these problems requires training Reinforcement Learning (RL) models or GNNs from scratch. These methods are often "data-hungry," requiring millions of simulated interactions to learn basic spatial relationships and coordination strategies. Furthermore, these models are typically "brittle"—they struggle to adapt to semantic changes in the environment (like a sudden rainstorm) without extensive retraining. The authors ask: Can we leverage the pre-existing "world knowledge" and reasoning capabilities of LLMs to create more flexible, data-efficient planners?

Methods

The authors propose a framework that treats the LLM as a "base policy" within a classic control theory structure. Key components include:

  • One-at-a-time Rollout: To avoid the exponential complexity of joint actions, the system determines moves for one agent at a time. Agent A’s decision is fed as context to Agent B, and so on. This keeps the computation linear relative to the number of agents.
  • Physical Grounding: Instead of asking the LLM to "guess" the map, the authors provide "easy-to-compute" environmental data in the prompt, such as the shortest paths to outstanding requests.
  • Prompting Strategies: They tested several reasoning architectures, including Chain-of-Thought (CoT) and Tree-of-Thoughts (ToT), alongside a custom Hallucination Checker that reprompts the model if it suggests an impossible move.
  • Fine-tuning: They performed supervised fine-tuning (SFT) on Llama 3-8B using a tiny dataset of just 128 trajectories generated by a rollout policy.
The One-at-a-time Rollout algorithm sequentially computes actions for agents, maintaining linear computational complexity.

Key Insights and Results

The most striking finding is the 50x Efficiency Gain: the LLM-based approach reached superior performance using only 128 training trajectories, compared to the 6,400 trajectories required by GNNs. This suggests LLMs bring a "spatial common sense" that skips the early, expensive stages of RL training.

Comparison of multi-agent trajectories over time, illustrating the coordination and passenger pickup efficiency of the rollout policy.
  • Top Performance: The fine-tuned Llama 3-8B with rollout achieved the lowest "Total Waiting Time" across all load levels. For example, in high-load scenarios, it achieved a cost of 47.11, outperforming the GNN-rollout (47.32) and significantly beating the zero-shot LLM (56.63).
  • Semantic Adaptability: Unlike traditional algorithms, LLMs can incorporate natural language context. By simply adding "It is currently raining" to the prompt, the LLM autonomously adjusted its strategy to account for increased travel costs without any code changes or retraining.
  • Spatial Hallucinations: While zero-shot models occasionally suffer from "spatial hallucinations," the authors found that even a single round of fine-tuning almost entirely eliminated these errors.

Limitations and Future Work

The primary bottleneck is inference latency. LLMs are significantly slower than GNNs or simple heuristics, making them currently impractical for high-frequency real-time production environments without massive hardware optimization. Future directions include using LLMs to predict future demand or to act as "value functions" that evaluate the long-term worth of specific board states.

Summary updated

BibTeX
@misc{su2025data,
  author = {Huangyuan Su and Aaron Walsman and Daniel Garces and Sham M. Kakade and Stephanie Gil},
  title = {{Data-Efficient Multi-Agent Spatial Planning with LLMs}},
  year = {2025},
  eprint = {2502.18822},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.18822},
}
Figure