Enforcing Hard Linear Constraints in Deep Learning Models with Decision Rules
Gonzalo E. Constante-Flores, Hao Chen, Can Li

TL;DR
This paper introduces a flexible, model-agnostic framework that guarantees neural network outputs satisfy hard linear constraints during training and inference, combining accuracy with safety and feasibility.
Contribution
It presents a novel architecture that enforces input-dependent linear constraints via decision rules, ensuring feasibility without iterative optimization.
Findings
Guarantees constraint satisfaction during training and inference.
Maintains competitive accuracy on benchmark tasks.
Operates with low inference latency.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMachine Learning and Data Classification
