Abstract
Navigating complex environments using natural language instructions is a foundational challenge in robotics, requiring both linguistic comprehension and rigorous spatial reasoning. While Large Language Models (LLMs) demonstrate impressive capabilities in parsing human speech, they frequently struggle with the logical constraints of path planning, often producing suboptimal or physically impossible routes. Conversely, traditional symbolic planners provide mathematical guarantees but lack the flexibility to interpret unstructured text. This paper presents the Neuro-Symbolic Planner (NSP), a hybrid framework that utilizes an LLM as a translator to convert natural language into executable Python code. By leveraging a symbolic execution environment and an iterative feedback loop, NSP bridges the reasoning gap, achieving a 90.1% success rate and producing paths significantly more efficient than those generated by pure neural baselines.
Introduction
The ability for a robot to navigate a physical space based on plain English instructions—such as "find the shortest path to the kitchen while avoiding the living room"—represents a significant milestone in human-robot interaction. Current approaches generally fall into two camps: neural planners and symbolic planners. Neural planners, primarily LLMs, are adept at understanding context but lack a robust "world model," leading to "hallucinations" where the model suggests paths through walls or non-existent corridors. Symbolic planners, such as Dijkstra’s algorithm, are computationally perfect but require inputs in rigid, formal formats that are inaccessible to the average user.
In "NSP: A Neuro-Symbolic Natural Language Navigational Planner," researchers from the University of Florida and Florida International University propose a framework that treats the LLM not as a solver, but as a translator. By converting fuzzy human language into structured code, the system offloads the heavy lifting of spatial reasoning to a deterministic symbolic engine.
The Reasoning Gap
The fundamental issue addressed by NSP is the reasoning gap between language and logic.
- Symbolic Planners require a predefined graph of the environment. They cannot autonomously interpret a house description written by a human.
- Neural Planners (LLMs) can read the description but struggle as the complexity of the environment increases. In scenarios with numerous rooms or specific constraints, LLMs often lose track of the spatial topology, resulting in massive detours or logical failures.
NSP bridges this gap by using the LLM to generate a bridge: Python code.
Methodology: The NSP Framework
The NSP framework operates through a two-stage process designed to ensure both linguistic accuracy and logical correctness.
1. Neuro-Symbolic Translation
Instead of prompting an LLM (specifically GPT-4o-mini) to provide a final path, NSP tasks the model with writing two specific Python functions: create_graph() and solve_problem(). The system utilizes the NetworkX library, a standard tool for graph manipulation. To ensure the LLM uses the library correctly, the prompt includes relevant API documentation. This step transforms the natural language description of a house layout into a mathematical graph representation.
2. Symbolic Planning and Feedback Loop
Once the code is generated, it is executed in a symbolic environment. If the code runs successfully, it produces a valid path. However, LLMs often make minor syntax or logic errors. To mitigate this, NSP incorporates a "Compiler-in-the-Loop" mechanism. If the Python interpreter encounters an error (e.g., a KeyError or a timeout), the traceback message is fed back to the LLM as a critique. The LLM then attempts to debug and regenerate the code. This self-correction loop can repeat up to five times, significantly increasing the system's robustness.
Experimental Setup and Datasets
To evaluate NSP, the researchers developed a new benchmark suite consisting of 1,500 randomly generated navigational problems. These scenarios vary in complexity from 5 to 25 rooms and include two primary task types:
- Shortest Path Problems: Finding the most efficient route, often with constraints (e.g., "avoid Room 5").
- Traveling Salesman Problem (TSP): A more complex NP-hard task requiring the agent to visit every room exactly once.
Each problem includes a natural language description of the environment and a specific objective for the agent to complete.
Key Results and Insights
The experimental results demonstrate a substantial performance advantage for the neuro-symbolic approach over pure neural baselines, such as Chain-of-Thought (CoT) prompting.
- Success Rate and Scalability: In 25-room scenarios, NSP maintained a 100% success rate for shortest-path problems. In contrast, standard LLM prompting performance plummeted to between 14% and 17% as the number of rooms increased.
- Path Efficiency: NSP produced paths that were 19% to 77% shorter than those found by baselines. While LLMs might occasionally find a "valid" path, those paths were often highly suboptimal compared to the mathematically derived routes of NSP.
- Handling NP-Hard Tasks: For the TSP tasks, NSP achieved a 77% success rate in 25-room environments, whereas pure neural baselines failed almost entirely (0-1% success rate).
- The Necessity of Feedback: The self-correction mechanism proved vital, with the feedback loop being triggered an average of 1.82 times per input. This suggests that the ability to "debug" is a core component of the system's high success rate.
Limitations and Future Work
Despite its success, NSP faces several challenges. The iterative feedback loop and code execution introduce inference latency, which may be a factor in real-time applications. Additionally, while NSP excelled at finding valid TSP cycles, its "Optimal Path Rate" for TSP decreased in larger graphs, indicating that while it finds a solution, it may not always find the absolute shortest cycle for NP-hard problems. Finally, the system's reliance on specific libraries like NetworkX means its performance is tied to the LLM's familiarity with those specific coding tools.
Future research will focus on expanding the framework to handle dynamic environments where the map may change during navigation, requiring the system to update its symbolic model in real-time.
Conclusion
NSP demonstrates that the most effective way to use LLMs in robotics may not be as end-to-end solvers, but as intelligent interfaces to classical symbolic logic. By using code as a universal intermediate representation, NSP provides a scalable, robust, and highly efficient solution for natural language navigation.
Summary updated