[Paper Review] Robot Behavior-Tree-Based Task Generation with Large Language Models
The paper proposes a phase-step prompt design to generate modular, cross-domain robot behavior trees from large language models, enabling automatic construction of complete behavior trees from abstract task descriptions without predefined primitive tasks, and it includes an automatic source-task selection from a knowledge base.
Nowadays, the behavior tree is gaining popularity as a representation for robot tasks due to its modularity and reusability. Designing behavior-tree tasks manually is time-consuming for robot end-users, thus there is a need for investigating automatic behavior-tree-based task generation. Prior behavior-tree-based task generation approaches focus on fixed primitive tasks and lack generalizability to new task domains. To cope with this issue, we propose a novel behavior-tree-based task generation approach that utilizes state-of-the-art large language models. We propose a Phase-Step prompt design that enables a hierarchical-structured robot task generation and further integrate it with behavior-tree-embedding-based search to set up the appropriate prompt. In this way, we enable an automatic and cross-domain behavior-tree task generation. Our behavior-tree-based task generation approach does not require a set of pre-defined primitive tasks. End-users only need to describe an abstract desired task and our proposed approach can swiftly generate the corresponding behavior tree. A full-process case study is provided to demonstrate our proposed approach. An ablation study is conducted to evaluate the effectiveness of our Phase-Step prompts. Assessment on Phase-Step prompts and the limitation of large language models are presented and discussed.
Motivation & Objective
- Motivate reducing end-user effort in designing robot behavior trees by enabling automatic generation in new domains.
- Extend LLM-based task generation from sequential tasks to hierarchical, behavior-tree representations.
- Enable cross-domain task generation by grounding abstract task descriptions into executable behavior trees without fixed primitive-task libraries.
- Leverage a knowledge-base of behavior trees to automatically select source tasks for prompting the LLM.
- Demonstrate feasibility through a full-process case study and ablation studies of prompt designs.
Proposed method
- Introduce a Phase-Step prompt that generates a 3-layer behavior-tree fragment (Phase 1, Phase 2, Phase 3) consisting of Sequence and Action nodes.
- Develop a behavior-tree construction process to expand non-primitive sub-tasks into primitive actions using verb-grounding with a robot capability verb list and optional prompt-based expansion.
- Incorporate a similarity-based routine to select an appropriate source-task from a knowledge base using behavior-tree embeddings and a target task embedding, guiding the Phase-Step prompt generation.
- Provide mechanisms to handle non-primitive subtasks via sub-task expansion and to manage extra specifications with Fallback and Condition nodes.
- Perform tree expansion and pruning by adjusting prompts and enforcing primitive-action constraints (via a verb list and similarity thresholds).
- Evaluate with two LLMs (GPT-3 text-davinci-003 and ChatGPT) and uniform sentence embeddings (Universal Sentence Encoder) for grounding verbs and task similarity.
Experimental results
Research questions
- RQ1Can large language models generate modular, hierarchical behavior trees suitable for robot task execution without pre-defined primitive-task libraries?
- RQ2Does a Phase-Step prompt enable stable generation of 3-layer behavior-tree fragments that preserve tree structure across domains?
- RQ3Can automatic source-task selection from a knowledge base improve cross-domain behavior-tree generation quality?
- RQ4How do prompting variations and prompt design affect the primitiveness and quality of generated subtasks?
- RQ5What are the practical limitations of LLMs in generating robot tasks for rare or domain-specific tasks?
Key findings
- The Phase-Step prompt markedly increases tree-structured outputs, achieving higher structure ratios and multi-step trees compared to non-Phase-Step prompts.
- Automatic source-task selection from a knowledge base can produce cross-domain task generation, enabling desktop assembly from an automotive wheel-assembly source task.
- GPT-3 tended to produce more robot-friendly, concise, and interpretable task steps within the allowed verb set, whereas ChatGPT sometimes generated non-primitive verbs requiring further expansion.
- Sub-task expansion using a verb-grounding approach can convert non-primitive subtasks into primitive actions with a similarity-threshold check (0.5).
- Phase-Step prompts enable generation of 3-layer behavior-tree fragments that can be expanded into complete trees suitable for robot execution, while non-Phase-Step prompts often yield sequence-like outputs.
- Ablation shows that Phase-Step prompts improve structure ratio R from near zero (non-Phase-Step) to values around 0.6–0.93 depending on the prompt variant, indicating improved modularity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.