mlsanityData to 14 Oct 2026

HardNet: Hard-Constrained Neural Networks with Universal Approximation Guarantees

arXiv 2410.10807 ↗First posted 14 Oct 2024cs.LG cs.AI stat.MLcited by 31

Not on the map. Why?

Abstract (arXiv)

Incorporating prior knowledge or specifications of input-output relationships into machine learning models has attracted significant attention, as it enhances generalization from limited data and yields conforming outputs. However, most existing approaches use soft constraints by penalizing violations through regularization, which offers no guarantee of constraint satisfaction, especially on inputs far from the training distribution--an essential requirement in safety-critical applications. On the other hand, imposing hard constraints on neural networks may hinder their representational power, adversely affecting performance. To address this, we propose HardNet, a practical framework for constructing neural networks that inherently satisfy hard constraints without sacrificing model capacity. Unlike approaches that modify outputs only at inference time, HardNet enables end-to-end training with hard constraint guarantees, leading to improved performance. To the best of our knowledge, HardNet is the first method that enables efficient and differentiable enforcement of more than one input-dependent inequality constraint. It allows unconstrained optimization of the network parameters using standard algorithms by appending a differentiable closed-form enforcement layer to the network's output. Furthermore, we show that HardNet retains neural networks' universal approximation capabilities. We demonstrate its versatility and effectiveness across various applications: learning with piecewise constraints, learning optimization solvers with guaranteed feasibility, and optimizing control policies in safety-critical systems.

Key facts. Cited by 31 papers in the map (data through 14 Oct 2026). Builds on 53 of its 71 references that are in the map. First posted on arXiv 14 Oct 2024.

Builds on

53 of 71 references.

References · 53

  1. 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 744
  2. 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
  3. 2019Differentiable Convex Optimization Layerscited by 465
  4. 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
  5. 2019Control Barrier Functions: Theory and Applicationscited by 372
  6. 2017The Expressive Power of Neural Networks: A View from the Widthcited by 320
  7. 2017A Semantic Loss Function for Deep Learning with Symbolic Knowledgecited by 270
  8. 2017Formal Verification of Piece-Wise Linear Feed-Forward Neural Networkscited by 242
  9. 2019Algorithms for Verifying Deep Neural Networkscited by 221
  10. 2021Neural Descriptor Fields: SE(3)-Equivariant Object Representations for Manipulationcited by 209
  11. 2019Universal Approximation with Deep Narrow Networkscited by 200
  12. 2020Logic Tensor Networkscited by 199
38 more
  1. 2021DC3: A learning method for optimization with hard constraintscited by 184
  2. 2018Verifiable Reinforcement Learning via Policy Extractioncited by 177
  3. 2017Approximating Continuous Functions by ReLU Nets of Minimal Widthcited by 122
  4. 2020Learning Stable Deep Dynamics Modelscited by 111
  5. 2017Anatomically Constrained Neural Networks (ACNN): Application to Cardiac Image Enhancement and Segmentationcited by 109
  6. 2022Semantic Probabilistic Layers for Neuro-Symbolic Learningcited by 103
  7. 2019Safety Verification and Robustness Analysis of Neural Networks via Quadratic Constraints and Semidefinite Programmingcited by 101
  8. 2015Constrained Convolutional Neural Networks for Weakly Supervised Segmentationcited by 100
  9. 2020Minimum Width for Universal Approximationcited by 94
  10. 2019An Abstraction-Based Framework for Neural Network Verificationcited by 68
  11. 2020Coherent Hierarchical Multi-Label Classification Networkscited by 65
  12. 2021Introduction to Neural Network Verificationcited by 63
  13. 2022Equivariant Descriptor Fields: SE(3)-Equivariant Energy-Based Models for End-to-End Visual Robotic Manipulation Learningcited by 56
  14. 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inferencecited by 50
  15. 2020Neurosymbolic Reinforcement Learning with Formally Verified Explorationcited by 49
  16. 2020Probably Approximately Correct Constrained Learningcited by 47
  17. 2022Equivariant Transporter Networkcited by 46
  18. 2017Imposing Hard Constraints on Deep Networks: Promises and Limitationscited by 43
  19. 2021Constrained Learning with Non-Convex Lossescited by 42
  20. 2021Provable Repair of Deep Neural Networkscited by 42
  21. 2020Enforcing robust control guarantees within neural network policiescited by 40
  22. 2023End-to-End Feasible Optimization Proxies for Large-Scale Economic Dispatchcited by 35
  23. 2022NeuPSL: Neural Probabilistic Soft Logiccited by 34
  24. 2021Universal Approximation Under Constraints is Possible with Transformerscited by 32
  25. 2023RAYEN: Imposition of Hard Convex Constraints on Neural Networkscited by 30
  26. 2024Physics-Informed Neural Networks with Hard Linear Equality Constraintscited by 30
  27. 2024How Realistic Is Your Synthetic Data? Constraining Deep Generative Models for Tabular Datacited by 29
  28. 2020Reachability-based Trajectory Safeguard (RTS): A Safe and Fast Reinforcement Learning Safety Layer for Continuous Controlcited by 28
  29. 2019Probabilistic model predictive safety certification for learning-based controlcited by 22
  30. 2020Training neural networks under physical constraints using a stochastic augmented Lagrangian approachcited by 20
  31. 2022POLICE: Provably Optimal Linear Constraint Enforcement for Deep Neural Networkscited by 19
  32. 2024LinSATNet: The Positive Linear Satisfiability Neural Networkscited by 16
  33. 2023Resilient Constrained Learningcited by 15
  34. 2019Verification of Non-Linear Specifications for Neural Networkscited by 14
  35. 2022A Unified View of SDP-based Neural Network Verification through Completely Positive Programmingcited by 12
  36. 2023A New Computationally Simple Approach for Implementing Neural Networks with Output Hard Constraintscited by 12
  37. 2023Data-Driven Control with Inherent Lyapunov Stabilitycited by 6
  38. 2024Learning Dissipative Chaotic Dynamics with Boundedness Guaranteescited by 5

