Safe non-smooth black-box optimization with application to policy search

Ilnura Usmanova, Andreas Krause, Maryam Kamgarpour

Presented at the 2nd Annual Conference on Learning for Dynamics and Control (L4DC 2020), this research addresses the high-stakes problem of optimizing systems without a mathematical model while ensuring zero safety violations during the learning process.

Introduction

In real-world scenarios like autonomous driving or robotics, we aim to optimize performance subject to strict safety limits. However, practitioners often face three major hurdles: the black-box nature of systems where only noisy outputs are visible, non-smoothness in system behavior, and safety-criticality, where exploring unsafe regions is prohibited.

Existing methods like Bayesian Optimization often struggle with high-dimensional problems, while standard derivative-free methods frequently ignore safety constraints. This paper introduces ZeLoBa (Stochastic Zero-th Order Logarithmic Barrier Method), a gradient-based approach that is both safe and computationally tractable for non-smooth problems.

The ZeLoBa Algorithm

ZeLoBa finds local optima for non-convex, non-smooth black-box problems while guaranteeing safety with high probability. Its key components include:

  • Smoothed Log-Barriers: The algorithm uses a penalty "barrier" to prevent iterates from approaching constraints. A smoothed version ensures the mathematical properties remain well-behaved despite underlying non-smoothness.
  • Zeroth-Order Gradient Estimation: Since analytical derivatives are unavailable, ZeLoBa estimates gradients by sampling noisy function values in a small sphere around the current point (randomized finite differences).
  • Adaptive Safety Buffer: To handle measurement noise, the algorithm calculates a lower confidence bound on the distance to the safety boundary, ensuring the system stays within the safe zone even with imperfect data.
  • Adaptive Step Size: A specific logic ensures the "repulsive force" from the safety barrier is strong enough to keep the system feasible.

Theoretical Guarantees

A core insight of the paper is that near the boundary of the safe set, the gradient of the log-barrier becomes sufficiently large to counteract noise in the gradient estimation. This allows for provable safety throughout the optimization process.

Comparison of ZeLoBa with existing literature. ZeLoBa provides the first complexity bounds for non-smooth, safe problems with 1-point bandit feedback.

As shown in the comparison table above, ZeLoBa achieves a measurement complexity of $O(d^2/\eta^9)$ to reach an $\eta$-approximate local optimum (KKT point). While the $1/\eta^9$ term is high—the "price" for handling non-smoothness and noise—the $d^2$ scaling makes it more promising for complex systems with many parameters than methods that scale exponentially with dimensions.

Empirical Evaluation

The authors evaluated ZeLoBa using a Simulated Unicycle Dynamics model, a standard robotics benchmark. The task required a robot to navigate from a starting point to a goal while avoiding an unknown circular obstacle, using only noisy measurements.

Empirical results for unicycle navigation. The right panels show trajectories successfully avoiding the obstacle (blue circle) to reach the goal (green star). The left panels show the convergence of the constraint function $f^c$ and objective $f^0$ across different noise levels ($\eta$).

In 20 different trials, ZeLoBa successfully found an optimal path to the goal. Crucially, zero safety violations occurred during the learning process, even in the presence of significant measurement noise. The results confirm that the algorithm's barrier mechanism effectively maintains safety while seeking the objective.

Conclusion

ZeLoBa represents a significant step forward in safe black-box optimization. While sample efficiency remains a challenge for high-precision requirements, the algorithm's ability to handle non-smoothness with provable safety guarantees offers a robust framework for real-world autonomous systems. Future work may explore improving the $1/\eta^9$ complexity and directly relating smoothed KKT conditions back to the original non-smooth problem.

Summary updated

BibTeX
@inproceedings{usmanova2020safe,
  author = {Ilnura Usmanova and Andreas Krause and Maryam Kamgarpour},
  title = {{Safe non-smooth black-box optimization with application to policy search}},
  booktitle = {L4DC},
  year = {2020},
}
Figure