pith. sign in

arxiv: 2505.24744 · v3 · submitted 2025-05-30 · 🧮 math.OC

Universal Formulas for Safe Control and Their Neural Network Approximations

Pith reviewed 2026-05-19 12:47 UTC · model grok-4.3

classification 🧮 math.OC
keywords safe controlneural network controllersaffine inequalitiesuniversal formulasconvex function minimizationquadratic programming approximationinput constraints
0
0 comments X

The pith

A neural network approximates smooth controllers that satisfy arbitrary affine inequalities independently of state dimension.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The paper studies how to design controllers that obey any number of affine inequalities at every state to guarantee safety, stability, and input limits. It defines the controller as the minimizer of a strictly convex function that enforces these inequalities automatically. A neural network then approximates this minimizer. The network serves as a universal formula for all tasks with input dimension and constraint number below given limits, works for any state dimension, and needs training data only from a bounded state-space region.

Core claim

The controller at each state is the minimizer of a strictly convex function. This minimizer can be approximated arbitrarily closely by a neural network. The network depends only on the input dimension and the number of affine inequalities, not on the state dimension. Training requires data from only a bounded set because the approximation holds uniformly on compact sets.

What carries the argument

Minimizer of a strictly convex function whose value satisfies the affine inequalities by construction, approximated by a neural network independent of state dimension.

If this is right

  • The resulting controller is smooth rather than piecewise, potentially improving closed-loop performance.
  • Real-time evaluation requires only a neural network inference instead of solving a quadratic program online.
  • One trained network applies to any system with the same input dimension and constraint count.
  • Data collection for training is restricted to a compact region, simplifying the process for high-dimensional states.

Where Pith is reading between the lines

These are editorial extensions of the paper, not claims the author makes directly.

  • This approach could be combined with learned models of system dynamics for end-to-end safe control synthesis.
  • Similar universal approximators might be developed for other types of constraints beyond affine inequalities.
  • Deployment in embedded systems becomes feasible where computational resources prohibit online optimization.

Load-bearing premise

The minimizer of the selected strictly convex function satisfies all the affine inequalities at every state in the domain.

What would settle it

A state and input where the neural network output violates one of the affine inequalities, even as the network approximation accuracy increases.

Figures

Figures reproduced from arXiv: 2505.24744 by Eduardo D. Sontag, Jorge Cort\'es, Pol Mestres.

Figure 2
Figure 2. Figure 2: (top) Evolution of min i∈[9] hi(x) along different tra￾jectories induced by the NN-based controller from different initial conditions (IC). (bottom) Evolution of V (x) along trajectories induced by the NN-based controller. ogous to that of [13, Lemma 5.2], the inequalities {ai(x) +bi(x) ⊤u < 0} 10 i=1, are simultaneously feasi￾ble at all points where the vectors {x − ci} 9 i=1 and x are linearly independen… view at source ↗
Figure 1
Figure 1. Figure 1: (left) Trajectories of the closed-loop system ob [PITH_FULL_IMAGE:figures/full_fig_p009_1.png] view at source ↗
Figure 4
Figure 4. Figure 4: (left) Projection in the (x, y) plane of trajectories of the closed-loop system obtained from the neural network based controller for Example 5.2. (right) Projection in the (x, y) plane of trajectories of the closed-loop system obtained from numerically finding the controller u ∗ online and warm￾starting the solver with the NN-based controller for Exam￾ple 5.2. Initial conditions are denoted by red crosses… view at source ↗
read the original abstract

