[Paper Review] On modularity in reactive control architectures, with an application to formal verification
This paper introduces a graph-based control architecture called a decision structure that generalizes reactive control systems like Behavior Trees, Teleo-Reactive programs, and Decision Trees. It defines modularity via a formal notion of modules derived from graph theory, enabling polynomial-time decomposition into independent, verifiable components. The key contribution is a hierarchical verification framework where modifying a module affects only its local context, preserving correctness through localized verification and enabling formal verification of complex cyber-physical systems with guaranteed modularity and composability.
Modularity is a central principle throughout the design process for cyber-physical systems. Modularity reduces complexity and increases reuse of behavior. In this paper we pose and answer the following question: how can we identify independent `modules' within the structure of reactive control architectures? To this end, we propose a graph-structured control architecture we call a decision structure, and show how it generalises some reactive control architectures which are popular in Artificial Intelligence (AI) and robotics, specifically Teleo-Reactive programs (TRs), Decision Trees (DTs), Behavior Trees (BTs) and Generalised Behavior Trees ($k$-BTs). Inspired by the definition of a module in graph theory, we define modules in decision structures and show how each decision structure possesses a canonical decomposition into its modules. We can naturally characterise each of the BTs, $k$-BTs, DTs and TRs by properties of their module decomposition. This allows us to recognise which decision structures are equivalent to each of these architectures in quadratic time. Our proposed concept of modules extends to formal verification, under any verification scheme capable of verifying a decision structure. Namely, we prove that a modification to a module within a decision structure has no greater flow-on effects than a modification to an individual action within that structure. This enables verification on modules to be done locally and hierarchically, where structures can be verified and then repeatedly locally modified, with modules replaced by modules while preserving correctness. To illustrate the findings, we present an example of a solar-powered drone controlled by a decision structure. We use a Linear Temporal Logic-based verification scheme to verify the correctness of this structure, and then show how one can modify modules while preserving its correctness.
Motivation & Objective
- To establish a formal, mathematically grounded definition of modularity in reactive control architectures.
- To unify diverse control paradigms—Behavior Trees, Teleo-Reactive programs, Decision Trees, and k-Behavior Trees—under a single graph-theoretic framework.
- To enable hierarchical, localized formal verification by ensuring modifications to a module affect only its local context.
- To provide a complexity measure—essential complexity—that characterizes architectural expressiveness and modularity.
- To demonstrate that verified control structures can be incrementally modified at the module level while preserving correctness.
Proposed method
- Introduces a decision structure as a directed, acyclic graph with labeled nodes and arcs, generalizing existing control architectures.
- Defines a module as a subset of nodes with identical in- and out-neighbors, inspired by graph-theoretic module definitions.
- Develops a polynomial-time algorithm (O(n²k)) to compute the canonical decomposition of any decision structure into its maximal modules.
- Introduces essential complexity as a measure of structural modularity, defined as the maximum cyclomatic complexity among all modules.
- Establishes that k-Behavior Trees are exactly the decision structures with essential complexity 1.
- Applies the framework to formal verification by proving that modifying a module only affects its own behavior, enabling local and hierarchical verification.
Experimental results
Research questions
- RQ1How can we formally define modularity in reactive control architectures to enable compositional design and verification?
- RQ2Can we unify diverse control architectures—such as BTs, k-BTs, TRs, and DTs—under a single formal framework?
- RQ3What is the computational complexity of identifying modular components in a control architecture?
- RQ4How does the proposed modularity concept relate to established concepts in structured programming and software engineering?
- RQ5Can we guarantee that local modifications to a module preserve the correctness of the overall system under formal verification?
Key findings
- The canonical decomposition of any decision structure into its modules can be computed in O(n²k) time, where n is the number of nodes and k is the number of labels.
- The proposed modules correspond exactly to subtrees in Behavior Trees, k-Behavior Trees, and Decision Trees, establishing a one-to-one correspondence.
- k-Behavior Trees are formally characterized as decision structures with essential complexity 1, providing a novel structural characterization.
- The essential complexity of a decision structure is equal to the maximum cyclomatic complexity among its modules, enabling a quantitative measure of modularity.
- A modification to a module affects only its own behavior and does not propagate beyond its boundaries, enabling localized verification.
- Formal verification can be performed hierarchically: a verified structure can be incrementally modified by replacing modules with new ones, with correctness preserved as long as the new module satisfies the same specification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.