NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Safe Zeroth-Order Optimization Using Linear Programs

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

Abstract

In many real-world engineering applications, such as power grid management and robotics, optimization must be performed on systems where the underlying mathematical models are unknown. This necessitates zeroth-order optimization, where only system queries are available. However, maintaining "hard" safety constraints during the exploration process is critical. This paper introduces SZO-LP, a novel black-box optimization method that ensures safety by solving simple linear programs in each iteration. SZO-LP demonstrates significant improvements in computational speed and sample efficiency compared to existing safe zeroth-order methods, providing a scalable solution for complex systems with numerous constraints.

Introduction

Optimizing unmodeled or "black-box" systems presents a unique challenge: we can observe the output of a system for a given input, but we lack the explicit equations for the objective function and the constraints. This is the domain of zeroth-order optimization. In critical infrastructure like power grids, the stakes are high; violating a constraint—such as voltage limits or transmission capacities—can lead to catastrophic failure.

Existing approaches to "safe" optimization often fall into two traps: they either rely on computationally expensive non-convex subproblems (e.g., SafeOPT) or struggle to scale when the number of constraints grows into the hundreds (e.g., SZO-QQ). SZO-LP (Safe Zeroth-order Optimization using Linear Programs) was developed to bridge this gap, offering a mathematically grounded framework that is both safe and computationally efficient.

The SZO-LP Methodology

SZO-LP operates through a three-step iterative cycle designed to navigate the feasible region of an unknown system without ever crossing the boundary into unsafe territory.

1. Gradient Estimation

Because the explicit equations for the objective and constraints are unavailable, SZO-LP estimates gradients using finite differences. By sampling the system at nearby points, the algorithm determines the direction of steepest descent for the objective and the local behavior of the constraints.

2. Linear Programming Subproblems

A key innovation of SZO-LP is its use of Linear Programs (LP) rather than the more complex Quadratically Constrained Quadratic Programs (QCQP) used in previous methods. To maintain efficiency, the algorithm employs a "near-active" constraint strategy. Instead of calculating the impact of every single constraint, it focuses only on those the system is currently close to violating. This drastically reduces the mathematical overhead of each step.

3. Safe Step Length and Tightening

To ensure the algorithm does not inadvertently step out of bounds due to estimation errors, SZO-LP utilizes a "tightening constant." This constant acts as a safety buffer, keeping the next iteration well within the feasible region. The researchers have mathematically proven that, under mild conditions, this process converges to a Karush–Kuhn–Tucker (KKT) pair, the standard benchmark for optimality in constrained optimization.

Experimental Evaluation: The IEEE 30-Bus System

The researchers benchmarked SZO-LP using the IEEE 30-bus system, a standard model for Optimal Power Flow (OPF) problems. The task involved allocating power generation to minimize costs while adhering to 158 constraints involving voltage and transmission limits across 11 decision variables.

Performance Comparison

SZO-LP was compared against several state-of-the-art methods, including SZO-QQ, LB-SGD, and Extremum Seeking. The results highlighted two primary advantages:

  • Computational Speed: SZO-LP solved the first 60 subproblems in just 5.63 seconds. In contrast, SZO-QQ required 72.06 seconds for the same task, making SZO-LP more than 12 times faster.
  • Sample Efficiency: SZO-LP reached a near-optimal generation cost (approximately 800.14) with significantly fewer system queries than LB-SGD or Extremum Seeking.

Key Insights

SZO-LP overcomes the "boundary slowdown" common in log-barrier methods, which often stall as they approach a constraint. By using linear approximations and tightening constants, SZO-LP remains efficient even when the optimal solution lies directly on the edge of the safe zone. Furthermore, the transition from QCQPs to LPs proves that high-quality results do not require heavy computational subproblems, provided the constraints are managed intelligently.

Limitations and Future Work

While SZO-LP represents a significant step forward, it currently relies on the availability of Lipschitz constants—values that define the maximum rate of change for the system's functions. Estimating these accurately is vital for safety. Additionally, the current framework assumes perfect, noise-free measurements. Future research will focus on adapting SZO-LP to handle the stochastic noise inherent in real-world sensor data and establishing formal upper bounds on iteration complexity to provide guarantees on convergence speed.

Summary updated

BibTeX
@inproceedings{guo2023safe,
  author = {Baiwei Guo and Yang Wang and Yuning Jiang and Maryam Kamgarpour and Giancarlo Ferrari-Trecate},
  title = {{Safe Zeroth-Order Optimization Using Linear Programs}},
  booktitle = {CDC},
  year = {2023},
  url = {https://openreview.net/forum?id=r7oYaWJRIG},
}
Figure