Skip to main content
QUICK REVIEW

[Paper Review] LLM-BRAIn: AI-driven Fast Generation of Robot Behaviour Tree based on Large Language Model

Artem Lykov, Dzmitry Tsetserukou|arXiv (Cornell University)|May 30, 2023
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

LLM-BRAIn is a fine-tuned 7B-parameter LLM based on Stanford Alpaca that generates structurally and logically correct robot behavior trees (BTs) from natural language commands. Trained on 8,500 instruction-following demonstrations, it produces BTs indistinguishable from human-generated ones in user studies (4.53/10 correct distinction rate), enabling compact, on-device deployment for mobile robots, drones, and industrial systems.

ABSTRACT

This paper presents a novel approach in autonomous robot control, named LLM-BRAIn, that makes possible robot behavior generation, based on operator's commands. LLM-BRAIn is a transformer-based Large Language Model (LLM) fine-tuned from Stanford Alpaca 7B model to generate robot behavior tree (BT) from the text description. We train the LLM-BRAIn on 8,5k instruction-following demonstrations, generated in the style of self-instruct using text-davinchi-003. The developed model accurately builds complex robot behavior while remaining small enough to be run on the robot's onboard microcomputer. The model gives structural and logical correct BTs and can successfully manage instructions that were not presented in training set. The experiment did not reveal any significant subjective differences between BTs generated by LLM-BRAIn and those created by humans (on average, participants were able to correctly distinguish between LLM-BRAIn generated BTs and human-created BTs in only 4.53 out of 10 cases, indicating that their performance was close to random chance). The proposed approach potentially can be applied to mobile robotics, drone operation, robot manipulator systems and Industry 4.0.

Motivation & Objective

  • Enable non-technical users to control robots via natural language commands.
  • Address the challenge of translating unstructured human instructions into formal, executable robot behavior logic.
  • Develop a lightweight, on-device capable LLM-based system for real-time robot behavior generation.
  • Ensure generated behavior trees are structurally correct, logically consistent, and safe through a curated node library.
  • Demonstrate that LLM-generated BTs are perceptually indistinguishable from human-created BTs in controlled user evaluations.

Proposed method

  • Fine-tune the 7B-parameter Stanford Alpaca LLM on 8,500 instruction-following demonstrations generated using text-davinci-003.
  • Use a predefined library of robot action and condition nodes to constrain and guide behavior tree generation.
  • Train the model to map natural language descriptions to valid, hierarchical behavior tree structures in XML format.
  • Employ a self-instruct prompting strategy to synthesize the training data, ensuring diverse and realistic command-BT pairs.
  • Optimize the model for inference on low-resource onboard microcomputers, maintaining high performance with minimal computational footprint.
  • Integrate the model into a control pipeline that maps LLM output to executable robot behaviors using the node library.

Experimental results

Research questions

  • RQ1Can a fine-tuned LLM generate robot behavior trees that are structurally and logically correct from natural language commands?
  • RQ2To what extent do LLM-generated behavior trees resemble human-created behavior trees in terms of subjective perception?
  • RQ3Can the LLM-BRAIn model generalize to instructions not seen during training?
  • RQ4Is the model small and efficient enough to run on an onboard microcomputer for real-time robot control?
  • RQ5How does the model’s performance compare to human-generated BTs in a blind user study?

Key findings

  • LLM-BRAIn generates behavior trees that are structurally and logically correct, even for complex, unseen instructions.
  • In a user study with 15 participants, the model's BTs were correctly distinguished from human-generated BTs in only 4.53 out of 10 cases on average, indicating near-random performance and strong perceptual similarity.
  • The t-test confirmed no statistically significant difference between human and LLM-generated BTs (p > 0.05), supporting the null hypothesis that they are indistinguishable.
  • The model maintains a compact size suitable for deployment on robot onboard microcomputers, enabling real-time inference.
  • The system demonstrates generalization to out-of-distribution commands not present in the training set.
  • The model’s performance is constrained by the absence of recursive subtree generation and the need for device-specific fine-tuning for specialized robots like drones.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.