物理约束机器学习教程:KKT-HardNet 框架实现混合建模、优化与控制
A Tutorial on Physics Constrained Machine Learning for Hybrid Modeling, Optimization, and Control
教程介绍模块化物理约束机器学习框架 KKT-HardNet,通过微分投影在神经网络快速推理中保证代数约束满足,可处理异构数据并施加线性与非线性等式及不等式约束。该框架利用隐函数定理实现端到端训练反向传播,避免昂贵的自动微分,并提出精确降阶 Fischer-Burmeister 重构与原始-对偶内点法作为替代投影求解策略。在约束满足与推理时间上均取得数量级更优的性能,代码与基准数据集已公开。
arXiv:2610.32914v1 Announce Type: new Abstract: Physics-constrained machine learning (PCML) integrates domain knowledge, first-principles, and physical constraints into AI/ML models. In this work, we present a step-by-step tutorial of a modular PCML framework, KKT-HardNet, and illustrate how it could be used for hybrid modeling, process simulation, optimization and model predictive control in a single platform. KKT-HardNet combines fast inference capabilities of neural networks with guaranteed satisfaction of algebraic constraints through differential projection. It can handle heterogeneous data and enforce both linear and nonlinear equality and inequality constraints. The modular design supports custom neural-network backbones and user-defined projection mechanisms for PCML. To enable efficient end-to-end training, KKT-HardNet exploits implicit function theorem to backpropagate through the projection layer. This avoids computationally expensive automatic differentiation. This work also introduces an exact reduced-order Fischer-Burmeister reformulation and a primal-dual interior-point method as an alternative projection solve strategy. We also provide a diverse set of benchmarking problems for PCML in engineering applications. KKT-HardNet achieves orders of magnitude better performance in terms of both constraint satisfaction and inference time. The KKT-HardNet code and the benchmark datasets are available at https://github.com/souls-tamu/kkt-hardnet .
来源:arXiv (AI + Vision + Imaging) · arxiv.org