Abstract
Safe Optimization (SafeOP) addresses problems where a single constraint violation can lead to catastrophic failure or irrevocable loss. While Gaussian Process (GP) methods have dominated this field by providing mathematical safety guarantees, Evolutionary Algorithms (EAs) have remained largely unexplored in this context. This paper evaluates the performance of EAs against state-of-the-art GP-based optimizers using a novel benchmarking framework. The results reveal a significant trade-off: while EAs are inherently riskier, they demonstrate superior capability in navigating complex, multimodal landscapes where GP methods often fail due to overly conservative safety constraints.
Introduction
In high-stakes domains such as clinical trials, autonomous vehicle tuning, or industrial engine calibration, optimization is constrained by the necessity of safety. In these "Safe Optimization Problems" (SafeOPs), evaluating a candidate solution that violates a safety threshold results in an "irrevocable loss"—be it hardware damage or patient harm.
Historically, the Machine Learning community has addressed these risks using Gaussian Processes (GPs), which rely on probabilistic modeling and assumptions of smoothness (Lipschitz continuity) to infer safe regions. Conversely, the Evolutionary Computation (EC) community has focused on global exploration, often at the expense of strict safety. This study bridges the gap between these two fields, providing a formal framework to determine if EAs can serve as viable, or even superior, safe optimizers.
Methodological Approaches
The study compares two distinct algorithmic philosophies for handling safety:
1. Safe EAs (Violation Avoidance)
The primary EA tested utilizes a Violation Avoidance (VA) strategy. This is a model-free heuristic: when generating offspring, the algorithm inspects the "nearest neighbor" in its search history. If that neighbor was previously identified as unsafe, the offspring is rejected and regenerated. This approach prioritizes exploration while using historical data to mitigate risk.
2. Safe GPs (Mathematical Guarantees)
GP-based algorithms, such as SafeOpt and Safe-UCB, construct a probabilistic model of the search space. They rely on the assumption of $L$-Lipschitz continuity—a mathematical bound on how quickly the function can change. This allows the algorithm to define a "safe set" of points that are guaranteed to be above the safety threshold before they are ever evaluated.
To establish a baseline, the researchers also included an "UnsafeEA" to quantify the specific impact of safety mechanisms on performance.
Experimental Setup and the SOAB Framework
To facilitate a rigorous comparison, the authors developed the Safe Optimization Algorithm Benchmarking (SOAB) framework, an open-source Python tool. This framework was used to adapt classic optimization benchmarks into SafeOPs:
- The Sphere Function: A simple, unimodal landscape used to evaluate basic convergence and safety maintenance.
- The Styblinski-Tang Function: A complex, multimodal landscape with multiple peaks and valleys. This function tests an algorithm's ability to explore "islands" of safety without falling into unsafe regions between them.
Safety was defined by a threshold $h$ based on percentiles of objective values; for instance, a 95th percentile threshold restricts the safe search space to only the top 5% of possible values.
Key Insights
The "Bravery" vs. "Caution" Trade-off
EAs are naturally more explorative. Because they lack strict mathematical safety guarantees, they are more likely to "jump" across unsafe regions to discover global optima. GPs, by contrast, are extremely cautious. While this makes them safer in the short term, it often leads to them becoming "stuck" in local safe zones, unable to expand their knowledge of the landscape.
The Lipschitz Achilles' Heel
GP-based safety is highly dependent on an accurate estimate of the Lipschitz constant ($L$). In real-world applications, $L$ is rarely known. If the estimate is too conservative, the GP will not explore; if it is too aggressive, the safety guarantees fail. EAs bypass this requirement entirely, making them more robust in environments where the underlying function's smoothness is unknown.
Connectivity and Multimodality
In landscapes where safe regions are disconnected (islands separated by unsafe territory), GP methods almost universally fail to find the global optimum because they cannot mathematically justify moving through an unsafe region to reach a new safe one. EAs, specifically those using the VA strategy, proved much more effective at navigating these "disjoint" safe sets.
Results and Performance
- Global Optimization: On the Styblinski-Tang function, EAs significantly outperformed GP-based optimizers as the safety threshold became more stringent. GPs frequently failed to leave the initial safe region.
- Safety Reliability: In "zero-budget" failure scenarios, SafeOpt and Safe-UCB remained the most reliable on simple landscapes. However, the Violation Avoidance (VA) EA emerged as a powerful middle ground—offering better safety than a standard EA while maintaining higher solution quality than GP methods.
- Initial Knowledge: Interestingly, providing more "initial safe seeds" helped GPs build better models, but actually increased violations in EAs. Larger initial populations in EAs led to more aggressive exploration and, consequently, more frequent boundary testing.
Conclusion and Future Directions
While GP methods remain the gold standard for scenarios where any violation is unacceptable and the landscape is relatively simple, EAs are surprisingly competitive and often superior for complex, multimodal global optimization. The study suggests that the EC community has much to offer the field of safe optimization.
Future research should focus on developing more sophisticated safety heuristics for EAs beyond simple nearest-neighbor checks. Additionally, hybrid approaches—combining the local safety modeling of GPs with the global exploratory power of EAs—could provide the next generation of robust, safe optimizers. The release of the SOAB framework provides a foundation for the community to continue this exploration.
Summary updated