Safe Time-Varying Optimization based on Gaussian Processes with Spatio-Temporal Kernel

Jialin Li, Marta Zagorowska, Giulia De Pasquale, Alisa Rupenyan, John Lygeros

Introduction

In critical infrastructure and robotics, optimization is rarely a static task. Systems such as chemical reactors, power grids, and autonomous vehicles operate in environments where underlying dynamics and safety constraints evolve over time due to sensor drift, mechanical wear, or external environmental shifts. Traditional Safe Bayesian Optimization (SBO) frameworks, like the original SAFEOPT, typically assume a stationary environment. When applied to time-varying systems, these methods often fail to maintain safety or track the moving optimum.

This paper introduces TVSAFEOPT, a novel algorithm designed for Time-Varying Safe Bayesian Optimization (TVSBO). By integrating spatio-temporal Gaussian Processes (GPs) with robust safety set updates, TVSAFEOPT provides formal guarantees for safety and optimality in non-stationary environments.

Problem Statement: The Challenge of Non-Stationarity

The core challenge in TVSBO is twofold: first, the reward function $f_t(x)$ changes with time $t$; second, the safety constraint $g_t(x) \geq 0$ also shifts. In a static setting, an algorithm can gradually expand its knowledge of the safe region. In a time-varying setting, a previously safe point may become unsafe as the environment evolves.

Existing approaches to time-varying optimization often prioritize tracking the optimum at the expense of safety, or they rely on heuristic "change detection" mechanisms that can be brittle. TVSAFEOPT addresses this by proactively accounting for the maximum possible rate of change in the system, ensuring that exploration never crosses into hazardous territory.

Methodology: TVSAFEOPT

TVSAFEOPT extends the SAFEOPT framework by incorporating temporal awareness into both its predictive model and its safety logic. The algorithm is built upon three primary pillars:

1. Spatio-Temporal Modeling

The algorithm models the unknown functions using Gaussian Processes with a spatio-temporal kernel. This kernel quantifies the correlation between observations across both space and time. This allows the model to naturally "forget" or de-prioritize outdated information, as the correlation between the current state and past measurements decays as time passes.

2. Robust Safety via Lipschitz Continuity

To guarantee safety between sampling steps, the algorithm utilizes prior knowledge of the system's dynamics in the form of Time-Lipschitz constants. These constants represent the maximum possible change in the function value per unit of time. By incorporating these bounds, TVSAFEOPT calculates a "safety margin" that accounts for potential drift between observations.

3. Safe Set Erosion and Expansion

Unlike static SBO, where the safe set only grows as more data is collected, TVSAFEOPT implements a dynamic safe set. At each time step, the algorithm "erodes" the current safe set by the safety margin. This ensures that any point selected for evaluation is guaranteed to remain safe in the subsequent time step, even under worst-case environmental drift. Within this robust safe set, the algorithm identifies "maximizers" to optimize the reward and "expanders" to safely explore and grow the known safe region.

Experimental Evaluation

The researchers evaluated TVSAFEOPT against standard benchmarks and a complex industrial case study to demonstrate its robustness.

Synthetic Benchmark

In a 2D optimization task featuring a moving elliptical safety constraint and a sinusoidally varying reward, TVSAFEOPT demonstrated superior tracking capabilities. Compared to the static SAFEOPT, TVSAFEOPT achieved a 77.3% reduction in cumulative regret. While the static baseline often became trapped in obsolete regions or violated safety constraints as the environment shifted, TVSAFEOPT successfully adapted its safe set to follow the moving target.

Gas Compressor Case Study

The algorithm was further tested on a high-fidelity simulation of a gas compressor station involving three units. This scenario included time-varying demand and machine degradation—a non-stationary process where safety boundaries shift permanently. In this challenging environment, traditional approximate optimization methods resulted in safety violations in up to 97.6% of operations for certain metrics. In contrast, TVSAFEOPT maintained a high safety profile by dynamically shrinking its safe set in response to degradation, ensuring operational integrity despite the shifting constraints.

Theoretical Contributions

The authors provide rigorous theoretical foundations for TVSAFEOPT, establishing its reliability for high-stakes applications:

  • Safety Guarantee: Theorem 2.5 proves that the algorithm maintains safety with high probability, provided the initial safe seed is valid and the Lipschitz constants are accurately specified.
  • Convergence: Theorem 2.6 establishes that if the system eventually reaches a locally stationary state (i.e., the drift ceases), TVSAFEOPT will converge to a near-optimal solution.

Conclusion and Limitations

TVSAFEOPT represents a significant step forward in making Bayesian optimization viable for real-world, dynamic applications. By proactively managing safety through spatio-temporal modeling and safe set erosion, it bridges the gap between theoretical safety and non-stationary reality.

However, several practical challenges remain. The reliance on known Lipschitz constants can be a bottleneck in deployment, as these are often difficult to estimate. Additionally, the computational complexity of GPs poses scaling issues for long-term deployments. Future research into adaptive Lipschitz estimation and sparse GP approximations will be essential for scaling TVSAFEOPT to even more complex, high-dimensional industrial systems.

Summary updated

BibTeX
@inproceedings{li2024safe,
  author = {Jialin Li and Marta Zagorowska and Giulia De Pasquale and Alisa Rupenyan and John Lygeros},
  title = {{Safe Time-Varying Optimization based on Gaussian Processes with Spatio-Temporal Kernel}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=yKvHJJE9le},
}
Figure