Table of Contents
Fetching ...

Barrier Function Overrides For Non-Convex Fixed Wing Flight Control and Self-Driving Cars

Eric Squires, Phillip Odom, Zsolt Kira

TL;DR

This work tackles safety in reinforcement learning for safety-critical systems with non-convex control and discrete-time dynamics by developing discrete-time exponential control barrier functions (DT-ECBFs) for three challenging settings: fixed-wing waypoint following, a discrete-time double-integrator, and lane merging with adaptive cruise control. The authors introduce practical barrier-function overrides (BF Lag, BF Line, BF Single) and compare them against strong safe-RL baselines, showing that approximate barrier overrides can achieve zero safety violations while attaining competitive or superior performance. Experiments across two RL environments demonstrate that BF Single often provides a favorable balance of safety, performance, and computation, while BF Lag offers theoretical advantages at a higher computational cost. Overall, the results indicate barrier-function-based overrides are viable for enabling safe deployment of RL in non-convex, discrete-time safety-critical systems, without requiring exact optimal overrides.

Abstract

Reinforcement Learning (RL) has enabled vast performance improvements for robotics systems. To achieve these results though, the agent often must randomly explore the environment, which for safety critical systems presents a significant challenge. Barrier functions can solve this challenge by enabling an override that approximates the RL control input as closely as possible without violating a safety constraint. Unfortunately, this override can be computationally intractable in cases where the dynamics are not convex in the control input or when time is discrete, as is often the case when training RL systems. We therefore consider these cases, developing novel barrier functions for two non-convex systems (fixed wing aircraft and self-driving cars performing lane merging with adaptive cruise control) in discrete time. Although solving for an online and optimal override is in general intractable when the dynamics are nonconvex in the control input, we investigate approximate solutions, finding that these approximations enable performance commensurate with baseline RL methods with zero safety violations. In particular, even without attempting to solve for the optimal override at all, performance is still competitive with baseline RL performance. We discuss the tradeoffs of the approximate override solutions including performance and computational tractability.

Barrier Function Overrides For Non-Convex Fixed Wing Flight Control and Self-Driving Cars

TL;DR

This work tackles safety in reinforcement learning for safety-critical systems with non-convex control and discrete-time dynamics by developing discrete-time exponential control barrier functions (DT-ECBFs) for three challenging settings: fixed-wing waypoint following, a discrete-time double-integrator, and lane merging with adaptive cruise control. The authors introduce practical barrier-function overrides (BF Lag, BF Line, BF Single) and compare them against strong safe-RL baselines, showing that approximate barrier overrides can achieve zero safety violations while attaining competitive or superior performance. Experiments across two RL environments demonstrate that BF Single often provides a favorable balance of safety, performance, and computation, while BF Lag offers theoretical advantages at a higher computational cost. Overall, the results indicate barrier-function-based overrides are viable for enabling safe deployment of RL in non-convex, discrete-time safety-critical systems, without requiring exact optimal overrides.

Abstract

Reinforcement Learning (RL) has enabled vast performance improvements for robotics systems. To achieve these results though, the agent often must randomly explore the environment, which for safety critical systems presents a significant challenge. Barrier functions can solve this challenge by enabling an override that approximates the RL control input as closely as possible without violating a safety constraint. Unfortunately, this override can be computationally intractable in cases where the dynamics are not convex in the control input or when time is discrete, as is often the case when training RL systems. We therefore consider these cases, developing novel barrier functions for two non-convex systems (fixed wing aircraft and self-driving cars performing lane merging with adaptive cruise control) in discrete time. Although solving for an online and optimal override is in general intractable when the dynamics are nonconvex in the control input, we investigate approximate solutions, finding that these approximations enable performance commensurate with baseline RL methods with zero safety violations. In particular, even without attempting to solve for the optimal override at all, performance is still competitive with baseline RL performance. We discuss the tradeoffs of the approximate override solutions including performance and computational tractability.
Paper Structure (10 sections, 11 theorems, 22 equations, 9 figures, 3 tables)

This paper contains 10 sections, 11 theorems, 22 equations, 9 figures, 3 tables.

Key Result

Proposition 1

Given a set $C_h \subset \mathbb{R}^{n_s}$ defined in eq_safe_set for an output function $h$, let $h$ be a DT-ECBF on $D_h$ and $u : \mathbb{R}^{n_s} \to U$ be such that $u(s_k) \in K_h(s_k)$ for all $s_k \in D_h$. Then if $s_0 \in C_h$ then $s_k\in C_h$ for all $k > 0$.

Figures (9)

  • Figure 1: Screenshot of the UAV environment with safety conditions visualized with SCRIMMAGE demarco2018.
  • Figure 2: Screenshot of the car environment with safety conditions.
  • Figure 3: Computing the lateral offset from the state so that the edge of the car does not exit a lane.
  • Figure 4: The number of steps to evaluate a barrier function in \ref{['eq_bf']} for keeping a safe distance from lane boundaries.
  • Figure 5: Results in the waypoint following environment for a fixed wing UAV. (top) Reward as a function of episode sample, (middle) Cost as a function of episode sample, (bottom) Reward vs cumulative number of unsafe episodes. In the top and middle plots, faded lines show the outcomes of the five repeated experiments for a given algorithm while non-faded lines represent the mean of these experiments.
  • ...and 4 more figures

Theorems & Definitions (24)

  • Definition 1
  • Proposition 1
  • Lemma 1
  • proof
  • Theorem 1
  • proof
  • Lemma 2
  • proof
  • Lemma 3
  • proof
  • ...and 14 more