Simulating, Fast and Slow: Learning Policies for Black-Box Optimization
Fabio Valerio Massoli, Tim Bakker, Thomas Hehn, Tribhuvanesh Orekondy, Arash Behboodi
TL;DR
This work tackles black-box optimization where forward simulations are expensive or non-differentiable. It introduces a policy-based reinforcement learning framework that jointly decides when to retrain a differentiable local surrogate and how to sample new data, guided by an ensemble-based uncertainty signal. By integrating a local surrogate, a gradient-based optimizer, and an active-learning data acquisition policy, the approach achieves up to 90% fewer simulator calls while maintaining or improving optimization performance across benchmark functions and real-world simulators. The combination of policy-driven retraining and learned sampling strategies offers a data-efficient, scalable pathway for optimizing expensive simulators in scientific and engineering applications.
Abstract
In recent years, solving optimization problems involving black-box simulators has become a point of focus for the machine learning community due to their ubiquity in science and engineering. The simulators describe a forward process $f_{\mathrm{sim}}: (ψ, x) \rightarrow y$ from simulation parameters $ψ$ and input data $x$ to observations $y$, and the goal of the optimization problem is to find parameters $ψ$ that minimize a desired loss function. Sophisticated optimization algorithms typically require gradient information regarding the forward process, $f_{\mathrm{sim}}$, with respect to the parameters $ψ$. However, obtaining gradients from black-box simulators can often be prohibitively expensive or, in some cases, impossible. Furthermore, in many applications, practitioners aim to solve a set of related problems. Thus, starting the optimization ``ab initio", i.e. from scratch, each time might be inefficient if the forward model is expensive to evaluate. To address those challenges, this paper introduces a novel method for solving classes of similar black-box optimization problems by learning an active learning policy that guides a differentiable surrogate's training and uses the surrogate's gradients to optimize the simulation parameters with gradient descent. After training the policy, downstream optimization of problems involving black-box simulators requires up to $\sim$90\% fewer expensive simulator calls compared to baselines such as local surrogate-based approaches, numerical optimization, and Bayesian methods.