We study the problem of designing a controller that satisfies an arbitrary number of affine inequalities at every point in the state space. This is motivated by the fact that a variety of key control objectives, such as stability, safety, and input saturation, are guaranteed by closed-loop systems whose controllers satisfy such inequalities. Many works in the literature design such controllers as the solution to a state-dependent quadratic program (QP) whose constraints are precisely the inequalities. When the input dimension and number of constraints are high, computing a solution of this QP in real time can become computationally burdensome. Additionally, the solution of such optimization problems is not smooth in general, which can degrade the performance of the system. This paper provides a novel method to design a smooth controller that satisfies an arbitrary number of affine constraints. The controller is given at every state as the minimizer of a strictly convex function. To avoid computing the minimizer of such function in real time, we introduce a method based on neural networks (NN) to approximate the controller. Remarkably, this NN can be used to solve the controller design problem for any task with less than a fixed input dimension and number of affine constraints, and is completely independent of the state dimension. This is why we refer to such NN approximation as a NN-based universal formula for control. Additionally, we show that the NN-based controller only needs to be trained with datapoints from a bounded set in the state space, which significantly simplifies the training process.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

2 major / 2 minor

Summary. The paper proposes designing smooth controllers satisfying arbitrary affine state-dependent inequalities by taking the minimizer of a strictly convex function at each state. It then approximates this minimizer via a neural network whose input dimension depends only on the input dimension m and number of constraints k (not on state dimension n), claims this NN is universal across all tasks with at most those m and k, and asserts that training data generated from states in a bounded set suffices for the approximation to work on arbitrary tasks.

Significance. If the universality and bounded-training claims hold with rigorous error bounds that guarantee constraint satisfaction, the result would enable reusable, smooth, real-time controllers for high-dimensional systems with many safety or saturation constraints, bypassing per-task QP solves and state-space gridding.

major comments (2)
  1. [Neural Network Approximation / Controller Construction] The central universality claim (abstract and NN-approximation section) requires that a single NN trained on bounded-state samples generalizes to arbitrary continuous maps A(x), b(x) arising from any task. The skeptic note correctly identifies that continuity of the argmin map alone does not guarantee the image of a bounded ball under (A,b) is dense in the compact set of admissible (A,b) pairs; without an explicit homogeneity, normalization, or covering argument that maps all possible constraint coefficients into the trained region, constraint violation can occur for unseen tasks.
  2. [Controller Construction] § Controller Construction (implied by the problem statement and weakest-assumption note): the claim that the minimizer of the chosen strictly convex function satisfies all given affine inequalities at every state is asserted but not derived from first principles. An explicit verification that the chosen objective forces the minimizer into the feasible set for arbitrary A(x), b(x) is load-bearing for both the exact controller and its NN approximation.
minor comments (2)
  1. Notation for the strictly convex function and its parameters should be introduced with explicit dependence on m and k to clarify the fixed-input-dimension claim.
  2. The manuscript would benefit from a short table comparing computational cost and smoothness of the proposed NN controller versus standard QP solvers for increasing n, m, k.

Simulated Author's Rebuttal

2 responses · 0 unresolved

We thank the referee for the thorough review and valuable feedback on our manuscript. We address each of the major comments below and will make revisions to improve the clarity and rigor of the presentation.

read point-by-point responses
  1. Referee: The central universality claim (abstract and NN-approximation section) requires that a single NN trained on bounded-state samples generalizes to arbitrary continuous maps A(x), b(x) arising from any task. The skeptic note correctly identifies that continuity of the argmin map alone does not guarantee the image of a bounded ball under (A,b) is dense in the compact set of admissible (A,b) pairs; without an explicit homogeneity, normalization, or covering argument that maps all possible constraint coefficients into the trained region, constraint violation can occur for unseen tasks.

    Authors: We appreciate this insightful observation on the universality claim. The manuscript relies on the continuity of the argmin map and the fact that the NN input depends solely on m and k. To address the concern, we will revise the NN-approximation section to include an explicit normalization of the constraint pairs (A, b) and a covering argument demonstrating that samples from bounded states, when appropriately scaled, can densely approximate the admissible set. This ensures the approximation error bounds hold uniformly for arbitrary tasks, preventing constraint violations. revision: yes

  2. Referee: the claim that the minimizer of the chosen strictly convex function satisfies all given affine inequalities at every state is asserted but not derived from first principles. An explicit verification that the chosen objective forces the minimizer into the feasible set for arbitrary A(x), b(x) is load-bearing for both the exact controller and its NN approximation.

    Authors: We agree that an explicit derivation is necessary for rigor. In the revised manuscript, we will add a detailed proof in the Controller Construction section showing from first principles that the minimizer of the strictly convex function satisfies the affine inequalities. This will involve analyzing the KKT conditions or the properties of the objective function that penalize violations in a way that forces feasibility at the optimum for any A(x) and b(x). revision: yes

