Abstract
Behavior Trees (BTs) are increasingly favored in robotics for their modularity, human-readability, and inherent safety. However, the sub-field of automated BT planning—generating these trees to solve specific goals—has lacked a standardized platform for fair comparison and rigorous evaluation. This paper introduces BTPG (Behavior Tree Planning Gym), a comprehensive framework designed to unify BT representation and benchmarking. BTPG provides four diverse simulation environments and introduces advanced metrics for robustness and planning progress. We also present UHBTP, a heuristic-based planner that leverages classical logic to outperform Large Language Model (LLM) based approaches in efficiency and reliability.
Introduction
While Behavior Trees are a staple in modern robotics, the development of algorithms to automatically plan these trees has been fragmented. Researchers often rely on custom, simplified simulators, making cross-algorithm comparison nearly impossible. Furthermore, traditional evaluation metrics like planning time and execution steps fail to capture the nuances of real-world deployment, such as a plan's "attraction region" or its robustness to environmental noise. BTPG addresses these gaps by providing a standardized "playground" for the community, moving the field toward reliable, real-world service robot deployment.
The BTPG Framework and Methodology
BTPG unifies BT representation using predicate logic (e.g., on(apple, table)) and STRIPS-style action models. This standardization allows behavior nodes to be tested across different platforms seamlessly.
Universal Heuristic Behavior Tree Planning (UHBTP)
A core contribution of this work is the UHBTP algorithm. Unlike recent trends that utilize LLMs for planning heuristics—which are prone to latency and "hallucinations"—UHBTP employs delete relaxation (a technique from classical planning) to generate domain-independent heuristics. This approach ensures raw logic remains the driver of tree construction.
Advanced Evaluation Metrics
BTPG moves beyond simple speed tests by introducing:
- Planning Progress (PP): Tracks how close a planner is to the optimal solution throughout the search process.
- Region Distance (RD): Measures the tree's depth, indicating how far from the goal a robot can still recover.
- Execution Robustness (ER): A probabilistic measure of success when environmental noise is introduced during execution.
Environments and Datasets
BTPG includes a dataset generator capable of creating thousands of randomized tasks across four distinct environments:
- RoboWaiter (RW): Service tasks in Unreal Engine 5.
- VirtualHome (VH): Household chores using scripted APIs.
- OmniGibson (OG): High-fidelity physics-based tasks in NVIDIA’s IsaacSim.
- RobotHow (RH): A massive knowledge-based environment for large-scale testing with nearly 5,000 possible conditions.
Key Results and Insights
Efficiency and Conciseness
In the complex RobotHow environment, UHBTP achieved a significantly lower timeout rate (22%) compared to the standard BT Expansion algorithm (68.5%). Furthermore, heuristic-based planners produced much more concise trees; in VirtualHome, UHBTP generated trees with approximately 154 nodes, whereas standard expansion required over 1,500 nodes to achieve the same goals.
The Robustness Gap
One of the most critical findings from the BTPG benchmark is the fragility of current planned BTs. While they perform well under ideal conditions, success rates for multi-goal tasks plummeted to below 20% when even moderate environmental noise was introduced. This highlights a major "robustness gap" that future research must address.
Classical Logic vs. LLMs
Experimental results suggest that while LLMs are excellent for interpreting human intent, specialized classical planning algorithms like UHBTP remain superior for the raw logic required in tree construction, offering faster performance and more reliable results.
Conclusion and Future Work
BTPG establishes a new standard for BT planning research, revealing a clear trade-off between planning efficiency and robustness. Future work will focus on closing the robustness gap, integrating LLMs for high-level intent while maintaining algorithmic logic for low-level planning, and expanding physics-based simulations to larger-scale environments like RobotHow.
Summary updated