Search papers, labs, and topics across Lattice.
HardNet++ enforces both linear and nonlinear equality/inequality constraints on neural network outputs by iteratively adjusting the network output via damped local linearizations. This method guarantees constraint satisfaction to arbitrary tolerance under regularity conditions and is end-to-end differentiable, enabling training with the constraint satisfaction layer active. Experiments in a learning-for-optimization context, specifically model predictive control with nonlinear state constraints, demonstrate tight constraint adherence without compromising optimality.
Guaranteeing constraint satisfaction in neural networks, even for complex nonlinear constraints, is now possible without sacrificing optimality, thanks to HardNet++.
Enforcing constraint satisfaction in neural network outputs is critical for safety, reliability, and physical fidelity in many control and decision-making applications. While soft-constrained methods penalize constraint violations during training, they do not guarantee constraint adherence during inference. Other approaches guarantee constraint satisfaction via specific parameterizations or a projection layer, but are tailored to specific forms (e.g., linear constraints), limiting their utility in other general problem settings. Many real-world problems of interest are nonlinear, motivating the development of methods that can enforce general nonlinear constraints. To this end, we introduce HardNet++, a constraint-enforcement method that simultaneously satisfies linear and nonlinear equality and inequality constraints. Our approach iteratively adjusts the network output via damped local linearizations. Each iteration is differentiable, admitting an end-to-end training framework, where the constraint satisfaction layer is active during training. We show that under certain regularity conditions, this procedure can enforce nonlinear constraint satisfaction to arbitrary tolerance. Finally, we demonstrate tight constraint adherence without loss of optimality in a learning-for-optimization context, where we apply this method to a model predictive control problem with nonlinear state constraints.