Abstract
This paper advances motion agents empowered by large language models (LLMs) toward autonomous navigation in dynamic and cluttered environments, significantly surpassing first and recent seminal but limited studies on LLM's spatial reasoning, where movements are restricted in four directions in simple, static environments in the presence of only single agents much less multiple agents. Specifically, we investigate LLMs as spatial reasoners to overcome these limitations by uniformly encoding environments (e.g., real indoor floorplans), agents which can be dynamic obstacles and their paths as discrete tokens akin to language tokens. Our training-free framework supports multi-agent coordination, closed-loop replanning, and dynamic obstacle avoidance without retraining or fine-tuning. We show that LLMs can generalize across agents, tasks, and environments using only text-based interactions, opening new possibilities for semantically grounded, interactive navigation in both simulation and embodied systems.
Introduction
Autonomous navigation in complex environments is a cornerstone of robotics and embodied AI. Traditionally, this task relies on classical pathfinding algorithms like A* or data-intensive Reinforcement Learning (RL). While classical methods are robust in static settings, they often struggle with the fluidity of multi-agent interactions. Conversely, RL requires extensive training and frequently fails to generalize to novel floorplans.
Recent research has explored the spatial reasoning capabilities of Large Language Models (LLMs). However, these studies were largely confined to "grid-world" environments—simple, static mazes where agents move in cardinal directions. This work breaks these constraints, investigating whether pre-trained LLMs can navigate realistic, cluttered indoor environments with multiple dynamic agents in a zero-shot manner.
Methodology: LLMs as Spatial Reasoners
The core innovation lies in treating navigation as a language-processing task. By encoding the environment and agent trajectories into discrete text tokens, the framework leverages the inherent reasoning strengths of LLMs without task-specific fine-tuning.
Environment Encoding
To bridge the gap between visual floorplans and text-based models, the authors utilize two primary representations:
- Grid Representation: A matrix where '0' denotes walkable space and '1' represents obstacles.
- Code Representation: A Python-style list of obstacle coordinates, which aligns well with the code-heavy training data of modern LLMs.
Anchored Trajectories and Replanning
Instead of step-by-step grid movements, the LLM generates a sequence of "anchor points" or waypoints. The agent moves linearly between these points, allowing for continuous, omnidirectional motion.
When an agent encounters a collision, the system initiates a closed-loop replanning cycle. Two strategies were evaluated:
- Additive Refinement: The LLM recalculates the entire path from the start, incorporating the failure context.
- Compositional Refinement: The LLM fixes only the segment of the path from the point of failure to the destination.
Experimental Setup
The framework was evaluated using the R2V dataset, comprising 815 real-world indoor floorplans. Performance was measured against ground-truth paths generated by the A* algorithm. The study benchmarked leading models, including GPT-4o, Gemini-2.0-flash, DeepSeek-R1, and OpenAI’s o3-mini.
Results and Discussion
The experiments revealed that LLMs are surprisingly capable spatial reasoners when provided with textual abstractions.
Model Performance and Refinement
OpenAI’s o3-mini emerged as the top performer, achieving a 78.1% Success Rate (SR) in single-turn trials. A key finding was the efficacy of multi-turn refinement. As shown in the performance metrics, allowing the model up to four retry turns pushed the success rate toward 90%. Notably, the additive strategy generally outperformed the compositional one, as global path recalculation prevents agents from becoming trapped in locally suboptimal configurations.
Multi-Agent Coordination
The system demonstrated a remarkable ability to act as a zero-shot "air traffic controller." In scenarios with three simultaneous agents, the LLM successfully predicted potential intersections and rerouted agents to avoid dynamic collisions. This capability was further validated by using LLM-generated paths to drive 3D humanoid motion models, ensuring collision-free movement in simulated physics environments.
Conclusion
This research demonstrates that LLMs can transcend simple grid-world puzzles to solve complex, human-scale navigation tasks. By encoding spatial data as text, the system achieves high success rates in dynamic multi-agent environments without any retraining. Future work will focus on transitioning from global map visibility to egocentric, local observations, bringing the system closer to deployment on physical robotic platforms.
Summary updated