Safe Zeroth-Order Convex Optimization Using Quadratic Local Approximations

Baiwei Guo, Yuning Jiang, Maryam Kamgarpour, Giancarlo Ferrari-Trecate

This paper introduces SZO-QQ (Safe Zeroth-Order Sequential QCQP), a novel algorithm for black-box convex optimization that guarantees safety at every step. By utilizing quadratic local approximations of unknown constraints, the method achieves significantly faster convergence than existing state-of-the-art approaches while ensuring that the system never wanders into "unsafe" territory.

TL;DR

SZO-QQ is a new zeroth-order optimization algorithm for black-box convex problems that ensures every sample point remains feasible. By leveraging quadratic local approximations instead of standard linear ones, it achieves faster convergence to the global optimum without violating hard constraints.

What Problem Does This Paper Address?

In many real-world engineering tasks—like tuning a power grid or controlling a robot—we need to optimize a system where the underlying mathematical models (the objective and constraint functions) are unknown. We can only "sample" the system by trying different inputs and observing the outputs.

The major challenge is safety. Traditional "black-box" or zeroth-order methods often explore the space aggressively, which can lead to constraint violations (e.g., a robot crashing or a circuit overheating). Existing safe methods like SafeOpt (based on Gaussian Processes) struggle to scale to higher dimensions, while others like s0-LBM (log-barrier methods) become agonizingly slow as they approach the boundaries of the safe region because their local approximations become too conservative.

Methods

The authors propose a method that uses quadratic local approximations of the constraint functions. Here is the high-level workflow:

  1. Gradient Estimation: The algorithm estimates the gradient of the unknown functions using finite differences (sampling points very close to the current state).
  2. Local Safe Set Construction: Instead of a simple linear approximation, SZO-QQ builds a local "safe" set using a quadratic model. This model incorporates known (or estimated) smoothness properties—specifically, the Lipschitz constants of the functions and their gradients.
  3. QCQP Subproblem: At each iteration, the algorithm solves a known Quadratically Constrained Quadratic Program (QCQP). This subproblem finds the next best point within the local safe zone that minimizes the objective function plus a small penalty term to ensure steady progress.
  4. Iterative Update: The process repeats, gradually expanding the known safe region and moving toward the global optimum.

The key innovation is that quadratic approximations capture the curvature of the constraints. This allows the algorithm to take larger, more confident steps even when it is very close to the boundary of the feasible set.

Datasets

The paper evaluates the algorithm using two primary numerical benchmarks:

  • A Synthetic 2D Convex QCQP: A problem with three unknown constraints designed to test how well the algorithm handles boundaries.
  • Open-Loop Optimal Control: A "Safe Learning Control Problem" involving a non-linear system with unmodeled disturbances. The goal was to minimize control effort while keeping the system states within safe limits.

Key Insights and Ideas

  • Less is More (Conservative): The authors prove that their quadratic local feasible sets are strictly larger (less conservative) than the linear sets used in previous work when near the boundary. This is the "secret sauce" behind their speedup.
  • Provable Convergence: The paper provides a rigorous mathematical proof that the sequence of objective values generated by SZO-QQ is non-increasing and converges to the global minimum.
  • Robustness to Parameter Tuning: Unlike "Extremum Seeking" methods, which are highly sensitive to learning rates (too high leads to crashes, too low leads to stagnation), SZO-QQ uses the system's smoothness properties to automatically determine safe step sizes.

Key Results

In numerical comparisons, SZO-QQ outperformed several established methods:

  • Speed: In the 2D benchmark, SZO-QQ reached a high-precision solution ($10^{-6}$ error) in under 6 seconds, while competitors like s0-LBM and Extremum Seeking plateaued at much higher error levels ($10^{-2}$) in the same timeframe.
  • Efficiency: As shown in Figure 1, SZO-QQ (the blue line) exhibits a much steeper and more consistent descent toward the optimum compared to the alternatives.
Objective value as a function of computation time. SZO-QQ (blue) shows superior convergence speed compared to s0-LBM (red), Extremum Seeking (green), and SafeOptSwarm (yellow).
  • Control Application: In the optimal control test, SZO-QQ reduced the system cost from 6.81 to 5.96. Remarkably, this result was identical to the solution found by an "all-knowing" non-linear solver (IPOPT) that had full access to the hidden equations.

Limitations and Future Work

  • Parameter Knowledge: The method requires upper bounds on Lipschitz and smoothness constants. While these can often be estimated, underestimating them could lead to safety violations.
  • Convexity: The current theoretical guarantees apply to convex problems. While the authors tested it on a non-convex control problem with success, a formal analysis for non-convex landscapes is still needed.
  • Noise: The current work assumes relatively clean samples. Investigating how the algorithm handles significant measurement noise is a suggested next step.

Summary updated

BibTeX
@inproceedings{guo2023safe,
  author = {Baiwei Guo and Yuning Jiang and Maryam Kamgarpour and Giancarlo Ferrari-Trecate},
  title = {{Safe Zeroth-Order Convex Optimization Using Quadratic Local Approximations}},
  booktitle = {ECC},
  year = {2023},
  doi = {10.23919/ecc57647.2023.10178374},
}
Figure