Stochastic Penalty-Barrier Methods for Constrained Machine Learning

Adam Bosák, Andrii Kliachkin, Jana Lepšová, Gilles Bareilles, Jakub Mareček

arXiv:2605.18618·cs.LG·Published 2026-05-18·Updated 2026-05-19

Constrained machine learning enables fairness-aware training, physics-informed neural networks, and integration of symbolic domain knowledge into statistical models. Despite its practical importance, no general method exists for the non-convex, non-smooth, stochastic setting that arises naturally in deep learning. We propose the Stochastic Penalty-Barrier Method (SPBM), which extends classical penalty and barrier methods to this setting via exponential dual averaging, a stabilized penalty schedule, and the Moreau envelope to handle non-smoothness. Experiments across multiple settings show that SPBM matches or outperforms existing constrained optimization baselines while incurring only linear runtime overhead compared to unconstrained Adam for up to 10,000 constraints.

TopicsScientific Machine Learning & PINNs

Tagsphysics-informed-neural-networks

arXiv categoriescs.LG, cs.AI

arXiv abstract pagePDF