Continuous-Time Behavior Trees as Discontinuous Dynamical Systems

Christopher Iliffe Sprague, Petter Ögren · DOI

Abstract

Behavior Trees (BTs) have gained significant popularity in robotics for their modularity and hierarchical structure. However, their origins in discrete-time logic have created a theoretical gap when applied to continuous-time control systems. This paper provides a formal mathematical bridge by redefining BTs as Discontinuous Dynamical Systems (DDS). By partitioning the state space into operating regions based on tree logic and utilizing Filippov solution theory, the authors establish rigorous conditions for the existence, uniqueness, and convergence of solutions in BT-controlled systems.

Introduction

Behavior Trees (BTs) are a favorite tool in robotics and video games because they allow engineers to modularly compose complex behaviors—such as "find object," "open door," and "grasp"—into a hierarchical structure. Despite their practical success, a lingering theoretical gap has persisted: BTs were originally designed for the discrete-time world of video game "ticks," whereas classical control theory is built on continuous-time differential equations.

Until now, comparisons between BTs and hybrid dynamical systems were mostly informal or limited to specific tree types. Without a formal continuous-time model, it was difficult to prove that a robot running a complex BT would reach its goal without getting stuck in infinite loops or failing to find valid control signals at the boundaries between behaviors. This paper addresses this gap by formalizing BTs within the framework of Discontinuous Dynamical Systems (DDS).

Methods: Formalizing BTs as DDS

The authors bridge the gap by redefining BTs through the lens of DDS. They define a BT as a function that maps a state to both a control signal and metadata (Running, Success, or Failure).

State Space Partitioning and Vector Fields

A key contribution is the use of order theory (specifically "parent," "sibling," and "uncle" relationships) to define Operating Regions. These are specific parts of the state space where a particular leaf node (a controller) is active. By combining these regions, the BT execution is modeled as a piecewise continuous vector field.

Figure 2: A Behavior Tree for a heater control system and its corresponding state space partition.

As shown in Figure 2, the logical structure of the tree (Sequences and Fallbacks) creates a specific geometric partition of the robot's state space. The "logic" of the tree determines which "slice" of the environment the robot is currently reacting to. Because the control signal "jumps" when switching between behaviors, the system is inherently discontinuous. The authors apply Filippov solution theory to guarantee that a unique solution to the robot's motion exists, even at these switching boundaries.

Key Results

The paper establishes several foundational theorems that provide the first rigorous tools for analyzing any general Behavior Tree design:

  • Theorem 2 (BT as DDS): Formally proves that the execution of a BT results in a discontinuous dynamical system where the state space is covered by the operating regions of leaf nodes.
  • Theorem 3 (Existence and Uniqueness): Provides the conditions under which a BT-controlled system is guaranteed to have a unique path (solution) through time, preventing mathematical "dead ends."
  • Theorem 4 (Convergence): Establishes sufficient conditions for a general BT to be convergent. If the "prepares graph" of the tree—a directed acyclic graph representing how one behavior's success leads to another's operating region—is acyclic and leads to success regions, the robot is guaranteed to reach its goal in finite time.
Figure 4: State space partitioning and transitions between operating regions in a discontinuous system.

Figure 4 illustrates these transitions. By defining "Success and Failure Pathways," the authors show how metadata propagates from leaf nodes up to the root, allowing the system to switch between low-level tasks in a way that guarantees progress toward a high-level objective.

Conclusion

By proving that BTs are a subclass of Discontinuous Dynamical Systems, this work unlocks decades of existing control theory research for application to BTs. While the paper provides the necessary conditions for convergence, the authors acknowledge that the practical challenge remains designing low-level controllers and tree structures that satisfy these conditions. Future work may involve automated verification tools or "correct-by-construction" methods to ensure complex real-world trees meet these rigorous convergence criteria.

Summary updated

BibTeX
@article{sprague2022continuous,
  author = {Christopher Iliffe Sprague and Petter Ögren},
  title = {{Continuous-Time Behavior Trees as Discontinuous Dynamical Systems}},
  journal = {IEEE Control. Syst. Lett.},
  year = {2022},
  doi = {10.1109/lcsys.2021.3134453},
}
Figure