TL;DR
This paper introduces a method to fine-tune compact, open-source Vision-Language Models (VLMs) to generate executable Behavior Trees for robotic task planning using only a single RGB image and a natural language instruction. By creating a novel multimodal dataset from robotic execution videos, the authors train a 4B-parameter model that runs efficiently on-device and achieves an 87% task success rate in simulation, approaching the performance of massive closed-source commercial models.
What Problem Does This Paper Address?
Robotic task planning requires translating high-level human instructions (e.g., "place the teapot on the stove") into structured, reactive execution plans. Behavior Trees (BTs) have become the industry standard for this because they are modular, human-readable, and natively supported in ecosystems like ROS2.
While Large Language Models (LLMs) are great at generating BTs from text, text-only models lack visual grounding—they cannot see if a cabinet is closed or where an object is located. Conversely, existing Vision-Language Models (VLMs) that can see the environment typically rely on massive, closed-source APIs (like GPT-4o) via expensive prompt engineering. These cannot be deployed locally on a robot operating offline or under compute constraints.
As shown in the landscape below, a clear research gap exists for compact, fine-tuned models capable of multimodal BT generation:
The primary bottleneck blocking this path has been the complete lack of datasets pairing visual observations and natural language instructions with executable Behavior Trees.
Methods
The authors tackle this problem with a two-stage teacher-student framework:
- Automated Dataset Generation (Teacher Pipeline): The authors take video episodes of robotic tasks and sub-sample them into a 3×3 "frame sheet" to capture temporal progression. A large teacher model (GPT-5-mini) inspects this frame sheet alongside the text instruction to generate a structured Scene Analysis (YAML) and a corresponding linear Behavior Tree (XML) compatible with the
BehaviorTree.CPPlibrary. A programmatic validator ensures the XML is syntactically valid before saving it. - Model Fine-Tuning (Student Pipeline): To make the system deployable on real robots, the authors fine-tune three compact, open-source VLMs: SmolVLM2-500M, Qwen2.5-VL-3B, and Gemma 3 4B Vision. Crucially, during inference, the student models only get the initial single RGB frame, the instruction, and a list of allowed actions. They are trained using QLoRA (4-bit quantization) to output both the scene analysis and the executable XML tree.
To make the models robust, the dataset was augmented structurally (adding control-flow decorators like RetryUntilSuccessful) and lexically (replacing action primitives with synonyms like GRASP $\rightarrow$ GRAB).
Datasets
- Training Data: Derived from Open X-Embodiment, a massive repository of real-world robotic dataset episodes. The authors selected 23 subsets covering manipulation tasks, yielding a base dataset of 1,622 episodes, which expanded to 2,433 episodes after structural and lexical augmentations (2,205 train, 228 test).
- Evaluation Environment: The generated BTs were executed online within OmniGibson (the reference simulator for the BEHAVIOR-1K benchmark) across 15 distinct household tasks categorized by Easy, Medium, and Hard difficulties.
Key Insights and Ideas
- The 3B Parameter Capacity Threshold: The benefits of fine-tuning do not scale linearly. The authors identified a qualitative threshold around 3 billion parameters. Below this (e.g., SmolVLM2-500M), models fail to grasp the structural syntax of XML, frequently breaking format rules. Above 3B parameters, failures shift from syntactic (bad formatting) to semantic (logical planning errors, like trying to grab an object before opening the container).
- QLoRA as a Syntax Fixer: Without fine-tuning, zero-shot base models fail to generate even a single valid Behavior Tree (0% validity). Applying QLoRA entirely eliminates formatting issues for the 3B and 4B models, bringing XML and BT-CPP syntactic validity to a perfect 100%.
- Chain-of-Thought (CoT) Scaffolding: Providing a natural language workflow decomposition helps larger compact models manage complex multi-step planning. However, for the ultra-small 500M model, the extra tokens act as a distraction, actually degrading its performance.
Key Results
- High Success Rates: Under Chain-of-Thought prompting, the fine-tuned Gemma-3 4B model achieved an 87% Success Rate (SR) across the simulation tasks, closely trailing the frontier GPT-5 ceiling (100%).
- Efficiency Gains: Fine-tuning drastically slashed inference times. For instance, Gemma-3's inference time dropped from an unusable 104.6 seconds (where it generated long, unstructured text) to a snappy 20.4 seconds of clean XML.
- Fidelity to Ground Truth: In offline lexical and structural matching metrics (ROUGE/BLEU), the fine-tuned 4B model matched or outperformed large closed-source commercial baselines.
Limitations and Future Work
- Open-Loop Planning: Currently, the model generates the entire Behavior Tree at the very beginning of the task based on a single image. If the environment changes unexpectedly mid-task, the plan can fail. The authors suggest adding a lightweight "runtime refiner" to close the control loop with continuous visual feedback.
- Physical Precondition Violations: Smaller models still occasionally struggle with implicit physical logic—such as trying to place an item inside a microwave before executing the
OPENcommand. - Object Hallucination: In cluttered scenes, compact models still sometimes hallucinate object names or mix up object suffixes, indicating a need for tighter visual grounding mechanisms.
Summary updated