English

BTGenBot: Behavior Tree Generation for Robotic Tasks with Lightweight LLMs

Robotics 2025-01-08 v2

Abstract

This paper presents a novel approach to generating behavior trees for robots using lightweight large language models (LLMs) with a maximum of 7 billion parameters. The study demonstrates that it is possible to achieve satisfying results with compact LLMs when fine-tuned on a specific dataset. The key contributions of this research include the creation of a fine-tuning dataset based on existing behavior trees using GPT-3.5 and a comprehensive comparison of multiple LLMs (namely llama2, llama-chat, and code-llama) across nine distinct tasks. To be thorough, we evaluated the generated behavior trees using static syntactical analysis, a validation system, a simulated environment, and a real robot. Furthermore, this work opens the possibility of deploying such solutions directly on the robot, enhancing its practical applicability. Findings from this study demonstrate the potential of LLMs with a limited number of parameters in generating effective and efficient robot behaviors.

Keywords

Cite

@article{arxiv.2403.12761,
  title  = {BTGenBot: Behavior Tree Generation for Robotic Tasks with Lightweight LLMs},
  author = {Riccardo Andrea Izzo and Gianluca Bardaro and Matteo Matteucci},
  journal= {arXiv preprint arXiv:2403.12761},
  year   = {2025}
}
R2 v1 2026-06-28T15:25:47.933Z