Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Enforcing Ellipsoidal Constraints in Neural Networks with a Polynomial Safety Layer

  • Problem A learned controller can propose commands outside a safe ellipsoid even when every training command was feasible, and a filter applied only after training leaves the learning step unaware of the correction.
  • Method Unrolls a feasibility-preserving polynomial penalty iteration into ten fixed feedforward blocks at the network output, so the imitation loss gradient flows through the filtered command during training.
  • Results With 10,000 training examples, the policy trained with the layer reached 102 goal arrivals on six unseen narrow mazes, against 60 when the layer was added after training, and both had zero wall contacts.

Figure 1: The neural networkh θ proposesu NN. The safety layer starts at the feasible pointu (0) =

Figure 1 : The neural networkh θ proposesu NN. The safety layer starts at the feasible pointu (0) =

Original paper · CC BY 4.0 · Rolf Findeisen, Sebastian Hirt, Hoang Hai Nguyen, Grace Li Zhang, Hendrik Alsmeier · Enforcing Ellipsoidal Constraints in Neural Networks with a Polynomial Safety Layer · Original paper figure · Extracted the figure area from page 2 of the original PDF.

Why a learned output needs a hard constraint

A learned controller can return a command outside the region it must stay in, even when every expert command used for training was feasible. The feasible sets studied here are ellipsoids, where the smallest correction to a proposal is the solution of a quadratically constrained quadratic program (QCQP).

Safety filters can correct a proposal before it is applied, and embedding the filter in the policy lets training see the corrected action. Other routes differentiate through a convex safety problem, enforce barrier constraints through a differentiable quadratic program, or parameterize feasible predictions directly. Here the correction is itself a stack of fixed-depth network blocks, so it is part of the forward pass that training differentiates.

One penalty step as a network block

The feasible set is the ellipsoid \(C=\{u:g(u)\le 1\}\) with center \(v\) and positive definite shape matrix \(M\), where \(g(u)=(u-v)^\top M(u-v)\). A proposal already inside \(C\) is returned unchanged, while the projection of an outside proposal sits on the boundary, so an approximation approaching it from outside can still miss the set.

The iteration starts at the center, \(u^{(0)}=v\), and each block takes one gradient step on the penalized objective \(J_{k}=f+(m/k)g^{k}\). The penalty weight \(m\) is shared by all blocks in one evaluation, and each block has its own integer exponent \(k_\ell\ge 1\). For \(\ell=0,\dots,N-1\) the update reads \[u^{(\ell+1)}=u^{(\ell)}-\gamma_\ell\Big[u^{(\ell)}-u_{NN}+2m\,g(u^{(\ell)})^{k_\ell-1}M(u^{(\ell)}-v)\Big].\] Once the exponent, the ellipsoid, \(m\) and \(\gamma_\ell\) are fixed, the coefficients of this update are polynomial in the iterate and the proposal.

Each block uses only affine maps and the square activation \(\sigma(\tau)=\tau^2\). Two neurons with \(\sigma\) multiply two scalars through \(ab=[\sigma(a+b)-\sigma(a-b)]/4\), and repeated products give \(g(u^{(\ell)})\) and the vector \(g(u^{(\ell)})^{k_\ell-1}Md\), with \(d=u^{(\ell)}-v\). The block output is then an affine combination of the current iterate, the proposal and that vector.

Policy and safety layer together form one feedforward network of fixed depth, which the authors see as a candidate for fixed-latency implementation on FPGAs or as logic circuits. The trainable weights \(\theta\) belong to the policy \(h_\theta\); the ellipsoid data and the block coefficients are fixed once the ellipsoid and the penalty settings are chosen.

In the navigation example the penalty weight and the step sizes are chosen from the current proposal before the blocks are evaluated.

Why the iterates stay feasible and how far they can lie from the projection

Let \(\lambda_-\) and \(\lambda_+\) be the smallest and largest eigenvalues of \(M\). Theorem 1 requires \(m\ge \max(0,\sqrt{g(u_{NN})}-1)/(2\lambda_-)\) and \(0<\gamma_\ell\le[1+(4k_\ell-2)m\lambda_+]^{-1}\). Under these conditions, starting from \(u^{(0)}=v\), every iterate satisfies \(g(u^{(N)})\le 1\) for every \(N\ge 0\). The argument maps the ellipsoid to the unit ball with \(w=M^{1/2}(u-v)\) and shows that a step cannot take a point of norm at most one outside that ball.

The required penalty weight grows with \(\sqrt{g(u_{NN})}\), so a proposal farther outside \(C\) needs a larger penalty.

The error bound is a scalar recursion. With \(E_0=1/\lambda_-\), \(q_\ell=(1-\gamma_\ell)/(1+\gamma_\ell)\) and \(E_{\ell+1}=q_\ell E_\ell+(1-q_\ell)m/k_\ell\), the theorem gives \(\lVert u^{(N)}-u^\star\rVert_2\le\sqrt{E_N}\) for every \(N\ge 0\). The argument bounds \(D=\lVert u-u^\star\rVert_2^2\) without computing \(u^\star\), using the strong convexity of \(J_k\) and the optimality condition of the Euclidean projection.

The recursion does not involve the iterates, so the bound at a chosen depth can be computed before the blocks run. Feasibility does not depend on the network that produces the proposal, so convolutional networks or transformers can supply it under the same conditions.

