Learning to Provably Satisfy High Relative Degree Constraints for Black-Box Systems
Jean-Baptiste Bouvier, Kartik Nagpal, Negar Mehr
TL;DR
This work tackles the problem of enforcing a hard affine safety constraint $y=Cx \le y_{max}$ with relative degree $r \ge 2$ in black-box dynamical systems. It introduces High Relative Degree POLICEd RL, which builds a buffer around the unsafe set in transformed coordinates $s=T(x)$ and learns an affine policy $\mu_\theta(s)=D_\theta s+e_\theta$ on the buffer, coupled with an affine surrogate for the $r$-th derivative and an over-approximation error $\varepsilon$. A central safety result (Theorem) shows that if the dissipation condition $\tilde f_r(v;\mu_\theta) \le -2\varepsilon - \beta v_r$ holds at the buffer vertices, trajectories entering the buffer cannot cross the constraint boundary, despite the system being black-box. The approach is validated on an inverted pendulum and a space shuttle landing scenario, where POLICEd trajectories entering the buffer guarantee constraint satisfaction and safe landings, illustrating the method's potential for provable safety in high-relative-degree control with unknown dynamics. Overall, the paper advances safe RL by enabling hard constraint satisfaction for high relative degree in black-box environments with theoretical guarantees and practical demonstrations.
Abstract
In this paper, we develop a method for learning a control policy guaranteed to satisfy an affine state constraint of high relative degree in closed loop with a black-box system. Previous reinforcement learning (RL) approaches to satisfy safety constraints either require access to the system model, or assume control affine dynamics, or only discourage violations with reward shaping. Only recently have these issues been addressed with POLICEd RL, which guarantees constraint satisfaction for black-box systems. However, this previous work can only enforce constraints of relative degree 1. To address this gap, we build a novel RL algorithm explicitly designed to enforce an affine state constraint of high relative degree in closed loop with a black-box control system. Our key insight is to make the learned policy be affine around the unsafe set and to use this affine region to dissipate the inertia of the high relative degree constraint. We prove that such policies guarantee constraint satisfaction for deterministic systems while being agnostic to the choice of the RL training algorithm. Our results demonstrate the capacity of our approach to enforce hard constraints in the Gym inverted pendulum and on a space shuttle landing simulation.
