Sample-wise Constrained Learning via a Sequential Penalty Approach with Applications in Image Processing
Francesca Lanzillotta, Chiara Albisani, Davide Pucci, Daniele Baracchi, Alessandro Piva, Matteo Lapucci
TL;DR
The paper addresses learning problems where per-sample outputs must satisfy strict constraints, formalizing this as min_w L(w) = ∑_{i=1}^N ℓ(w; x^i,y^i) with c(w; x^i) ≤ B for all i. It introduces a sequential quadratic penalty method with an inexact stochastic inner loop: outer iterations solve min_x P_{τ_k}(x) where P_τ(x) = f(x) + (τ/2) ∑_{i=1}^m max{0,g_i(x)}^2, and inner SGD achieves E[||∇P_{τ_k}(x^k)||] ≤ ε_k with τ_k → ∞, ε_k → 0. Theoretical contributions include finite-term guarantees for the inner solver (T_k formula) and outer-loop convergence: ∇P_{τ_k}(x^k) → 0 in probability, with almost sure subsequential convergence to a KKT point under E-LICQ. Empirically, the framework is validated on image-processing tasks, notably MNIST with a reconstruction constraint and a PSNR-based constraint for medical image watermarking, demonstrating effective constraint satisfaction without sacrificing primary task performance. Overall, the work provides a principled, convergent optimization paradigm for constrained learning in contexts where per-sample guarantees are semantically meaningful and practically impactful.
Abstract
In many learning tasks, certain requirements on the processing of individual data samples should arguably be formalized as strict constraints in the underlying optimization problem, rather than by means of arbitrary penalties. We show that, in these scenarios, learning can be carried out exploiting a sequential penalty method that allows to properly deal with constraints. The proposed algorithm is shown to possess convergence guarantees under assumptions that are reasonable in deep learning scenarios. Moreover, the results of experiments on image processing tasks show that the method is indeed viable to be used in practice.
