The "Missing Middle" in Optimization
In fields like computational neuroscience, researchers frequently need to fit complex models to experimental data. These models are often "black boxes": they are evaluated via stochastic simulations or numerical approximations, meaning their objective functions are noisy, non-convex, and lack available gradients (derivatives).
While Bayesian Optimization (BO) is the gold standard for extremely expensive optimization problems (like tuning a deep neural network over days), it carries significant computational overhead. This makes it impractical for models that only take a few seconds to run. Conversely, traditional derivative-free optimizers (like Nelder-Mead or CMA-ES) are fast but can easily get stuck in local optima or fail completely when faced with significant noise.
The authors identify a "missing middle": a critical need for a fast, robust, and easy-to-use optimizer tailored for models with roughly 3 to 15 parameters that take 0.1 to 10 seconds to evaluate. To bridge this gap, they introduce Bayesian Adaptive Direct Search (BADS).
How BADS Works: A Hybrid Approach
BADS is a hybrid optimization framework that alternates between two distinct stages to balance efficiency and robustness:
- The SEARCH Stage (Local BO): BADS builds a local Gaussian Process (GP) surrogate of the objective function. It uses an acquisition function (Lower Confidence Bound) to propose new points that balance "exploitation" (searching where the model predicts a good value) and "exploration" (searching where uncertainty is high).
- The POLL Stage (Mesh Search): If the BO-based search fails to find an improvement, BADS falls back to a Mesh Adaptive Direct Search (MADS). This coordinate-descent-like step evaluates points on a grid, acting as a fail-safe to ensure the algorithm doesn't get stuck if the GP surrogate is inaccurate.
Key Technical Innovations
- Rational Quadratic (RQ) Kernel: Unlike standard Matern or Squared Exponential kernels, the authors found the RQ kernel better captures the varied length scales typical of model-fitting landscapes.
- Noise Handling: For stochastic functions, BADS uses a latent quantile function to choose the incumbent (current best point), which is far more robust than relying on noisy observed values.
- Low Overhead: BADS is specifically optimized to keep its internal "thinking time" low, making it practical for models with moderate evaluation times.
Benchmarks and Key Results
The algorithm was rigorously evaluated on two major benchmarks: the standard artificial BBOB09 set (adapted for noise) and a novel CCN17 benchmark comprising 36 real-world model-fitting problems from published neuroscience studies.
Artificial Functions (BBOB09)
In noiseless settings, BADS performs competitively with state-of-the-art optimizers. However, its true strength emerges in noisy environments. On the BBOB09 benchmark with heteroskedastic noise (where noise levels change depending on the location in the parameter space), BADS significantly outperformed all other tested optimizers, including CMA-ES and SNOBFIT.
Real-World Neuroscience Models (CCN17)
The CCN17 benchmark represents a significant contribution of realistic, "messy" optimization targets, including tasks like causal inference in perception and neuronal selectivity. On these real-world problems, BADS consistently found better or equal solutions compared to 16 other algorithms.
Surprisingly, standard "vanilla" BO implementations (like MATLAB's bayesopt) performed poorly on these neuroscience benchmarks, often doing no better than random search. This highlights that off-the-shelf BO, which often tries to model the entire global landscape, is not always a silver bullet. BADS succeeds by focusing on local surrogates, which are easier to fit and more relevant to finding the optimum.
Furthermore, even when accounting for its algorithmic overhead (the time the computer spends "thinking" between function evaluations, shown as the grey dashed line in the CCN17 plots), BADS's effective performance remained superior to traditional methods for models taking more than ~0.1 seconds to run.
Limitations and Future Directions
While highly effective, BADS has limitations:
- Dimensionality: Like most GP-based methods, BADS struggles as the number of parameters increases. It is recommended for problems with up to 15–20 variables.
- Surrogate Dependency: Performance is tied to how well the GP can approximate the local landscape. If the objective function is extremely jagged or discontinuous, the SEARCH stage may fail frequently, forcing reliance on the slower POLL stage.
Future work may explore alternative surrogate models (like random forests or dynamic trees) and implement "smart multi-start" strategies to better handle global optimization in highly complex, multi-modal landscapes. Overall, BADS represents a highly practical, robust tool for the everyday model-fitting challenges faced by computational scientists.
Summary updated