Enforcing Ellipsoidal Constraints in Neural Networks with a Polynomial Safety Layer
Rolf Findeisen, Sebastian Hirt, Hoang Hai Nguyen, Grace Li Zhang, Hendrik Alsmeier
Abstract
Often the output of a learned mapping must satisfy prescribed constraints. In the control of autonomous systems, for example, the chosen action must keep the system within a collision-free region. We consider the case in which a proposed output is corrected by projection onto a safety ellipsoid. Computing this projection amounts to solving a quadratically constrained quadratic program (QCQP). We construct a neural-network safety layer by unrolling a feasibility-preserving polynomial penalty iteration. The unrolled structure allows the loss gradient to propagate from the feasible output through the safety layer to the network parameters during training. We show how to choose the layer parameters so that every iterate is feasible and give a computable bound on its distance to the exact projection at any prescribed depth. We illustrate the method by training a LiDAR-based policy to control an unmanned aerial vehicle. A privileged model predictive control expert uses the map and the measured vehicle state to generate the training data. In the simulated narrow mazes, the filtered policy avoided wall contact at every tested stage of training, including at initialization, when every unfiltered flight hit a wall. A representative build of the learned policy and its safety layer for an Arm Cortex-M4F microcontroller occupies about 36 KiB of flash, with a RAM budget below 5 KiB.
Create a lesson
Related papers
On Robust Strictly Positive Real Synthesis for High-Order Interval Polynomials
Shared title terminology · Tiancheng Xu, Guowei Dou, Xiang Ji et al.
Data-driven control of polynomial systems using implicit methods
Shared title terminology · András Sasfi, Florian Dörfler, Ivan Markovsky et al.
On the recursive feasibility and stability of MPC without terminal constraints
Shared title terminology · Mara Perez, Ignacio Sanchez, Filiberto Fele et al.
Stability-Constrained Imitation Learning for Performance-Guaranteed Neural Feedback Frequency Control in Microgrids
Shared title terminology · Sajid Kamal, Yichen Zhang, Feng Qiu et al.
Safe Reinforcement Learning with Hard Constraints: Policy Gradient Methods with Intersample Guarantees
Shared title terminology · Vipul K. Sharma, S. Sivaranjani
Finite-Step Algorithms for Input-Constrained Control Barrier Function-Based Safety Filters
Shared title terminology · Johannes Autenrieb, Mark Spiller, Mayank S. Jha