Enforcing Hard Linear Constraints in Deep Learning Models with Decision Rules
Not on the map. Why?
Abstract (arXiv)
Deep learning models are increasingly deployed in safety-critical tasks where predictions must satisfy hard constraints, such as physical laws, fairness requirements, or safety limits. However, standard architectures lack built-in mechanisms to enforce such constraints, and existing approaches based on regularization or projection are often limited to simple constraints, computationally expensive, or lack feasibility guarantees. This paper proposes a model-agnostic framework for enforcing input-dependent linear equality and inequality constraints on neural network outputs. The architecture combines a task network trained for prediction accuracy with a safe network trained using decision rules from the stochastic and robust optimization literature to ensure feasibility across the entire input space. The final prediction is a convex combination of the two subnetworks, guaranteeing constraint satisfaction during both training and inference without iterative procedures or runtime optimization. We prove that the architecture is a universal approximator of constrained functions and derive computationally tractable formulations based on linear decision rules. Empirical results on benchmark regression tasks show that our method consistently satisfies constraints while maintaining competitive accuracy and low inference latency.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 15 of its 37 references that are in the map. First posted on arXiv 20 May 2025.
Builds on
15 of 37 references.
References · 15
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
- 2019Differentiable Convex Optimization Layerscited by 465
- 2021DC3: A learning method for optimization with hard constraintscited by 184
- 2017OSQP: An Operator Splitting Solver for Quadratic Programscited by 161
- 2021End-to-End Constrained Optimization Learning: A Surveycited by 157
- 2019The Power Grid Library for Benchmarking AC Optimal Power Flow Algorithmscited by 65
- 2023End-to-End Feasible Optimization Proxies for Large-Scale Economic Dispatchcited by 35
- 2021Enforcing Policy Feasibility Constraints through Differentiable Projection for Energy Optimizationcited by 31
- 2023RAYEN: Imposition of Hard Convex Constraints on Neural Networkscited by 30
- 2024Physics-Informed Neural Networks with Hard Linear Equality Constraintscited by 30
- 2022Learning to Solve Optimization Problems with Hard Linear Constraintscited by 23
- 2021Computationally Efficient Safe Reinforcement Learning for Power Systemscited by 20
Built on by
Citing papers per year: 2025: 3; 2026: 7.
10 papers.
- 2026Soft-Radial Projection for Constrained End-to-End Learningcited by 3
- 2025ECO: Energy-Constrained Operator Learning for Chaotic Dynamics with Boundedness Guaranteescited by 2
- 2025T-SKM-Net: Trainable Neural Network Framework for Linear Constraint Satisfaction via Sampling Kaczmarz-Motzkin Methodcited by 1
- 2026Learning to Optimize by Differentiable Programmingcited by 1
- 2026Solving Max-Cut to Global Optimality via Feasibility-Preserving Graph Neural Networkscited by 1
- 2025Self-Certifying Primal-Dual Optimization Proxies for Large-Scale Batch Economic Dispatchcited by 0
- 2026NLPOpt-Net: A Learning Method for Nonlinear Optimization with Feasibility Guaranteescited by 0
- 2026DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization Layerscited by 0
- 2026CG4AI: A Column Generation Framework for Training AI Models Under 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
- 2026CG4AI: A Column Generation Framework for Training AI Models Under Constraints26 Aug 2026
- 2026DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization Layers28 May 2026
- 2026Solving Max-Cut to Global Optimality via Feasibility-Preserving Graph Neural Networks8 May 2026
- 2026NLPOpt-Net: A Learning Method for Nonlinear Optimization with Feasibility Guarantees30 Apr 2026
- 2026Soft-Radial Projection for Constrained End-to-End Learning3 Feb 2026
- 2026Learning to Optimize by Differentiable Programming23 Jan 2026
- 2025T-SKM-Net: Trainable Neural Network Framework for Linear Constraint Satisfaction via Sampling Kaczmarz-Motzkin Method11 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