mlsanityData to 14 Oct 2026

Enforcing Hard Linear Constraints in Deep Learning Models with Decision Rules

arXiv 2505.13858 ↗First posted 20 May 2025cs.LGcited by 10

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

  1. 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
  2. 2019Differentiable Convex Optimization Layerscited by 465
  3. 2021DC3: A learning method for optimization with hard constraintscited by 184
  4. 2017OSQP: An Operator Splitting Solver for Quadratic Programscited by 161
  5. 2021End-to-End Constrained Optimization Learning: A Surveycited by 157
  6. 2019The Power Grid Library for Benchmarking AC Optimal Power Flow Algorithmscited by 65
  7. 2023End-to-End Feasible Optimization Proxies for Large-Scale Economic Dispatchcited by 35
  8. 2021Enforcing Policy Feasibility Constraints through Differentiable Projection for Energy Optimizationcited by 31
  9. 2023RAYEN: Imposition of Hard Convex Constraints on Neural Networkscited by 30
  10. 2024Physics-Informed Neural Networks with Hard Linear Equality Constraintscited by 30
  11. 2022Learning to Solve Optimization Problems with Hard Linear Constraintscited by 23
  12. 2021Computationally Efficient Safe Reinforcement Learning for Power Systemscited by 20
3 more
  1. 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projectioncited by 17
  2. 2020Safe Reinforcement Learning of Control-Affine Systems with Vertex Networkscited by 8
  3. 2022Safe and Efficient Model Predictive Control Using Neural Networks: An Interior Point Approachcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 7.

10 papers.