Abstract
In many real-world engineering applications, optimization must be performed on black-box systems where the underlying objective and constraint functions are unknown. A critical requirement in these settings is safety: the optimization process must never violate constraints, as doing so could lead to system failure or physical damage. This paper introduces Safe Zeroth-Order Sequential QCQP (SZO-QQ), a novel algorithm that utilizes local quadratic approximations to navigate unknown feasible regions. By solving a sequence of simple sub-problems, SZO-QQ ensures strict feasibility of all samples while demonstrating superior convergence speeds compared to existing safe optimization benchmarks.
1. Introduction
Black-box optimization is essential for tuning complex systems like power grids or robotic controllers where analytical models are unavailable. While zeroth-order methods—which rely solely on function evaluations rather than explicit gradients—are well-suited for these tasks, ensuring safety during the iterative search process remains a significant challenge.
Existing safe optimization methods typically suffer from two primary drawbacks. First, methods based on Gaussian Processes, such as SafeOpt, face exponential computational complexity as the number of variables increases. Second, methods utilizing log-barrier functions (e.g., s0-LBM) often exhibit extreme conservatism; as they approach the boundary of the feasible set, they take infinitesimally small steps, leading to slow convergence. SZO-QQ addresses these issues by employing quadratic local approximations that better capture the curvature of the feasible region's boundary.
2. Methodology: The SZO-QQ Algorithm
The core innovation of SZO-QQ is the use of Quadratic Local Sets to approximate unknown constraints. The algorithm proceeds through four primary stages in each iteration:
- Gradient Estimation: Since explicit gradients are unavailable, the algorithm estimates them using finite difference methods, sampling points in the immediate vicinity of the current iterate.
- Quadratic Approximation: Using the estimated gradients and known smoothness properties (specifically, the Lipschitz constants of the gradients), the algorithm constructs a local "safe zone." Unlike linear approximations, which are often too conservative, these quadratic inequalities allow the algorithm to more accurately model the boundary of the feasible set.
- Sequential QCQP: At each step, the algorithm solves a Quadratically Constrained Quadratic Program (QCQP). This is a computationally efficient sub-problem that can be handled by standard optimization software, ensuring the method scales well to higher dimensions.
- Trust Region and Penalty: To maintain the validity of the local quadratic model, a penalty term is incorporated to prevent the algorithm from taking excessively large steps away from the current safe point.
3. Theoretical Guarantees
SZO-QQ is supported by rigorous mathematical proofs regarding safety and performance:
- Provable Safety: The authors demonstrate that if the algorithm is initialized at a safe point, every subsequent sample is guaranteed to remain feasible, provided the Lipschitz constants for the functions and their gradients are known or conservatively estimated.
- Finite-Time Convergence: Unlike heuristic search methods, SZO-QQ is proven to converge to the global optimum within a specific number of iterations for a given accuracy threshold, assuming the underlying problem is convex.
4. Experimental Evaluation
The algorithm was evaluated against state-of-the-art methods, including SafeOptSwarm, s0-LBM, and Extremum Seeking, across two primary benchmarks:
4.1 Synthetic Convex QCQP
In a 2D problem with three unknown constraints, SZO-QQ reached the optimal solution significantly faster than Extremum Seeking and SafeOptSwarm. While s0-LBM showed initial speed due to lower per-iteration complexity, it quickly plateaued as it approached the constraints. SZO-QQ successfully "hugged" the boundary, allowing for larger, more productive steps toward the optimum.
4.2 Open-Loop Optimal Control
The algorithm was applied to a non-linear system featuring a dynamical model with an unmodeled disturbance. In this quasi-real-world task, SZO-QQ reduced the system cost from an initial safe guess of 6.81 to 5.96 in under one minute. This performance matched that of "perfect knowledge" solvers like IPOPT, which require full access to the system's mathematical equations.
5. Discussion and Limitations
The primary insight of this work is that quadratic approximations significantly reduce the conservatism inherent in safe zeroth-order optimization. By capturing the curvature of the feasible set, SZO-QQ achieves a balance between safety and efficiency that linear or barrier-based methods lack.
However, several avenues for future work remain. The current framework requires knowledge of Lipschitz constants; underestimating these values can compromise safety, while overestimating them can lead to excessive caution. Furthermore, while the algorithm performed well on a non-convex control problem, the theoretical convergence guarantees currently apply only to convex landscapes. Finally, extending the method to handle stochastic noise in function evaluations is a necessary step for deployment on physical hardware where measurements are rarely perfect.
Summary updated