A New Computationally Simple Approach for Implementing Neural Networks with Output Hard Constraints
Not on the map. Why?
Abstract (arXiv)
A new computationally simple method of imposing hard convex constraints on the neural network output values is proposed. The key idea behind the method is to map a vector of hidden parameters of the network to a point that is guaranteed to be inside the feasible set defined by a set of constraints. The mapping is implemented by the additional neural network layer with constraints for output. The proposed method is simply extended to the case when constraints are imposed not only on the output vectors, but also on joint constraints depending on inputs. The projection approach to imposing constraints on outputs can simply be implemented in the framework of the proposed method. It is shown how to incorporate different types of constraints into the proposed method, including linear and quadratic constraints, equality constraints, and dynamic constraints, constraints in the form of boundaries. An important feature of the method is its computational simplicity. Complexities of the forward pass of the proposed neural network layer by linear and quadratic constraints are O(n*m) and O(n^2*m), respectively, where n is the number of variables, m is the number of constraints. Numerical experiments illustrate the method by solving optimization and classification problems. The code implementing the method is publicly available.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 15 of its 25 references that are in the map. First posted on arXiv 19 Jul 2023.
Builds on
15 of 25 references.
References · 15
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 588
- 2019Differentiable Convex Optimization Layerscited by 458
- 2021DC3: A learning method for optimization with hard constraintscited by 181
- 2017OSQP: An Operator Splitting Solver for Quadratic Programscited by 156
- 2021End-to-End Constrained Optimization Learning: A Surveycited by 154
- 2017Imposing Hard Constraints on Deep Networks: Promises and Limitationscited by 42
- 2022Learning differentiable solvers for systems with hard constraintscited by 34
- 2020Theory-guided hard constraint projection (HCP): a knowledge-based data-driven scientific machine learning methodcited by 29
- 2022Learning to Solve Optimization Problems with Hard Linear Constraintscited by 23
- 2021Learning Hard Optimization Problems: A Data Generation Perspectivecited by 21
- 2022POLICE: Provably Optimal Linear Constraint Enforcement for Deep Neural Networkscited by 19
- 2020Linearly Constrained Neural Networkscited by 18
3 more
Built on by
Citing papers per year: 2024: 5; 2025: 4; 2026: 3.
12 papers.
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
- 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guaranteescited by 19
- 2024Learning Constrained Optimization with Deep Augmented Lagrangian Methodscited by 16
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projectioncited by 15
- 2024Dual Lagrangian Learning for Conic Optimizationcited by 11
- 2024Metric Learning to Accelerate Convergence of Operator Splitting Methods for Differentiable Parametric Programmingcited by 6
- 2024Incorporating Expert Rules into Neural Networks in the Framework of Concept-Based Learningcited by 3
- 2026Soft-Radial Projection for Constrained End-to-End Learningcited by 3
- 2025Enforcing convex constraints in Graph Neural Networkscited by 2
- 2025Learning to Solve Constrained Bilevel Control Co-Design Problemscited by 0
- 2026ShardNet: Training Neural Controllers with Hard, Non-Convex Constraintscited by 0
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphscited by 0
- 2026AT-SKM-Net: An Accelerated Trainable Sampling Kaczmarz-Motzkin Framework for Linear Hard-Constraint Feasibility on Dynamic Graphs24 Sep 2026
- 2026ShardNet: Training Neural Controllers with Hard, Non-Convex Constraints29 Jun 2026
- 2026Soft-Radial Projection for Constrained End-to-End Learning3 Feb 2026
- 2025Enforcing convex constraints in Graph Neural Networks13 Oct 2025
- 2025Learning to Solve Constrained Bilevel Control Co-Design Problems11 Jul 2025
- 2025FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guarantees31 May 2025
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projection10 Feb 2025
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guarantees14 Oct 2024
- 2024Metric Learning to Accelerate Convergence of Operator Splitting Methods for Differentiable Parametric Programming1 Apr 2024
- 2024Learning Constrained Optimization with Deep Augmented Lagrangian Methods6 Mar 2024
- 2024Incorporating Expert Rules into Neural Networks in the Framework of Concept-Based Learning22 Feb 2024
- 2024Dual Lagrangian Learning for Conic Optimization5 Feb 2024