一句话:提出BtBot,利用自然语言与正反例,通过LLM生成草图并搜索修复,自动合成行为树程序。
行为树广泛用于机器人等智能体控制,但非专家难以构建满足期望的行为树。论文提出BtBot,一种多模态基于草图的行为树合成技术。给定自然语言任务描述和一组正反例,BtBot先用LLM理解自然语言描述并生成任务执行草图,再在草图上搜索生成符合正反例的候选行为树程序;当草图被证明无法生成目标行为树时,BtBot采用多步骤修复方法修改草图的控制节点与结构,继续搜索目标行为树。作者实现了原型,并在覆盖多个场景的70个任务基准上评估,结果表明BtBot在有效性和效率上优于现有行为树合成技术,同时通过两项用户研究验证了其实用性。
Behavior trees (BTs) are widely adopted in the field of agent control, particularly in robotics, due to their modularity and reactivity. However, constructing a BT that meets the desired expectations is time-consuming and challenging, especially for non-experts. This paper presents BtBot , a multi-modal sketch-based behavior tree synthesis technique. Given a natural language task description and a set of positive and negative examples, BtBot automatically generates a BT program that aligns with the natural language description and meets the requirements of the examples. Inside BtBot , an LLM is employed to understand the task’s natural language description and generate a sketch of the task execution. Then, BtBot searches the sketch to synthesize a candidate BT program consistent with the user-provided positive and negative examples. When the sketch is proven to be incapable of generating the target BT, BtBot provides a multi-step repairing method that modifies the control nodes and structure of the sketch to search for the desired BT. We have implemented BtBot in a prototype and evaluated it on a benchmark of 70 tasks across multiple scenarios. The experimental results indicate that BtBot outperforms the existing BT synthesis techniques in effectiveness and efficiency. In addition, two user studies have been conducted to demonstrate the usefulness of BtBot .
@article{paperbot3015,
title = {Multi-modal Sketch-Based Behavior Tree Synthesis},
author = {Wenmeng Zhang and Zhenbang Chen and Weijiang Hong},
journal = {Proceedings of the ACM on Programming Languages},
volume = {9},
number = {OOPSLA2},
year = {2025},
doi = {10.1145/3763178}
}