AI and the World's Hard Problems · Theoretical computer science · arXiv · 2026-11-17
Enforcing Ellipsoidal Constraints in Neural Networks with a Polynomial Safety Layer

The paper addresses keeping a learned policy's output inside a safety ellipsoid, where the correction is a quadratically constrained quadratic program. The authors build a neural safety layer by unrolling a feasibility-preserving polynomial penalty iteration, so gradients flow through it during training. In simulated narrow mazes, a LiDAR-based drone policy with this layer avoided wall contact at every tested training stage, while unfiltered flights hit walls. A microcontroller build of the policy and layer used about 36 KiB of flash and under 5 KiB of RAM.