Scaling Up Nonlinear Constraint Enforcement in Neural Networks via Adaptive Screening
Scaling Up Nonlinear Constraint Enforcement in Neural Networks via Adaptive Screening
Andrea Goertzen, Juho Bae, Navid Azizan
AbstractHard-constrained neural networks can provide fast surrogates for optimization and simulation problems, but iterative constraint-enforcement layers become costly when the number of constraints is large. To address this gap, we introduce Screened HardNet++, a nonlinear constraint-enforcement method that iteratively corrects neural-network outputs using local constraint linearizations while adaptively selecting active constraints. At each iteration, the proposed method uses scaled margins to screen out inequalities that are safely within their bounds, thereby avoiding computation involving constraints that are safely inactive. We show that this screening rule retains the exponential decay of constraint violations of HardNet++. Furthermore, we establish universal approximation for any fixed number of iterations and, under stronger assumptions, for the limiting correction. We also show that raw-network approximation-error bounds transfer uniformly over iteration counts and batch sizes, so a sufficient raw-network parameter budget for a prescribed accuracy can be chosen independently of the correction depth. We evaluate the approach on AC optimal power flow for the IEEE 118-bus system. With 100 correction iterations, screened HardNet++ retains on average 21.5 of 372 flow constraints per iteration and achieves constraint violations and objective quality comparable to an unscreened 500-iteration model, while reducing inference time from 34.4 ms to 6.1 ms per instance. These results demonstrate that adaptive screening can substantially improve the scalability of iterative hard constraint enforcement without sacrificing feasibility or solution quality.