English

Nonlinear Optimization with GPU-Accelerated Neural Network Constraints

Machine Learning 2025-12-10 v2

Abstract

We propose a reduced-space formulation for optimizing over trained neural networks where the network's outputs and derivatives are evaluated on a GPU. To do this, we treat the neural network as a "gray box" where intermediate variables and constraints are not exposed to the optimization solver. Compared to the full-space formulation, in which intermediate variables and constraints are exposed to the optimization solver, the reduced-space formulation leads to faster solves and fewer iterations in an interior point method. We demonstrate the benefits of this method on two optimization problems: Adversarial generation for a classifier trained on MNIST images and security-constrained optimal power flow with transient feasibility enforced using a neural network surrogate.

Keywords

Cite

@article{arxiv.2509.22462,
  title  = {Nonlinear Optimization with GPU-Accelerated Neural Network Constraints},
  author = {Robert Parker and Oscar Dowson and Nicole LoGiudice and Manuel Garcia and Russell Bent},
  journal= {arXiv preprint arXiv:2509.22462},
  year   = {2025}
}
R2 v1 2026-07-01T05:59:00.891Z