BayeSQP: Bayesian Optimization through Sequential Quadratic Programming

Paul Brunzema, Sebastian Trimpe

TL;DR

BayeSQP is a novel local Bayesian Optimization (BO) algorithm that merges classical Sequential Quadratic Programming (SQP) with Gaussian Process (GP) surrogates. By inferring gradients and Hessians from noisy function evaluations and solving an uncertainty-aware subproblem, it achieves superior performance and significantly faster runtimes in high-dimensional, constrained black-box optimization tasks.

The Challenge of High-Dimensional Black-Box Optimization

Optimizing "black-box" functions—where analytical gradients are unavailable and evaluations are expensive or noisy—is a cornerstone of modern engineering, from robotics to hyperparameter tuning. While Bayesian Optimization (BO) is the standard tool for this, it famously struggles with the "curse of dimensionality." As the number of variables ($d$) grows, global surrogates become computationally crushed and sample-inefficient.

Recent trends have shifted toward Local BO (LBO), which focuses on finding local optima rather than the global peak. However, most LBO methods only utilize first-order information (gradients). In classical optimization, second-order methods (using the Hessian/curvature) like SQP are far more efficient but require exact derivatives. The core challenge addressed by this paper is: How do we leverage the speed of second-order optimization when our derivatives are just uncertain estimates derived from noisy data?

Methods: Bridging BO and SQP

The authors introduce BayeSQP, which bridges this gap using three key components:

BayeSQP Algorithm Overview
  1. Joint GP Modeling: Instead of just modeling function values, BayeSQP leverages the differentiable nature of Gaussian Processes. It jointly models function values, gradients, and Hessians. Crucially, it estimates this second-order information using only "zero-order" data (actual function evaluations).
  2. The B-SUB Subproblem: In classical SQP, a Quadratic Program (QP) is solved at each step. BayeSQP replaces this with an uncertainty-aware Second-Order Cone Program (SOCP). This formulation doesn't just look at the mean estimate of the gradient and Hessian; it explicitly accounts for their variance. This "Value-at-Risk" approach ensures the search direction is robust against model uncertainty.
  3. Constrained Thompson Sampling: To determine the step size (line search), the algorithm performs Thompson sampling along the search direction. This allows it to explore promising areas while respecting constraints, even when the local model is imperfect.

Key Insights and Ideas

  • Uncertainty as a Guide: Classical SQP can fail if derivative estimates are slightly off. By formulating the subproblem as an SOCP, BayeSQP naturally "buffers" its search.
Effect of uncertainty parameters on search path

As seen in the optimization paths above, if the gradient is highly uncertain, the algorithm takes a more conservative path (controlled by parameters $\delta_f$ and $\delta_c$), effectively pushing the search direction away from uncertain constraint boundaries.

  • Curvature from Noise: The paper demonstrates that analytical Hessians are not strictly necessary to reap second-order benefits. A GP can "hallucinate" the local landscape's curvature surprisingly well from just a few local samples.
  • Efficiency in High Dimensions: While global BO methods slow down exponentially with dimension, BayeSQP’s local focus and use of a single Gram matrix inversion make it remarkably fast.

Experimental Results

The authors evaluated BayeSQP against state-of-the-art baselines (TuRBO, SAASBO, logEI, and MPD) across synthetic benchmarks, standard BO functions, and real-world engineering tasks.

  • Superior Scaling: In high-dimensional settings ($d \geq 16$), BayeSQP consistently outperformed all baselines in finding lower objective values.
  • Computational Speed: On a 96D synthetic benchmark, BayeSQP completed iterations in seconds. In contrast, global methods like SAASBO failed to finish within a 24-hour time limit.
  • Constraint Satisfaction: In the Speed Reducer engineering benchmark (7 variables, 11 constraints), BayeSQP found feasible solutions in all 32 independent runs and was significantly faster (91s avg. runtime) than the next best competitor, SCBO (286s).
  • Robustness: The "uncertainty-aware" subproblem proved vital; without it, the algorithm often produced tangential search directions that led to poor convergence.

Limitations and Future Work

  • Initialization Sensitivity: As a local search method, BayeSQP's final result depends heavily on the starting point. A "restart" strategy (similar to TuRBO) is suggested to mitigate this.
  • Hessian Scaling: While $d=96$ is impressive, the $O(d^2)$ cost of storing and $O(d^3)$ cost of computing the full Hessian will eventually become a bottleneck. Future work could explore low-rank Hessian approximations or BFGS-style updates to scale to hundreds or thousands of dimensions.
  • Kernel Choice: The algorithm's "vision" of the curvature is only as good as its GP kernel. Sharp nonlinearities or discontinuities in the black-box function could still mislead the second-order estimates.

Summary updated

BibTeX
@inproceedings{brunzema2025bayesqp,
  author = {Paul Brunzema and Sebastian Trimpe},
  title = {{BayeSQP: Bayesian Optimization through Sequential Quadratic Programming}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=FEugj28qhC},
}
Figure