English

Optimization by Directional Attacks: Solving Problems with Neural Network Surrogates

Optimization and Control 2025-10-03 v1

Abstract

This paper tackles optimization problems whose objective and constraints involve a trained Neural Network (NN), where the goal is to maximize f(Φ(x))f(\Phi(x)) subject to c(Φ(x))0c(\Phi(x)) \leq 0, with ff smooth, cc general and non-stringent, and Φ\Phi an already trained and possibly nonwhite-box NN. We address two challenges regarding this problem: identifying ascent directions for local search, and ensuring reliable convergence towards relevant local solutions. To this end, we re-purpose the notion of directional NN attacks as efficient optimization subroutines, since directional NN attacks use the neural structure of Φ\Phi to compute perturbations of xx that steer Φ(x)\Phi(x) in prescribed directions. Precisely, we develop an attack operator that computes attacks of Φ\Phi at any xx along the direction f(Φ(x))\nabla f(\Phi(x)). Then, we propose a hybrid algorithm combining the attack operator with derivative-free optimization (DFO) techniques, designed for numerical reliability by remaining oblivious to the structure of the problem. We consider the cDSM algorithm, which offers asymptotic guarantees to converge to a local solution under mild assumptions on the problem. The resulting method alternates between attack-based steps for heuristic yet fast local intensification and cDSM steps for certified convergence and numerical reliability. Experiments on three problems show that this hybrid approach consistently outperforms standard DFO baselines.

Keywords

Cite

@article{arxiv.2510.01461,
  title  = {Optimization by Directional Attacks: Solving Problems with Neural Network Surrogates},
  author = {Pierre-Yves Bouchet and Thibaut Vidal},
  journal= {arXiv preprint arXiv:2510.01461},
  year   = {2025}
}
R2 v1 2026-07-01T06:11:56.794Z