50 most cited of 53 All 53 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 9; 2026: 22.

31 papers.

Sort:

By area:

  1. 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projectioncited by 17
  2. 2025Position: Adopt Constraints Over Fixed Penalties in Deep Learningcited by 5
  3. 2025Physics-Constrained Machine Learning for Chemical Engineeringcited by 5
  4. 2026LMI-Net: Linear Matrix Inequality--Constrained Neural Networks via Differentiable Projection Layerscited by 4
  5. 2026Soft-Radial Projection for Constrained End-to-End Learningcited by 3
  6. 2026Improving Feasibility via Fast Autoencoder-Based Projectionscited by 3
  7. 2025ECO: Energy-Constrained Operator Learning for Chaotic Dynamics with Boundedness Guaranteescited by 2
  8. 2026SnareNet: Flexible Repair Layers for Neural Networks with Hard Constraintscited by 2
  9. 2026HardNet++: Nonlinear Constraint Enforcement in Neural Networkscited by 2
  10. 2025HoP: Homeomorphic Polar Learning for Hard Constrained Optimizationcited by 1
  11. 2025Constrained Online Decision-Making: A Unified Frameworkcited by 1
  12. 2025VFSI: Validity First Spatial Intelligence for Constraint-Guided Traffic Diffusioncited by 1
19 more
  1. 2026AdamFLIP: Adaptive Momentum Feedback Linearization Optimization for Hard Constrained PINN Trainingcited by 1
  2. 2026Exact Fixed-Point Constraints in Neural-ODEs with Provable Universalitycited by 1
  3. 2026DiffSlack: Learning under Nonlinear Inequality Constraints via Learnable Slack Variablescited by 1
  4. 2026LEAF: A Learning-Enabled ADMM Framework for Accelerated Convex Optimizationcited by 1
  5. 2026The Standard Interpretable Model: A general theory of interpretable machine learning to deductively design interpretable methods using Lagrangian mechanicscited by 1
  6. 2026Provably Safe, Yet Scalable Reinforcement Learningcited by 1
  7. 2025Self-Certifying Primal-Dual Optimization Proxies for Large-Scale Batch Economic Dispatchcited by 0
  8. 2025Constrained Policy Optimization via Sampling-Based Weight-Space Projectioncited by 0
  9. 2026Geometry-Preserving Neural Architectures on Manifolds with Boundarycited by 0
  10. 2026Chimera: Neuro-Symbolic Attention Primitives for Trustworthy Dataplane Intelligencecited by 0
  11. 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNscited by 0
  12. 2026CAffNet: Hard Constraint-Affine Neural Networkscited by 0
  13. 2026Neural Slack Variables for Shape Constraintscited by 0
  14. 2026ShardNet: Training Neural Controllers with Hard, Non-Convex Constraintscited by 0
  15. 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layerscited by 0
  16. 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraintscited by 0
  17. 2026Proximal Residual Value Functions for Consistent Planning and Real-Time Executioncited by 0
  18. 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphscited by 0
  19. 2026Only Project Once: Projection-Adaptive Loss for Exact Constraint Satisfactioncited by 0