Black-Box Optimization with Local Generative Surrogates

Sergey Shirobokov, Vladislav Belavin, Michael Kagan, Andrey Ustyuzhanin, Atilim Gunes BaydinNeurIPS 2020

Introduction

In fields ranging from particle physics to climate modeling, researchers rely heavily on complex computer simulators to model real-world systems. However, these simulators are often "black boxes": they are non-differentiable (preventing the calculation of exact gradients), highly stochastic, and possess intractable likelihoods.

Optimizing the parameters of these simulators—such as calibrating a model to match experimental data or designing a more efficient engine—is notoriously difficult. Existing approaches have significant drawbacks:

  • Bayesian Optimization (BO): Scales poorly to high-dimensional parameter spaces.
  • Numerical Differentiation: Requires an impractical number of simulator calls and struggles with noisy, stochastic outputs.
  • Score Function Estimators (e.g., REINFORCE): Often suffer from extremely high variance, making convergence slow and unstable.

To overcome these challenges, researchers have introduced Local Generative Surrogate Optimization (L-GSO), a method that iteratively trains deep generative models to act as differentiable "local proxies" for the simulator, enabling efficient gradient-based optimization even in high-dimensional spaces.

The L-GSO Method

L-GSO treats the black-box simulator as a target to be mimicked by a differentiable surrogate model.

Architecture of Local Generative Surrogate Optimization, showing the differentiable surrogate replacing the non-differentiable simulator to enable gradient flow.

The approach relies on four key pillars:

  1. Generative Surrogates: Instead of using a simple regression model, L-GSO employs deep generative models (specifically Cramer GANs or FFJORD continuous normalizing flows). These models learn to produce samples that match the simulator's stochastic output distribution for a given set of parameters.
  2. Local Training: Training a single global surrogate for a high-dimensional space is computationally prohibitive. L-GSO circumvents this by training a surrogate only within a small "local neighborhood" (a trust region) around the current parameter values.
  3. Gradient Estimation: Because the surrogate is a neural network, it is fully differentiable. The algorithm backpropagates through the surrogate to estimate the gradient of the objective function with respect to the simulator parameters.
  4. Iterative Optimization: The optimizer follows these estimated gradients to update the parameters, shifts the local neighborhood to the new location, and retrains the surrogate. To maximize efficiency, a history of previous simulator calls is maintained to reuse data points.

Applications and Key Results

The researchers evaluated L-GSO across a mix of synthetic benchmarks and high-stakes physics applications, including stochastic versions of the Three Hump and Rosenbrock functions, neural network weight optimization, and a real-world physics experiment optimizing a multi-stage steel magnet (muon shield) for the SHiP experiment at CERN.

Performance comparison showing L-GSO converging faster and to better objective values than baseline methods across function calls.

The experiments revealed several critical advantages of the L-GSO approach:

  • Massive Speedups: L-GSO outperformed score-function-based algorithms (like LTS and LAX) by up to an order of magnitude in convergence speed on several problems.
  • High-Dimensional Success: In a 100-dimensional Rosenbrock problem, L-GSO successfully found the minimum where Bayesian Optimization and other baselines struggled to converge. This is largely because L-GSO exploits intrinsic dimensionality—it requires significantly fewer simulator calls when the true complexity of the problem is lower than the number of parameters.
  • Implicit Regularization: Deep generative models provide a smoother approximation of the objective surface than linear numerical differentiation, helping the optimizer navigate surfaces with high curvature without diverging.
  • Real-World Impact: In the CERN muon shield optimization (a 42-parameter problem), L-GSO found a design with a 25% better objective value than the previous state-of-the-art Bayesian Optimization solution, using a similar budget of roughly 5,000 simulator calls. The resulting design was shorter and lighter, translating to potential savings in construction costs.

Limitations and Future Directions

While highly effective empirically, L-GSO does have limitations. The method currently lacks formal theoretical convergence guarantees. It is also sensitive to hyperparameters, particularly the size of the local neighborhood ($\epsilon$) and the number of samples per step; if the neighborhood is too small, the surrogate lacks context, but if it is too large, the local approximation degrades. Finally, while L-GSO reduces expensive simulator calls, training a GAN at every optimization step introduces its own computational overhead.

Future work may explore second-order optimization by using the surrogate to estimate Hessians, as well as developing methods to automatically determine the dimensionality of the parameter manifold to further streamline the optimization process.

Summary updated

BibTeX
@inproceedings{shirobokov2020black,
  author = {Sergey Shirobokov and Vladislav Belavin and Michael Kagan and Andrey Ustyuzhanin and Atilim Gunes Baydin},
  title = {{Black-Box Optimization with Local Generative Surrogates}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure