Learning Safety-Guaranteed, Non-Greedy Control Barrier Functions Using Reinforcement Learning
Minduli Wijayatunga, Nathan Wallace, Salah Sukkarieh, Roberto Armellin
TL;DR
This work tackles safety-critical spacecraft control by addressing the greedy nature of input-constrained CBFs (ICCBFs) through a unified two-stage reinforcement learning (RL) framework. Stage 1 learns state-dependent class-K_infinity parameters to non-greedily adapt ICCBF/CLF decay within the proven inner safe set, while Stage 2 learns a residual barrier to recover states outside this core region. At run time, the controller selects the appropriate barrier form and solves a lightweight QP under a zero-order hold, trained with PPO to minimize constraint violations and control effort while capturing long-horizon costs. Across cruise control, rotating-target rendezvous, and a 3D inspection task, the approach reduces median fuel by up to about 25% relative to ICCBF and increases the fraction of trajectories staying within safety bounds, while preserving real-time computation. The results demonstrate that RL can imbue CBFs with non-greedy, long-horizon optimization without sacrificing safety guarantees or computational efficiency.
Abstract
Spacecraft rendezvous and proximity operations (RPO) pose safety risks to high-value assets, so formal safety guarantees are critical. Yet conservative safety controllers can reduce mission efficiency. We propose a unified two-stage reinforcement learning (RL) framework that addresses two complementary limitations of Input-Constrained Control Barrier Functions (ICCBFs) for safety-critical, fuel-limited spacecraft control. Given a certified safe set S, ICCBFs guarantee forward invariance of an inner set C* under input bounds, but the resulting per-step quadratic programme (QP) is greedy and fuel-inefficient within C*, and recoverable states outside C* are conservatively discarded. Stage 1 learns state-dependent class-K-infinity parameters that adapt ICCBF/CLF decay rates, embedding long-horizon cost awareness while preserving invariance in C*. Stage 2 learns a residual barrier h_RL(x) that certifies recoverability for a subset of S minus C*. At run time, the controller selects the appropriate barrier formulation (Stage 1 or Stage 2) and solves a lightweight ZOH QP. Both stages are trained with PPO using rewards that penalise constraint violations, control effort, and task metrics. We evaluate three benchmarks: cruise control, spacecraft rendezvous with a rotating target, and inspection that maximises observability subject to keep-in and keep-out zone constraints. Across test cases, the method reduces median fuel relative to ICCBF baselines by 12 to 25 percent and increases the fraction of trajectories that remain in S by 7 to 8 percent, while retaining real-time QP complexity.