Circularity Check

0 steps flagged

Standard convex optimization and NN approximation with minor self-citation

full rationale

The paper's derivation relies on established results from convex optimization for the existence of the minimizer and universal approximation theorems for neural networks. The universality claim for fixed input dimension (m and k) independent of state dimension n is supported by the structure of the QP and continuity arguments, without reducing to self-defined fitted parameters or load-bearing self-citations that lack independent verification. Training on bounded state sets is justified by compactness and continuity of the argmin map, not by construction from the same data. This aligns with a low circularity score as the central claims have independent mathematical content.

Axiom & Free-Parameter Ledger

1 free parameters · 1 axioms · 0 invented entities

The central claim rests on standard convex-analysis results and the existence of a suitable strictly convex function whose minimizer encodes the inequalities; no new entities are postulated.

free parameters (1)
  • design parameters of the strictly convex function
    The specific strictly convex function used to encode the affine inequalities is chosen by the designer and may involve tunable weights or scaling factors.
axioms (1)
  • standard math A strictly convex function on a convex set possesses a unique minimizer
    Invoked to guarantee that the controller is well-defined and single-valued at every state.

pith-pipeline@v0.9.0 · 5796 in / 1378 out tokens · 55323 ms · 2026-05-19T12:47:00.063759+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Lean theorems connected to this paper

Citations machine-checked in the Pith Canon. Every link opens the source theorem in the public Lean library.

What do these tags mean?
matches
The paper's claim is directly supported by a theorem in the formal canon.
supports
The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
extends
The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
uses
The paper appears to rely on the theorem as machinery.
contradicts
The paper's claim conflicts with a theorem or certificate in the canon.
unclear
Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.

Reference graph

Works this paper leans on

