mlsanityData to 7 Oct 2026

A New Computationally Simple Approach for Implementing Neural Networks with Output Hard Constraints

arXiv 2307.10459 ↗First posted 19 Jul 2023cs.LG cs.AI stat.MLcited by 12

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

  1. 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 588
  2. 2019Differentiable Convex Optimization Layerscited by 458
  3. 2021DC3: A learning method for optimization with hard constraintscited by 181
  4. 2017OSQP: An Operator Splitting Solver for Quadratic Programscited by 156
  5. 2021End-to-End Constrained Optimization Learning: A Surveycited by 154
  6. 2017Imposing Hard Constraints on Deep Networks: Promises and Limitationscited by 42
  7. 2022Learning differentiable solvers for systems with hard constraintscited by 34
  8. 2020Theory-guided hard constraint projection (HCP): a knowledge-based data-driven scientific machine learning methodcited by 29
  9. 2022Learning to Solve Optimization Problems with Hard Linear Constraintscited by 23
  10. 2021Learning Hard Optimization Problems: A Data Generation Perspectivecited by 21
  11. 2022POLICE: Provably Optimal Linear Constraint Enforcement for Deep Neural Networkscited by 19
  12. 2020Linearly Constrained Neural Networkscited by 18
3 more
  1. 2020Teaching the Old Dog New Tricks: Supervised Learning with Constraintscited by 16
  2. 2020Sample-Specific Output Constraints for Neural Networkscited by 7
  3. 2022Iterative Supervised Learning for Regression with Constraintscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 4; 2026: 3.

12 papers.