Integrating Intent Understanding and Optimal Behavior Planning for Behavior Tree Generation from Human Instructions

Xinglin Chen, Yishuai Cai, Yunxin Mao, Minglong Li, Wenjing Yang, Weixia Xu, Ji Wang

Abstract

Robots executing tasks following human instructions in domestic or industrial environments essentially require both adaptability and reliability. Behavior Tree (BT) emerges as an appropriate control architecture for these scenarios due to its modularity and reactivity. Existing BT generation methods, however, either do not involve interpreting natural language or cannot theoretically guarantee the BTs' success. This paper proposes a two-stage framework for BT generation, which first employs large language models (LLMs) to interpret goals from high-level instructions, then constructs an efficient goal-specific BT through the Optimal Behavior Tree Expansion Algorithm (OBTEA). We represent goals as well-formed formulas in first-order logic, effectively bridging intent understanding and optimal behavior planning. Experiments in the service robot validate the proficiency of LLMs in producing grammatically correct and accurately interpreted goals, demonstrate OBTEA's superiority over the baseline BT Expansion algorithm in various metrics, and finally confirm the practical deployability of our framework.

Introduction

Robots operating in human-centric environments, such as homes or factories, must navigate the "translation gap" between ambiguous natural language (e.g., "Could you clean the table and bring me a coffee?") and precise, reliable execution. While Behavior Trees (BTs) are favored for their modularity and reactive nature, traditional generation methods often rely on manual coding or complex reward functions that lack logical guarantees.

Large Language Models (LLMs) offer a solution for intent understanding but are prone to hallucinations and cannot inherently ensure that generated plans are mathematically optimal. This research introduces a two-stage framework that leverages the linguistic strengths of LLMs while maintaining the rigorous planning capabilities of a new algorithm, the Optimal Behavior Tree Expansion Algorithm (OBTEA).

Methodology: A Two-Stage Framework

The proposed system bridges the gap between messy human language and precise robot execution through a structured pipeline.

Stage 1: Intent Understanding

The first stage employs an LLM (specifically GPT-3.5) to translate human instructions into Well-Formed Formulas (WFFs) in first-order logic. To mitigate the risk of hallucinations or semantic errors, the framework incorporates Reflective Feedback. A syntax and semantic checker validates the LLM's output against the environment's known objects and predicates. If an error is detected, the system provides the LLM with a "blacklist" of forbidden outputs, prompting a self-correction loop. The final logic is then normalized into Disjunctive Normal Form (DNF), breaking complex instructions into manageable sub-goals.

Stage 2: Optimal Behavior Planning

The second stage introduces OBTEA, which constructs a goal-specific BT. Unlike previous expansion algorithms that merely seek a valid path, OBTEA utilizes a cost function to identify the most efficient execution sequence (minimizing time or energy). A critical component of this stage is Compaction, which simplifies the tree by merging redundant condition checks, thereby accelerating the robot's decision-making process during real-time execution.

Detailed overview of the two-stage framework, illustrating the transition from natural language to a compacted Behavior Tree.

Experimental Evaluation

The framework was evaluated using a custom "Café Scenario" dataset comprising 100 instructions of varying difficulty, as well as 1,000 random computational test sets to assess scalability.

Key Results

  • Interpretation Accuracy: The LLM-based intent understanding achieved 90.7% accuracy on simple tasks, though performance dropped to 65.0% for "Hard" tasks involving complex negations and conditional logic.
  • Planning Optimality: OBTEA demonstrated significant improvements over baseline BT Expansion algorithms. In complex scenarios, it reduced total execution costs by approximately 45%.
  • Execution Efficiency: The compaction step proved vital for real-time performance. As shown in the experimental data, increasing the recursion depth during compaction significantly reduces the number of "ticks" (sensor checks) required by the robot.
Performance analysis showing the reduction in condition node ticks as a function of compaction recursion depth across different task difficulties.

Conclusion and Future Work

By using first-order logic as an intermediate representation, this framework successfully combines the adaptability of LLMs with the reliability of optimal planning. The system's practical viability was confirmed through deployment in the MO-VLN simulator, where it won a first-prize award at the ChinaSoft 2023 competition.

Future research will focus on enhancing OBTEA with modern planning heuristics and developing "rule discovery" mechanisms. These improvements would allow robots to automatically learn environment transition rules from experience, reducing the reliance on predefined predicates and further increasing their autonomy in diverse domestic settings.

Summary updated

BibTeX
@inproceedings{chen2024integrating,
  author = {Xinglin Chen and Yishuai Cai and Yunxin Mao and Minglong Li and Wenjing Yang and Weixia Xu and Ji Wang},
  title = {{Integrating Intent Understanding and Optimal Behavior Planning for Behavior Tree Generation from Human Instructions}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=cuRuvjqWnU},
}
Figure