Universal Formulas for Safe Control and Their Neural Network Approximations
Pith reviewed 2026-05-19 12:47 UTC · model grok-4.3
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.
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
- 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
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.
Referee Report
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)
- [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.
- [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)
- 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.
- 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
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
-
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
-
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
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
free parameters (1)
- design parameters of the strictly convex function
axioms (1)
- standard math A strictly convex function on a convex set possesses a unique minimizer
Lean theorems connected to this paper
-
IndisputableMonolith/Cost/FunctionalEquation.leanwashburn_uniqueness_aczel echoes?
echoesECHOES: this paper passage has the same mathematical shape or conceptual pattern as the Recognition theorem, but is not a direct formal dependency.
The controller is given at every state as the minimizer of a strictly convex function... J_p(k) = −∑_{i=1}^N (||B_i||² + ||k||²) / 2(A_i + B_iᵀ k)
-
IndisputableMonolith/Foundation/DimensionForcing.leanalexander_duality_circle_linking unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
a single neural network... is enough to obtain controllers for any task involving systems with the same input dimension and the same number of inequalities, regardless of the state dimension
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
-
[1]
E. D. Sontag.Mathematical Control The- ory: Deterministic Finite Dimensional Sys- tems, volume 6 ofTAM. Springer, 2 edition,
-
[2]
E. D. Sontag. A Lyapunov-like characteriza- tion of asymptotic controllability.SIAM Jour- nal on Control and Optimization, 21:462–471, 1983
work page 1983
-
[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
work page 1996
-
[4]
E. D. Sontag. A universal construction of Art- stein’s theorem on nonlinear stabilization.Sys- tems & Control Letters, 13(2):117–123, 1989
work page 1989
-
[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
work page 2019
-
[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
work page 2017
-
[7]
P. Wieland and F. Allgöwer. Constructive safety using control barrier functions.IFAC Proceedings Volumes, 40(12):462–467, 2007
work page 2007
- [8]
- [9]
-
[10]
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
work page 2021
- [11]
-
[12]
M. Z. Romdlony and B. Jayawardhana. Stabi- lization with guaranteed safety using control Lyapunov-barrier function.Automatica, 66: 39–47, 2016
work page 2016
-
[13]
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
work page 2023
- [14]
-
[15]
T.G.MolnarandA.D.Ames. Composingcon- trol barrier functions for complex safety spec- ifications.IEEE Control Systems Letters, 7: 3615–3620, 2023
work page 2023
- [16]
-
[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
work page internal anchor Pith review Pith/arXiv arXiv 2025
-
[18]
A. Singletary, Y. Chen, and A. D. Ames. Con- trol barrier functions for sampled-data systems with input delays. pages 804–809, December 2020
work page 2020
-
[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
work page 2021
-
[20]
J. Breeden, K. Garg, and D. Panagou. Con- trol barrier functions in sampled-data sys- tems.IEEE Control Systems Letters, 6:367– 372, 2022
work page 2022
-
[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]
doi: 10.1109/CDC51059.2022.9992763
-
[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
work page 2015
-
[24]
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
work page 2025
-
[25]
P. Mestres, A. Allibhoy, and J. Cortés. Reg- ularity properties of optimization-based con- trollers.European Journal of Control, 81: 101098, 2025
work page 2025
-
[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
work page 2022
-
[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
work page 2018
-
[28]
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
work page 2018
- [29]
-
[30]
F. Borrelli, A. Bemporad, and M. Morari.Pre- dictive Control for Linear and Hybrid Systems. Cambridge University Press, Cambridge, UK, 2017
work page 2017
- [31]
- [32]
-
[33]
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]
-
[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
work page 2014
-
[36]
Khalil.Nonlinear Systems, 3rd ed.Prentice Hall, Englewood Cliffs, NJ, 2002
H. Khalil.Nonlinear Systems, 3rd ed.Prentice Hall, Englewood Cliffs, NJ, 2002
work page 2002
-
[37]
G. Cybenko. Dynamic load balancing for dis- tributed memory multiprocessors.Journal of Parallel and Distributed Computing, 7(2):279– 301, 1989
work page 1989
-
[38]
E. D. Sontag. Input to state stability: Basic concepts and results.Nonlinear and Optimal Control Theory, 1932:163–220, 2008
work page 1932
-
[39]
S. Kolathaya and A. D. Ames. Input-to-state safety with control barrier functions.IEEE Control Systems Letters, 3(1):108–113, 2018
work page 2018
-
[40]
Bullo.Contraction Theory for Dynamical Systems
F. Bullo.Contraction Theory for Dynamical Systems. Kindle Direct Publishing, 1.3 edition,
- [41]
- [42]
-
[43]
S. J. Wright.Primal-Dual Interior Point Methods. Society for Industrial and Applied Mathematics, 1997
work page 1997
-
[44]
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
work page 2018
-
[45]
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
work page 2016
-
[46]
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
work page 2020
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.