Corollary 2 takes \(k_\ell=\ell+1\) and the largest step size, and sets \(\kappa=2m\lambda_+>0\). The bound \(E_N\) is \(O(N^{-1})\) for \(\kappa<1\), \(O(N^{-1}\log N)\) for \(\kappa=1\), and \(O(N^{-1/\kappa})\) for \(\kappa>1\). These rates describe the bound, and they depend on \(\kappa\), which couples the penalty weight to the largest eigenvalue \(\lambda_+\).

The authors also state that the block output converges to \(u^\star\) as the depth increases.

How gradients reach the policy through the layer

Each training pair \((y_{data},u_{data})\) is processed by proposing \(h_\theta(y_{data})\), filtering the proposal through the blocks and comparing \(u_S\) with \(u_{data}\). Backpropagation through the \(N\) blocks gives the gradient with respect to \(\theta\); when \(m\) and \(\gamma_\ell\) depend on the proposal, that dependence enters the gradient as well.

The navigation loss minimizes \(\lVert u_S-u_{data}\rVert^2+\eta\lVert u_{NN}-u_{data}\rVert^2\) with \(\eta=0.1\). A second policy was fitted directly to the expert acceleration through its proposal, which gives a comparison between the two loss choices.

The drone task, cell constraints and expert data

The drone must reach a goal in an indoor maze without hitting walls. A global planner supplies a feasible route and waypoints, and the LiDAR policy handles local control.

Writing \(h_i=1-V_i\), this is the discrete-time barrier condition \(h_i(x^+(u))\ge(1-\beta)h_i(x)\). A velocity limit inside each cell, together with a triangle argument, keeps the whole nominal flight segment in mapped free space.

About 83,000 expert actions were collected on 296 layouts with narrow and wide corridors.

The safety layer uses ten polynomial iteration blocks with exponents \(k_\ell=\ell+1\) for \(\ell=0,\dots,9\).

Training with and without the layer in narrow mazes

The table compares four columns: trained with the filter and flown with it, trained with the filter and flown bypassed, trained without the filter with the filter added after training, and trained without the filter and flown without it.

At the smallest budget of 10,000 examples, the policy trained with the layer reached 102 goal arrivals with zero wall contacts. Adding the layer only after training reached 60 goal arrivals, also with zero wall contacts. The unfiltered policy trained at the same budget reached 90 arrivals with zero wall contacts when flown without filter.

At 20,000 examples the filter-active policy reached 90 arrivals and the filter-added policy reached 102; at the full dataset the values were 96 and 102. At the larger budgets, adding the layer after training gave more arrivals than training with it. The bypassed column shows 78 arrivals with 6 wall contacts at 10,000 examples, and 54 and 72 arrivals with no contacts at the two larger budgets.

When the layer is added only at deployment, the drone comes to rest at the marked point, because the unchanged scan and waypoint lead to repeated zero acceleration after filtering.

Behaviour across training stages, adaptation and gusts

Figure 6 tracks, over successive optimizer update counts from 0 to 18k, the fraction of test flights with wall contact and the fraction of proposals outside the safety ellipse before filtering, for training sets of 20k and 83k samples. Policies were evaluated in narrow test mazes from the same initial states, with weights fixed during each flight.

Most early proposals were infeasible, so the layer enforced feasibility before the policy had learned to navigate.

The unfiltered policy hit walls in nearly all flights, while arrivals were the same before and after adaptation, so feasibility held while the controller weights changed.

On a separate maze the initial position and velocity were varied, and a lateral gust was applied midway along the route.

The first proposed acceleration was held for ten additional sampling intervals while the state and the safety ellipse kept updating.

Projection error at each depth and the computational cost

The median normalized radius of the proposals that needed correction was about 1.02, with the boundary at one.

The fixed-coefficient version uses an upper bound \(R\) on \(\sqrt{g(u_{NN})}\) for the whole prescribed range of proposals.

Radial scaling and Frank–Wolfe iterations also enforce feasibility, and a scalar root search computes the Euclidean projection numerically. Radial scaling generally returns a different feasible point, whereas the polynomial iteration's blocks use only additions and multiplications for given coefficients.

A representative Arm Cortex-M4F build is given with the same flash figure in the introduction.

Limitations

The flight results come from simulated narrow mazes, and the drone evaluations cover the layouts described. The arrival advantage of training with the layer appears at the smallest budget, and at the larger budgets adding the layer after training gave more arrivals. Clearance is stated for the nominal motion, and disturbed trajectories can leave the nominal cell even when the applied accelerations are feasible.

The fixed-coefficient version with a loose bound was too conservative at the tested depth. Closed-loop flight on a resource-limited drone, an FPGA implementation and the blending of several ellipsoidal safety layers are left as planned future work.

Paper info

Authors
Rolf Findeisen, Sebastian Hirt, Hoang Hai Nguyen, Grace Li Zhang, Hendrik Alsmeier
Venue
arXiv · Preprint
First published
2026-11-14
Added
2026-11-17
Updated
2026-11-14
Version
v1
arXiv
2611.19366
Category
eess.SY · cs.LG · math.OC
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

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.

Quote from the paper

Rolf Findeisen, Sebastian Hirt, Hoang Hai Nguyen, Grace Li Zhang, Hendrik Alsmeier (2026). Enforcing Ellipsoidal Constraints in Neural Networks with a Polynomial Safety Layer. arXiv:2611.19366v1. https://arxiv.org/abs/2611.19366v1

BibTeX
@misc{findeisen2026enforcing,
  title = {{Enforcing Ellipsoidal Constraints in Neural Networks with a Polynomial Safety Layer}},
  author = {Rolf Findeisen and Sebastian Hirt and Hoang Hai Nguyen and Grace Li Zhang and Hendrik Alsmeier},
  year = {2026},
  eprint = {2611.19366},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19366v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up