Neural Network Accelerated Implicit Filtering: Integrating Neural Network Surrogates With Provably Convergent Derivative Free Optimization Methods

Brian Irwin, Eldad Haber, Raviv Gal, Avi ZivICML 2023

Optimization is the engine of modern engineering, but what happens when you don't have a map? In many real-world scenarios—from climate modeling to aircraft design—the functions we want to minimize are "black boxes." We can't see their internal equations, we can't calculate their derivatives, and to make matters worse, their outputs are often corrupted by noise.

In their paper, Brian Irwin and colleagues introduce Neural Network Accelerated Implicit Filtering (NNAIF). This approach marries the rigorous convergence of classical optimization with the predictive power of deep learning to solve these "blind" optimization problems faster than ever before.

TL;DR

NNAIF is a new optimization framework that uses neural network surrogates to accelerate Implicit Filtering (IF), a robust method for noisy, derivative-free problems. By training a small neural network on previous samples to "guess" the function's shape, NNAIF achieves massive speedups on high-dimensional problems while maintaining provable convergence guarantees.

The Challenge of Derivative-Free Optimization

The authors tackle Derivative-Free Optimization (DFO). Imagine trying to find the lowest point in a valley while blindfolded, only able to ask a GPS for your current altitude. Now imagine the GPS has a random error of $\pm 10$ meters. That is a noisy DFO problem.

Traditional methods like Implicit Filtering (IF) handle this by sampling points on a grid (a "stencil") to estimate which way is "downhill." While robust, IF is "forgetful"—it often ignores the data from previous steps. On the other hand, modern "surrogate" methods try to build a model of the whole valley, but they often lack theoretical guarantees that they will actually find the bottom, especially in high-dimensional spaces (thousands of variables).

The NNAIF Approach

NNAIF bridges this gap by integrating a Residual Neural Network (ResNet) surrogate into the IF loop. The algorithm operates in two main modes:

  1. Exploitation (The NN Boost): The algorithm trains a small ResNet (around 13,000 parameters) on all previously sampled points. It then performs gradient descent on the surrogate model to suggest a new candidate point. Because the surrogate is a differentiable neural network, finding its minimum is computationally "cheap."
  2. Exploration (The IF Safety Net): If the neural network's suggestion fails to improve the objective, the algorithm falls back to the standard IF grid-search. This ensures that even if the NN model is wrong, the overall process doesn't get stuck.

Crucially, the authors prove that NNAIF inherits the asymptotic convergence properties of IF. This means that under standard assumptions, the algorithm is mathematically guaranteed to converge to a critical point, a claim many pure machine learning optimizers cannot make.

Visualizing how the NN surrogate evolves to match the true Rosenbrock function as more data points are collected.

Key Insights and Performance

The researchers evaluated NNAIF using the CUTEst benchmark set, covering 31 diverse optimization problems with up to 9,000 variables, adding uniform stochastic noise to simulate real-world conditions.

  • Surrogates don't need to be perfect: Even a "crude" neural network model can provide a better descent direction than a blind grid search. As shown in the visualization above, the early surrogate (bottom left) looks like a simple plane, but it's enough to point the optimizer in the right direction before refining its shape (bottom right).
  • Efficiency in High Dimensions: One of the most striking findings is NNAIF's performance in high-dimensional spaces. While popular evolutionary strategies like CMA-ES often struggle as the number of variables grows, NNAIF's use of a structured surrogate allows it to scale much more effectively.
  • Data Recycling: By training on all previous evaluations, NNAIF turns "waste" data into a map, significantly reducing the number of expensive calls to the actual black-box function.

Key Results

NNAIF consistently outperformed standard IF and other well-known alternatives like CMA-ES and BFGS across the benchmark suite.

  • Optimality Gap: In many cases, NNAIF reduced the error (optimality gap) by several orders of magnitude more than competing methods within the same budget of 2,000 function evaluations.
  • Scaling: For problems with thousands of variables, NNAIF found significantly better solutions while other methods plateaued.
  • Overhead: While training the NN adds some time, the authors show that for "expensive" functions (taking minutes or hours to evaluate), the few seconds spent training the NN is a negligible price to pay for the resulting efficiency.
Comparison of optimality gaps over time. NNAIF often drops much faster and further than standard IF or CMA-ES.

Limitations and Future Work

  • Unconstrained Focus: The current paper focuses on unconstrained optimization. Extending this to handle complex bound or equality constraints is a logical next step.
  • Hyperparameter Sensitivity: While the authors used a single set of hyperparameters for all 31 problems, performance could be further improved by tuning the NN architecture for specific problem classes.
  • Stochastic Noise Complexity: The study primarily used uniform IID noise; testing against more complex, non-stationary noise distributions would further prove the method's robustness.

For researchers dealing with expensive, noisy simulations, NNAIF offers a compelling "best of both worlds" solution: the speed of deep learning surrogates with the mathematical peace of mind of classical optimization.

Summary updated

BibTeX
@inproceedings{irwin2023neural,
  author = {Brian Irwin and Eldad Haber and Raviv Gal and Avi Ziv},
  title = {{Neural Network Accelerated Implicit Filtering: Integrating Neural Network Surrogates With Provably Convergent Derivative Free Optimization Methods}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=KG1eLtsX61},
}
Figure