46 extracted references · 46 canonical work pages · 1 internal anchor

  1. [1]

    E. D. Sontag.Mathematical Control The- ory: Deterministic Finite Dimensional Sys- tems, volume 6 ofTAM. Springer, 2 edition,

  2. [2]

    E. D. Sontag. A Lyapunov-like characteriza- tion of asymptotic controllability.SIAM Jour- nal on Control and Optimization, 21:462–471, 1983

  3. [3]

    R. A. Freeman and P. V. Kototovic.Ro- bust Nonlinear Control Design: State-space and Lyapunov Techniques. Birkhauser Boston Inc., Cambridge, MA, USA, 1996

  4. [4]

    E. D. Sontag. A universal construction of Art- stein’s theorem on nonlinear stabilization.Sys- tems & Control Letters, 13(2):117–123, 1989

  5. [5]

    A. D. Ames, S. Coogan, M. Egerstedt, G. No- tomista, K. Sreenath, and P. Tabuada. Con- trol barrier functions: theory and applications. InEuropean Control Conference, pages 3420– 3431, Naples, Italy, 2019

  6. [6]

    A. D. Ames, X. Xu, J. W. Grizzle, and P. Tabuada. Control barrier function based quadratic programs for safety critical systems. IEEE Transactions on Automatic Control, 62 (8):3861–3876, 2017

  7. [7]

    Wieland and F

    P. Wieland and F. Allgöwer. Constructive safety using control barrier functions.IFAC Proceedings Volumes, 40(12):462–467, 2007

  8. [8]

    Cohen, P

    M. Cohen, P. Ong, G. Bahati, and A. D. Ames. Characterizing smooth safety filters via the im- plicit function theorem.IEEE Control Systems Letters, 7:3890–3895, 2023

  9. [9]

    M. Li, Z. Sun, P. J. W. Koelewijn, and S. Weiland. A tunable universal formula for safety-critical control.arXiv preprint arXiv:2403.06285, 2024

  10. [10]

    Garg and D

    K. Garg and D. Panagou. Robust control barrier and control Lyapunov functions with fixed-time convergence guarantees. InAmeri- can Control Conference, pages2292–2297, New Orleans, LA, July 2021. 11

  11. [11]

    Li and Z

    M. Li and Z. Sun. A graphical interpreta- tion and universal formula for safe stabiliza- tion. InAmerican Control Conference, pages 3012–3017, San Diego, California, 2023

  12. [12]

    M. Z. Romdlony and B. Jayawardhana. Stabi- lization with guaranteed safety using control Lyapunov-barrier function.Automatica, 66: 39–47, 2016

  13. [13]

    Mestres and J

    P. Mestres and J. Cortés. Optimization-based safe stabilizing feedback with guaranteed re- gion of attraction.IEEE Control Systems Let- ters, 7:367–372, 2023

  14. [14]

    Ong and J

    P. Ong and J. Cortés. Universal formula for smooth safe stabilization. InIEEE Conf. on Decision and Control, pages 2373–2378, Nice, France, December 2019

  15. [15]

    Composingcon- trol barrier functions for complex safety spec- ifications.IEEE Control Systems Letters, 7: 3615–3620, 2023

    T.G.MolnarandA.D.Ames. Composingcon- trol barrier functions for complex safety spec- ifications.IEEE Control Systems Letters, 7: 3615–3620, 2023

  16. [16]

    Tan and D

    X. Tan and D. V. Dimarogonas. On the unde- siredequilibriainducedbycontrolbarrierfunc- tion based quadratic programs.Automatica, 159:111359, 2024

  17. [17]

    Explicit Control Barrier Function-based Safety Filters and their Resource-Aware Computation

    P. Mestres, S. S. Mousavi, P. Ong, L. Yang, E. Das, J. W. Burdick, and A. D. Ames. Explicit control barrier function- based safety filters and their resource- aware computation. 2025. Available at https://arxiv.org/pdf/2512.10118

  18. [18]

    Singletary, Y

    A. Singletary, Y. Chen, and A. D. Ames. Con- trol barrier functions for sampled-data systems with input delays. pages 804–809, December 2020

  19. [19]

    A. J. Taylor, P. Ong, J. Cortés, and A. Ames. Safety-critical event triggered control via input-to-state safe barrier functions.IEEE Control Systems Letters, 5(3):749–754, 2021

  20. [20]

    Breeden, K

    J. Breeden, K. Garg, and D. Panagou. Con- trol barrier functions in sampled-data sys- tems.IEEE Control Systems Letters, 6:367– 372, 2022

  21. [21]

    A. J. Taylor, P. Ong, T. G. Molnar, and A. D. Ames. Safe backstepping with control barrier functions. InIEEE Conf. on Decision and Control, pages 5775–5782, Cancún, Mexico,

  22. [22]

    doi: 10.1109/CDC51059.2022.9992763

  23. [23]

    B. J. Morris, M. J. Powell, and A. D. Ames. Continuity and smoothness properties of non- linear optimization-based feedback controllers. InIEEE Conf. on Decision and Control, pages 151–158, Osaka, Japan, Dec 2015

  24. [24]

    Alyaseen, N

    M. Alyaseen, N. Atanasov, and J. Cortés. Con- tinuity and boundedness of minimum-norm CBF-safe controllers.IEEE Transactions on Automatic Control, 70(6):4148–4154, 2025

  25. [25]

    Mestres, A

    P. Mestres, A. Allibhoy, and J. Cortés. Reg- ularity properties of optimization-based con- trollers.European Journal of Control, 81: 101098, 2025

  26. [26]

    S.W.Chen, T.Wang, N.Atanasov, V.Kumar, and M. Morari. Large scale model predictive control with neural networks and primal active sets.Automatica, 135:109947, 2022

  27. [27]

    S. Chen, K. Saulnier, N. Atanasov, D. D. Lee, V. Kumar, and G. Pappas. Approximating explicit model predictive control using con- strained neural networks. InAmerican Con- trol Conference, pages 1520–1527, Milwaukee, Wisconsin, USA, 2018

  28. [28]

    Hertneck, J

    M. Hertneck, J. Köhler, S. Trimpe, and F. All- göwer. Learning an approximate model predic- tive controller with guarantees.IEEE Control Systems Letters, 2(3):543–548, 2018

  29. [29]

    Zhang, M

    X. Zhang, M. Bujarbaruah, and F. Bor- relli. Safe and near-optimal policy learning for model predictive control using primal-dual neural networks. InAmerican Control Confer- ence, pages 354–359, Philadelphia, Pennsylva- nia, USA, 2019

  30. [30]

    Borrelli, A

    F. Borrelli, A. Bemporad, and M. Morari.Pre- dictive Control for Linear and Hybrid Systems. Cambridge University Press, Cambridge, UK, 2017

  31. [31]

    Min and N

    Y. Min and N. Azizan. Hard-constrained neural networks with universal approximation guarantees.arXiv preprint arXiv:2410.10807, 2025

  32. [32]

    P. D. Grontas, A. Terpin, E. C. Balta, R. D’Andrea, and J. Lygeros. Pinet: opti- mizing hard-constrained neural networks with orthogonal projection layers.arXiv preprint arXiv:2508.10480, 2025. 12

  33. [33]

    Mestres and J

    P. Mestres and J. Cortés. Converse theo- rems for certificates of safety and stability. IEEE Transactions on Automatic Control, 70 (12), 2025. To appear. Available athttps: //arxiv.org/abs/2406.14823

  34. [34]

    Artstein

    Z. Artstein. Stabilization with relaxed con- trols.Nonlinear Analysis, 7(11):1163–1173, 1983

  35. [35]

    A. L. Dontchev and R. T. Rockafellar.Implicit Functions and Solution Mappings: A View from Variational Analysis; 2nd ed.Springer, New York, NY, 2014

  36. [36]

    Khalil.Nonlinear Systems, 3rd ed.Prentice Hall, Englewood Cliffs, NJ, 2002

    H. Khalil.Nonlinear Systems, 3rd ed.Prentice Hall, Englewood Cliffs, NJ, 2002

  37. [37]

    G. Cybenko. Dynamic load balancing for dis- tributed memory multiprocessors.Journal of Parallel and Distributed Computing, 7(2):279– 301, 1989

  38. [38]

    E. D. Sontag. Input to state stability: Basic concepts and results.Nonlinear and Optimal Control Theory, 1932:163–220, 2008

  39. [39]

    Kolathaya and A

    S. Kolathaya and A. D. Ames. Input-to-state safety with control barrier functions.IEEE Control Systems Letters, 3(1):108–113, 2018

  40. [40]

    Bullo.Contraction Theory for Dynamical Systems

    F. Bullo.Contraction Theory for Dynamical Systems. Kindle Direct Publishing, 1.3 edition,

  41. [41]

    URLhttps:// fbullo.github.io/ctds

    ISBN 979-8836646806. URLhttps:// fbullo.github.io/ctds

  42. [42]

    Yarotsky

    D. Yarotsky. Error bounds for approximations with deep relu networks.Neural Networks, 94: 103–114, 2017

  43. [43]

    S. J. Wright.Primal-Dual Interior Point Methods. Society for Industrial and Applied Mathematics, 1997

  44. [44]

    Elfwing, E

    S. Elfwing, E. Uchibe, and K. Doya. Sigmoid- weighted linear units for neural network func- tion approximation in reinforcement learning. Neural Networks, 107:3–11, 2018

  45. [45]

    Diamond and S

    S. Diamond and S. Boyd. Cvxpy: A python- embedded modeling language for convex op- timization.Journal of Machine Learning Re- search, 17(83):1–5, 2016

  46. [46]

    Virtanen, R

    P. Virtanen, R. Gommers, T. E. Oliphant, et al. SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python.Nature Meth- ods, 17:261–272, 2020. 13