A Bayesian Optimization Framework for Finding Local Optima in Expensive Multimodal Functions

Yongsheng Mei, Tian Lan, Mahdi Imani, Suresh Subramaniam

TL;DR

Traditional Bayesian Optimization (BO) is a laser-focused search for a single global optimum, but real-world constraints often require alternative high-quality options. This paper introduces a novel multimodal BO framework that analytically derives the joint distribution of an expensive function and its derivatives to efficiently map out and discover multiple local and global optima.

What Problem Does This Paper Address?

Standard Bayesian Optimization is the go-to strategy for optimizing expensive, black-box functions—such as tuning machine learning hyperparameters or conducting physical simulations—where every function evaluation costs significant time or money. However, standard BO has a major limitation: it is designed to find just one global optimum.

In many practical engineering scenarios, the absolute "best" solution might be unfeasible due to unforeseen physical constraints, supply chain issues, or resource limitations. If your global optimum fails, you need a backup plan. This paper addresses the challenge of multimodal optimization: finding a diverse set of high-performing local and global optima for expensive-to-evaluate functions, allowing engineers to quickly switch to alternative solutions without sacrificing system performance.

Methods

The authors build their framework on standard Gaussian Process (GP) regression. Because differentiation is a linear operation, the derivative of a Gaussian Process is also a Gaussian Process. Leveraging this property, the authors mathematically derive the joint distribution of the objective function and its first-order derivatives directly from the GP's kernel function (demonstrated using both Square-Exponential and Polynomial kernels).

Crucially, this means the framework can estimate gradients implicitly based on past data points, without ever needing to directly query the true function's gradients (which are typically unavailable or expensive to compute).

Using this joint distribution, they introduce two new acquisition functions tailored for finding local peaks:

  • Joint Probability of Improvement (Joint PI)
  • Joint Expected Improvement (Joint EI)

These acquisition functions guide the search by looking for points where the predicted function value is high (above a chosen threshold $\xi$) and the first-order derivative is very close to zero (within a small interval $\pm \epsilon$), indicating a local peak.

Illustration of how the proposed method uses both GP predictions and derivatives to identify multiple candidate peaks (A and B).

Datasets

The framework was evaluated using a mix of synthetic mathematical landscapes and a real-world machine learning task:

  • Synthetic 1D Multimodal Function: Used for baseline comparisons and ablation studies.
  • 2D Benchmark Functions: The Griewank function (which features regularly distributed local optima) and the Shubert function (which features multiple local and global peaks).
  • 3D Griewank Function: Used to test the scalability of the algorithm in higher dimensions.
  • CIFAR-10: A standard image classification dataset used for a real-world hyperparameter tuning problem. The objective function was the validation accuracy of a ResNeXt convolutional neural network architecture, where the algorithm tuned the network's layer count and subblock width.

Key Insights and Ideas

  • Implicit Gradients via Kernels: You do not need to calculate or query actual gradients from an expensive system to use gradient-based logic. The mathematical properties of GP kernels allow you to infer the joint distribution of the function and its derivative entirely from point observations.
  • The Dual-Constraint Strategy: Looking only for zero-derivatives traps you in saddle points or local minima. Looking only for high values pushes you exclusively to the global peak. Combining a value threshold ($\xi$) and a derivative constraint ($\epsilon$) successfully isolates local maxima.
  • Preventing Over-Searching: The authors introduce a minimum sampling distance ($d$) parameter. This acts as a spatial regularizer, preventing the algorithm from wasting evaluations by hyper-focusing on a single peak and forcing it to explore other regions of the parameter space.

Key Results

The proposed multimodal BO framework successfully and efficiently mapped out multiple distinct local optima across all testing scenarios.

  • Benchmark Functions: On the Shubert and Griewank functions, the framework successfully captured multiple distinct peaks within 40 iterations.
  • Baseline Comparison: Compared to state-of-the-art baselines (like MPD and GIBO) and vanilla BO, the proposed Joint EI and Joint PI located secondary and tertiary local maxima significantly faster. For instance, Joint EI identified the third-largest local maximum by step 6, whereas the closest baseline took 47 steps.
  • Hyperparameter Tuning: When optimizing ResNeXt on CIFAR-10, the algorithm navigated a complex, non-monotonic accuracy landscape to identify multiple distinct configurations of network depth and width that yielded high validation accuracy.
The framework successfully discovering multiple local optima over time on the Shubert function.

Limitations and Future Work

While highly effective, the framework's performance is sensitive to its own hyperparameters. Setting the value threshold ($\xi$) too high can cause the algorithm to overlook useful, slightly lower local optima. Conversely, setting it too low treats all areas with equal probability, reducing efficiency.

Additionally, while the authors demonstrated scalability up to a 3D function, Gaussian Processes inherently suffer from cubic complexity scaling ($O(k^3)$) relative to the number of sample points. Extending this framework to very high-dimensional spaces remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{mei2023bayesian,
  author = {Yongsheng Mei and Tian Lan and Mahdi Imani and Suresh Subramaniam},
  title = {{A Bayesian Optimization Framework for Finding Local Optima in Expensive Multimodal Functions}},
  booktitle = {ECAI},
  year = {2023},
  doi = {10.3233/faia230455},
}
Figure