HardNet: Hard-Constrained Neural Networks with Universal Approximation Guarantees
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
- 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 744
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
- 2019Differentiable Convex Optimization Layerscited by 465
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
- 2019Control Barrier Functions: Theory and Applicationscited by 372
- 2017The Expressive Power of Neural Networks: A View from the Widthcited by 320
- 2017A Semantic Loss Function for Deep Learning with Symbolic Knowledgecited by 270
- 2017Formal Verification of Piece-Wise Linear Feed-Forward Neural Networkscited by 242
- 2019Algorithms for Verifying Deep Neural Networkscited by 221
- 2021Neural Descriptor Fields: SE(3)-Equivariant Object Representations for Manipulationcited by 209
- 2019Universal Approximation with Deep Narrow Networkscited by 200
- 2020Logic Tensor Networkscited by 199
38 more
- 2021DC3: A learning method for optimization with hard constraintscited by 184
- 2018Verifiable Reinforcement Learning via Policy Extractioncited by 177
- 2017Approximating Continuous Functions by ReLU Nets of Minimal Widthcited by 122
- 2020Learning Stable Deep Dynamics Modelscited by 111
- 2017Anatomically Constrained Neural Networks (ACNN): Application to Cardiac Image Enhancement and Segmentationcited by 109
- 2022Semantic Probabilistic Layers for Neuro-Symbolic Learningcited by 103
- 2019Safety Verification and Robustness Analysis of Neural Networks via Quadratic Constraints and Semidefinite Programmingcited by 101
- 2015Constrained Convolutional Neural Networks for Weakly Supervised Segmentationcited by 100
- 2020Minimum Width for Universal Approximationcited by 94
- 2019An Abstraction-Based Framework for Neural Network Verificationcited by 68
- 2020Coherent Hierarchical Multi-Label Classification Networkscited by 65
- 2021Introduction to Neural Network Verificationcited by 63
- 2022Equivariant Descriptor Fields: SE(3)-Equivariant Energy-Based Models for End-to-End Visual Robotic Manipulation Learningcited by 56
- 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inferencecited by 50
- 2020Neurosymbolic Reinforcement Learning with Formally Verified Explorationcited by 49
- 2020Probably Approximately Correct Constrained Learningcited by 47
- 2022Equivariant Transporter Networkcited by 46
- 2017Imposing Hard Constraints on Deep Networks: Promises and Limitationscited by 43
- 2021Constrained Learning with Non-Convex Lossescited by 42
- 2021Provable Repair of Deep Neural Networkscited by 42
- 2020Enforcing robust control guarantees within neural network policiescited by 40
- 2023End-to-End Feasible Optimization Proxies for Large-Scale Economic Dispatchcited by 35
- 2022NeuPSL: Neural Probabilistic Soft Logiccited by 34
- 2021Universal Approximation Under Constraints is Possible with Transformerscited by 32
- 2023RAYEN: Imposition of Hard Convex Constraints on Neural Networkscited by 30
- 2024Physics-Informed Neural Networks with Hard Linear Equality Constraintscited by 30
- 2024How Realistic Is Your Synthetic Data? Constraining Deep Generative Models for Tabular Datacited by 29
- 2020Reachability-based Trajectory Safeguard (RTS): A Safe and Fast Reinforcement Learning Safety Layer for Continuous Controlcited by 28
- 2019Probabilistic model predictive safety certification for learning-based controlcited by 22
- 2020Training neural networks under physical constraints using a stochastic augmented Lagrangian approachcited by 20
- 2022POLICE: Provably Optimal Linear Constraint Enforcement for Deep Neural Networkscited by 19
- 2024LinSATNet: The Positive Linear Satisfiability Neural Networkscited by 16
- 2023Resilient Constrained Learningcited by 15
- 2019Verification of Non-Linear Specifications for Neural Networkscited by 14
- 2022A Unified View of SDP-based Neural Network Verification through Completely Positive Programmingcited by 12
- 2023A New Computationally Simple Approach for Implementing Neural Networks with Output Hard Constraintscited by 12
- 2023Data-Driven Control with Inherent Lyapunov Stabilitycited by 6
- 2024Learning Dissipative Chaotic Dynamics with Boundedness Guaranteescited by 5
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2025: 9; 2026: 22.
31 papers.
Sort:
By area:
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projectioncited by 17
- 2025Position: Adopt Constraints Over Fixed Penalties in Deep Learningcited by 5
- 2025Physics-Constrained Machine Learning for Chemical Engineeringcited by 5
- 2026LMI-Net: Linear Matrix Inequality--Constrained Neural Networks via Differentiable Projection Layerscited by 4
- 2026Soft-Radial Projection for Constrained End-to-End Learningcited by 3
- 2026Improving Feasibility via Fast Autoencoder-Based Projectionscited by 3
- 2025ECO: Energy-Constrained Operator Learning for Chaotic Dynamics with Boundedness Guaranteescited by 2
- 2026SnareNet: Flexible Repair Layers for Neural Networks with Hard Constraintscited by 2
- 2026HardNet++: Nonlinear Constraint Enforcement in Neural Networkscited by 2
- 2025HoP: Homeomorphic Polar Learning for Hard Constrained Optimizationcited by 1
- 2025Constrained Online Decision-Making: A Unified Frameworkcited by 1
- 2025VFSI: Validity First Spatial Intelligence for Constraint-Guided Traffic Diffusioncited by 1
19 more
- 2026AdamFLIP: Adaptive Momentum Feedback Linearization Optimization for Hard Constrained PINN Trainingcited by 1
- 2026Exact Fixed-Point Constraints in Neural-ODEs with Provable Universalitycited by 1
- 2026DiffSlack: Learning under Nonlinear Inequality Constraints via Learnable Slack Variablescited by 1
- 2026LEAF: A Learning-Enabled ADMM Framework for Accelerated Convex Optimizationcited by 1
- 2026The Standard Interpretable Model: A general theory of interpretable machine learning to deductively design interpretable methods using Lagrangian mechanicscited by 1
- 2026Provably Safe, Yet Scalable Reinforcement Learningcited by 1
- 2025Self-Certifying Primal-Dual Optimization Proxies for Large-Scale Batch Economic Dispatchcited by 0
- 2025Constrained Policy Optimization via Sampling-Based Weight-Space Projectioncited by 0
- 2026Geometry-Preserving Neural Architectures on Manifolds with Boundarycited by 0
- 2026Chimera: Neuro-Symbolic Attention Primitives for Trustworthy Dataplane Intelligencecited by 0
- 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNscited by 0
- 2026CAffNet: Hard Constraint-Affine Neural Networkscited by 0
- 2026Neural Slack Variables for Shape Constraintscited by 0
- 2026ShardNet: Training Neural Controllers with Hard, Non-Convex Constraintscited by 0
- 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layerscited by 0
- 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraintscited by 0
- 2026Proximal Residual Value Functions for Consistent Planning and Real-Time Executioncited by 0
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphscited by 0
- 2026Only Project Once: Projection-Adaptive Loss for Exact Constraint Satisfactioncited by 0
- 2026Only Project Once: Projection-Adaptive Loss for Exact Constraint Satisfaction3 Oct 2026
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphs24 Sep 2026
- 2026Proximal Residual Value Functions for Consistent Planning and Real-Time Execution19 Sep 2026
- 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraints26 Aug 2026
- 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layers22 Jul 2026
- 2026ShardNet: Training Neural Controllers with Hard, Non-Convex Constraints29 Jun 2026
- 2026Provably Safe, Yet Scalable Reinforcement Learning12 Jun 2026
- 2026Neural Slack Variables for Shape Constraints11 Jun 2026
- 2026The Standard Interpretable Model: A general theory of interpretable machine learning to deductively design interpretable methods using Lagrangian mechanics10 Jun 2026
- 2026LEAF: A Learning-Enabled ADMM Framework for Accelerated Convex Optimization8 Jun 2026
- 2026DiffSlack: Learning under Nonlinear Inequality Constraints via Learnable Slack Variables3 Jun 2026
- 2026CAffNet: Hard Constraint-Affine Neural Networks23 May 2026
19 more
- 2026Exact Fixed-Point Constraints in Neural-ODEs with Provable Universality11 May 2026
- 2026AdamFLIP: Adaptive Momentum Feedback Linearization Optimization for Hard Constrained PINN Training8 May 2026
- 2026HardNet++: Nonlinear Constraint Enforcement in Neural Networks21 Apr 2026
- 2026LMI-Net: Linear Matrix Inequality--Constrained Neural Networks via Differentiable Projection Layers7 Apr 2026
- 2026Improving Feasibility via Fast Autoencoder-Based Projections3 Apr 2026
- 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNs31 Mar 2026
- 2026Chimera: Neuro-Symbolic Attention Primitives for Trustworthy Dataplane Intelligence13 Feb 2026
- 2026SnareNet: Flexible Repair Layers for Neural Networks with Hard Constraints10 Feb 2026
- 2026Soft-Radial Projection for Constrained End-to-End Learning3 Feb 2026
- 2026Geometry-Preserving Neural Architectures on Manifolds with Boundary3 Feb 2026
- 2025Constrained Policy Optimization via Sampling-Based Weight-Space Projection15 Dec 2025
- 2025ECO: Energy-Constrained Operator Learning for Chaotic Dynamics with Boundedness Guarantees1 Dec 2025
- 2025Self-Certifying Primal-Dual Optimization Proxies for Large-Scale Batch Economic Dispatch17 Oct 2025
- 2025VFSI: Validity First Spatial Intelligence for Constraint-Guided Traffic Diffusion28 Sep 2025
- 2025Physics-Constrained Machine Learning for Chemical Engineering28 Aug 2025
- 2025Position: Adopt Constraints Over Fixed Penalties in Deep Learning27 May 2025
- 2025Constrained Online Decision-Making: A Unified Framework11 May 2025
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projection10 Feb 2025
- 2025HoP: Homeomorphic Polar Learning for Hard Constrained Optimization1 Feb 2025
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projectioncited by 17
- 2025Position: Adopt Constraints Over Fixed Penalties in Deep Learningcited by 5
- 2025Physics-Constrained Machine Learning for Chemical Engineeringcited by 5
- 2026LMI-Net: Linear Matrix Inequality--Constrained Neural Networks via Differentiable Projection Layerscited by 4
- 2026Soft-Radial Projection for Constrained End-to-End Learningcited by 3
- 2026Improving Feasibility via Fast Autoencoder-Based Projectionscited by 3
- 2025ECO: Energy-Constrained Operator Learning for Chaotic Dynamics with Boundedness Guaranteescited by 2
- 2026SnareNet: Flexible Repair Layers for Neural Networks with Hard Constraintscited by 2
- 2026HardNet++: Nonlinear Constraint Enforcement in Neural Networkscited by 2
- 2025HoP: Homeomorphic Polar Learning for Hard Constrained Optimizationcited by 1
- 2025Constrained Online Decision-Making: A Unified Frameworkcited by 1
- 2026AdamFLIP: Adaptive Momentum Feedback Linearization Optimization for Hard Constrained PINN Trainingcited by 1
12 most cited of 28 All 28 (JSON)
- 2026Only Project Once: Projection-Adaptive Loss for Exact Constraint Satisfaction3 Oct 2026
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphs24 Sep 2026
- 2026Proximal Residual Value Functions for Consistent Planning and Real-Time Execution19 Sep 2026
- 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraints26 Aug 2026
- 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layers22 Jul 2026
- 2026ShardNet: Training Neural Controllers with Hard, Non-Convex Constraints29 Jun 2026
- 2026Neural Slack Variables for Shape Constraints11 Jun 2026
- 2026The Standard Interpretable Model: A general theory of interpretable machine learning to deductively design interpretable methods using Lagrangian mechanics10 Jun 2026
- 2026LEAF: A Learning-Enabled ADMM Framework for Accelerated Convex Optimization8 Jun 2026
- 2026DiffSlack: Learning under Nonlinear Inequality Constraints via Learnable Slack Variables3 Jun 2026
- 2026CAffNet: Hard Constraint-Affine Neural Networks23 May 2026
- 2026Exact Fixed-Point Constraints in Neural-ODEs with Provable Universality11 May 2026
12 newest of 28 All 28 (JSON)