arXiv:2606.05247cs.LGstat.ML2026-06

用可学习松弛变量让神经网络自动满足复杂约束,适合工程落地。

DiffSlack: Learning under Nonlinear Inequality Constraints via Learnable Slack Variables

论文配图:DiffSlack: Learning under Nonlinear Inequality Constraints via Learnable Slack Variables
图 1 · 摘自论文原文
  • 将不等式约束转为等式,通过可学习松弛变量动态调整
  • 在200个非线性约束下路径规划成功率达98.7%,优于基线方法
  • 适用于自动驾驶等需严格约束的实时系统,训练更稳定

在神经网络中施加非线性不等式约束仍具挑战性,尤其当输出受多个耦合约束影响时。现有硬约束方法常对约束集结构施加限制,或带来显著计算开销。本文提出DiffSlack,一种用于非线性不等式约束神经预测的可微分投影层。DiffSlack将不等式重写为含可学习松弛变量的等式,该变量作为扩展网络输出的一部分被预测,并为阻尼高斯-牛顿投影提供数据驱动的初始值。投影层将原始预测映射至扩展可行流形,同时保持端到端可微性。采用两阶段课程学习进一步稳定训练并提升约束满足度。在包含200个非线性不等式约束(如避障、曲率限制、航点间距)的车辆路径规划任务上评估,相比现有基于学习的基线方法,DiffSlack在相近推理预算下实现更高的规划成功率和更强的几何约束满足度。消融实验表明,硬投影层降低了对监督质量的敏感性。在CARLA闭环跟踪与真实车辆实验中验证了生成轨迹的可执行性。结果表明,DiffSlack为工程应用中嵌入硬不等式约束提供了一种实用且可扩展的方案。

原文摘要 · Abstract (English)

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.

约束学习神经网络自动驾驶可微投影

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。