Abstract
Robots operating in human-centric environments must balance the flexibility of natural language understanding with the reliability of formal execution. While Large Language Models (LLMs) excel at interpreting complex human intent, they often lack the formal guarantees required for safe and efficient robot planning. This paper introduces LLM-OBTEA, a two-stage framework that combines the linguistic intuition of LLMs with the mathematical rigor of formal behavior planning. In the first stage, an LLM translates human instructions into First-Order Logic, refined through a reflective feedback mechanism. In the second stage, the Optimal Behavior Tree Expansion Algorithm (OBTEA) generates a cost-optimal Behavior Tree (BT) that is mathematically guaranteed to achieve the goal. Experimental results in simulated cafe environments demonstrate that LLM-OBTEA achieves near-perfect grammatical accuracy and significantly reduces execution costs compared to existing baselines.
Introduction
Modern robotics faces a persistent "Adaptability-Reliability Gap." Humans communicate in ambiguous, context-heavy natural language, such as "Clean the table and bring me a coffee or tea." Traditional robot programming requires rigid commands, while modern LLM-based approaches, though adaptable, are prone to hallucinations and lack formal safety or efficiency guarantees.
To address this, we propose a framework that uses logic as a universal translator. By converting natural language into Well-Formed Formulas (WFF), we create a reliable handshake between the creative potential of LLMs and the provable logic of Behavior Trees (BTs).
Methodology
The LLM-OBTEA framework operates in two distinct stages: Intent Understanding and Optimal Behavior Planning.
Stage 1: Intent Understanding
An LLM (GPT-3.5) interprets human instructions into First-Order Logic. To ensure the output is valid, we employ Reflective Feedback. A syntax and semantic checker identifies errors in the LLM's initial output and provides a "blacklist" of forbidden predicates or objects, prompting the model to self-correct. The resulting logic is then normalized into Disjunctive Normal Form (DNF), breaking complex requests into manageable sub-goals.
Stage 2: Optimal Behavior Tree Expansion (OBTEA)
The core contribution is the Optimal Behavior Tree Expansion Algorithm (OBTEA). Unlike standard planners that merely seek any valid path, OBTEA searches the state space to find the minimum-cost sequence of actions.
The algorithm builds the BT backward from the goal state. A critical final step is Compaction, which merges redundant condition checks across different branches of the tree. For instance, if multiple tasks require the robot to be "Near(Table)," the compaction step ensures the sensor check only occurs once per execution cycle, or "tick."
Experimental Results
The system was evaluated using a custom "Cafe Scenario" dataset with 100 instructions of varying complexity and a high-fidelity digital twin simulator.
- Accuracy: With five-shot prompting and reflective feedback, the system achieved 100% grammatical accuracy on easy and medium tasks. Even on hard tasks, accuracy remained high at 96%.
- Planning Efficiency: OBTEA outperformed baseline BT expansion algorithms by reducing total execution costs by over 45% in complex scenarios.
- Computational Performance: The compaction algorithm significantly streamlined robot operations, reducing the number of "Condition Node Ticks" (sensor checks) from an average of 1437.4 in the baseline to 809.7 in the optimized OBTEA trees.
Conclusion
LLM-OBTEA demonstrates that the strengths of LLMs in natural language processing can be successfully married to the reliability of formal planning. By using logic as an intermediary, the framework provides a path toward robots that are both easy to interact with and mathematically guaranteed to perform efficiently. Future work will focus on expanding the system's vocabulary and enabling the robot to discover new environment rules through autonomous exploration.
Summary updated