Skip to main content
QUICK REVIEW

[Paper Review] Adding Neural Network Controllers to Behavior Trees without Destroying Performance Guarantees

Christopher Iliffe Sprague, Petter Ögren|arXiv (Cornell University)|Sep 26, 2018
Explainable Artificial Intelligence (XAI)Computer Science7 citations
TL;DR

This paper proposes a method to integrate neural network controllers into behavior trees (BTs) while preserving formal guarantees for safety and goal convergence. By structuring BTs with hierarchical priority—safety first, then model-based control, and finally data-driven control—the approach ensures that unreliable ML components do not compromise system stability or performance, as demonstrated on an inverted pendulum swing-up task with provable finite-time safety and convergence.

ABSTRACT

In this paper, we show how Behavior Trees that have performance guarantees, in terms of safety and goal convergence, can be extended with components that were designed using machine learning, without destroying those performance guarantees. Machine learning approaches such as reinforcement learning or learning from demonstration can be very appealing to AI designers that want efficient and realistic behaviors in their agents. However, those algorithms seldom provide guarantees for solving the given task in all different situations while keeping the agent safe. Instead, such guarantees are often easier to find for manually designed model-based approaches. In this paper we exploit the modularity of behavior trees to extend a given design with an efficient, but possibly unreliable, machine learning component in a way that preserves the guarantees. The approach is illustrated with an inverted pendulum example.

Motivation & Objective

  • To address the challenge of integrating unreliable, data-driven controllers into autonomous systems without compromising safety or goal convergence.
  • To preserve formal performance guarantees (safety and finite-time convergence) when extending manually designed, model-based BTs with machine learning components.
  • To provide a modular, reconfigurable framework that allows efficient, learned behaviors while maintaining system-wide correctness.
  • To formalize conditions under which hybrid BTs with ML components avoid controller conflicts and deadlocks.
  • To demonstrate the approach on a canonical control problem: the inverted pendulum swing-up task.

Proposed method

  • The BT architecture is structured with three layers of priority: safety controller (highest), model-based controller (medium), and data-driven (neural network) controller (lowest).
  • The safety controller activates only when the system enters a predefined unsafe region, using a PD-like control law with a positively invariant set for stability.
  • The model-based controller is invoked if the running cost (e.g., time or energy) exceeds a threshold, ensuring finite-time convergence to the goal.
  • The data-driven controller is only executed when both safety and cost constraints are satisfied, minimizing risk exposure.
  • Formal conditions are derived using Lyapunov-based stability theory and finite-time safety (FTS) analysis to guarantee system behavior under switching.
  • The data-driven controller is trained via behavioral cloning on optimal trajectories from Pontryagin’s maximum principle, using a 3-layer MLP with softplus and tanh activations.

Experimental results

Research questions

  • RQ1Under what conditions can a neural network controller be safely integrated into a behavior tree without compromising safety or convergence guarantees?
  • RQ2How can the reactivity and modularity of behavior trees be leveraged to prevent controller conflicts in hybrid control systems?
  • RQ3What formal conditions ensure that the combination of safety, model-based, and data-driven controllers results in finite-time safety and goal convergence?
  • RQ4Can a data-driven controller trained on optimal trajectories be safely used in a hybrid BT framework while preserving system-wide performance guarantees?
  • RQ5How can the running cost be used as a trigger to switch from a data-driven to a model-based controller in a provably correct way?

Key findings

  • The proposed BT structure with hierarchical priority ensures finite-time safety (FTS) for the safety controller, as proven using a positively invariant set and Lyapunov analysis.
  • The model-based controller guarantees finite-time convergence to the goal region, as established via stability theory and system dynamics analysis.
  • The data-driven controller achieved a test mean-squared error (MSE) of 2.2745e-3 on unseen trajectories, indicating strong performance on the training distribution.
  • The system as a whole satisfies all required performance guarantees: safety is preserved, and goal convergence is guaranteed under the defined switching logic.
  • The approach successfully prevents deadlocks and controller conflicts by enforcing strict priority and formal switching conditions.
  • The inverted pendulum example demonstrates that the hybrid BT design achieves both safe operation and efficient swing-up performance, even when the data-driven controller is unreliable in edge cases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.