DiffSlack: Learning under Nonlinear Inequality Constraints via Learnable Slack Variables
Not on the map. Why?
Abstract (arXiv)
Enforcing nonlinear inequality constraints in neural networks remains challenging, especially when the output is subject to many coupled constraints. Existing hard constraint methods often impose structural restrictions on the constraint set or introduce substantial computational overhead for large-scale nonlinear problems. Here, we propose DiffSlack, a differentiable projection layer for nonlinear inequality-constrained neural prediction. DiffSlack reformulates inequalities as equalities with learnable slack variables, which are predicted as part of the augmented network output and provide a data-driven warm start for damped Gauss-Newton projection. The projection layer maps raw predictions onto the augmented feasible manifold while preserving end-to-end differentiability. A two-stage curriculum further stabilizes training and improves constraint satisfaction. We evaluate DiffSlack on vehicle path planning with 200 nonlinear inequality constraints from collision avoidance, curvature limits, and waypoint spacing. Compared with existing learning-based baselines, DiffSlack achieves a higher planning success rate and stronger geometric constraint satisfaction under a comparable inference budget. Ablation studies further show that the hard projection layer reduces sensitivity to supervision quality. Closed-loop tracking in CARLA and real-world vehicle experiments confirms the executability of the generated trajectories. These results demonstrate that DiffSlack provides a practical and scalable approach to embedding hard inequality constraints into neural networks for engineering applications.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 22 of its 45 references that are in the map. First posted on arXiv 3 Jun 2026.
Builds on
22 of 45 references.
References · 22
- 2021Convex optimizationcited by 2,479
- 2017CARLA: An Open Urban Driving Simulatorcited by 2,431
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 588
- 2019Differentiable Convex Optimization Layerscited by 458
- 2016Control Barrier Function Based Quadratic Programs for Safety Critical Systemscited by 261
- 2021DC3: A learning method for optimization with hard constraintscited by 181
- 2016On Differentiating Parameterized Argmin and Argmax Problems with Application to Bi-level Optimizationcited by 108
- 2018A predictive safety filter for learning-based control of constrained nonlinear dynamical systemscited by 91
- 2020Lagrangian Duality for Constrained Deep Learningcited by 72
- 2022Self-Supervised Primal-Dual Learning for Constrained Optimizationcited by 60
- 2014Informed RRT*: Optimal Sampling-based Path Planning Focused via Direct Sampling of an Admissible Ellipsoidal Heuristiccited by 50
- 2020Theory-guided hard constraint projection (HCP): a knowledge-based data-driven scientific machine learning methodcited by 29
10 more
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
- 2022Learning to Solve Optimization Problems with Hard Linear Constraintscited by 23
- 2021Implicit differentiation for fast hyperparameter selection in non-smooth convex learningcited by 22
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 17
- 2024LinSATNet: The Positive Linear Satisfiability Neural Networkscited by 16
- 2025ENFORCE: Nonlinear Constrained Learning with Adaptive-depth Neural Projectioncited by 15
- 2025Physics-Informed Neural Networks with Hard Nonlinear Equality and Inequality Constraintscited by 14
- 2018PythonRobotics: a Python code collection of robotics algorithmscited by 12
- 2024GLinSAT: The General Linear Satisfiability Neural Network Layer By Accelerated Gradient Descentcited by 7
- 2026Physics-informed neural particle flow for the Bayesian update stepcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.