Safe Control with Minimal Regret

Andrea Martin, Luca Furieri, Florian Dörfler, John Lygeros, Giancarlo Ferrari-Trecate

Abstract

As we move towards safety-critical cyber-physical systems that operate in non-stationary and uncertain environments, it becomes crucial to close the gap between classical optimal control algorithms and modern online learning. This paper introduces a framework for designing control policies that minimize dynamic regret while strictly adhering to hard safety constraints. By leveraging System Level Synthesis (SLS), the authors formulate a tractable Semidefinite Program (SDP) that allows a system to safely adapt to unknown, potentially adversarial disturbances, effectively interpolating between average-case and worst-case performance.

Introduction

In classical control theory, engineers typically design controllers based on specific assumptions about environmental disturbances. $\mathcal{H}_2$ control assumes disturbances are stochastic (e.g., Gaussian noise) and seeks to minimize the expected cost. In contrast, $\mathcal{H}_\infty$ control assumes the environment is actively adversarial, focusing on minimizing the worst-case cost. However, real-world disturbances rarely fit neatly into these categories. When the actual environment deviates from these prior assumptions, both methods can suffer from significant performance degradation.

Online learning offers a potential solution through regret minimization, where an algorithm adapts in real-time to compete with an optimal benchmark in hindsight. However, applying this to physical systems introduces two major hurdles. First, most existing literature focuses on policy regret—competing against the best fixed static policy—which is a weak benchmark for highly dynamic environments. Second, and more critically, standard dynamic regret algorithms lack provable safety guarantees. For safety-critical systems like autonomous drones or chemical reactors, violating physical constraints (e.g., maximum velocity or pressure) during the learning phase is unacceptable. This research addresses these gaps by proposing a controller that minimizes dynamic regret while guaranteeing hard safety constraints.

Methodology

The proposed framework achieves safe, regret-optimal control by integrating robust optimization with System Level Synthesis (SLS). The methodology follows three primary steps:

1. System Level Parameterization

Instead of directly optimizing non-convex controller parameters, the authors utilize SLS to parameterize the closed-loop responses of the system. This approach describes how the state and input react to a disturbance, effectively translating the control design problem into a convex optimization space. This shift is fundamental to making the subsequent regret minimization problem tractable.

2. Defining the Clairvoyant Benchmark

A key contribution of this work is the characterization of the "clairvoyant" controller—the optimal benchmark that knows the entire sequence of future disturbances in advance. The authors demonstrate that this non-causal benchmark can be computed by solving an SLS problem where causality constraints are removed. This provides a rigorous target for the adaptive controller to emulate.

3. Safe Regret-Optimal Synthesis

To find a causal controller that minimizes the worst-case difference in cost (regret) relative to the clairvoyant benchmark, the authors formulate a minimax optimization problem. By applying robust optimization duality, they transform infinite safety constraints—which must hold for all possible disturbances within a bounded set—into a finite set of linear constraints. The resulting synthesis problem is a single-shot Semidefinite Program (SDP) that yields a safe, dynamic regret-optimal controller.

Experimental Results

The authors evaluated the Safe Regret-optimal controller ($\mathcal{SR}_{nc}$) using synthetic numerical simulations of discrete-time linear time-varying dynamical systems. The controller was tested against classical constrained $\mathcal{H}_2$ and $\mathcal{H}_\infty$ baselines across various disturbance profiles, including Gaussian noise, sine waves, sawtooth waves, and adversarial steps.

Performance and Adaptability

The results highlight the superior adaptability of the $\mathcal{SR}_{nc}$ controller. While specialized controllers performed slightly better when disturbances perfectly matched their assumptions (e.g., $\mathcal{H}_2$ was ~10% better on pure Gaussian noise), the regret-optimal controller vastly outperformed them on structured, realistic disturbances. In scenarios involving step functions or sine waves, classical $\mathcal{H}_2$ and $\mathcal{H}_\infty$ controllers incurred cost increases of 40% to over 100% compared to the optimal policy. The $\mathcal{SR}_{nc}$ controller consistently tracked the optimal performance, avoiding these massive penalties.

Safety Verification

Safety was strictly maintained throughout the experiments. Across 1,000 different realizations of uniform disturbance sequences, the $\mathcal{SR}_{nc}$ controller successfully kept all input and state trajectories within the predefined safety bounds. This confirms that the adaptive benefits of regret minimization do not require sacrificing hard physical safety limits.

Conclusion and Future Work

This work demonstrates that dynamic regret minimization provides a powerful bridge between robust and stochastic control, offering a way to design controllers that are both adaptive and safe. By dualizing safety constraints and leveraging SLS, the authors provide a tractable path toward deploying learning-based control in safety-critical applications.

Future research will focus on improving the scalability of the SDP formulation, as current methods may struggle with very large systems or long time horizons. Additionally, extending the framework to infinite-horizon cases and model-free scenarios—where the system dynamics are unknown and must be learned alongside the control policy—remains a promising direction for the field.

Summary updated

BibTeX
@inproceedings{martin2022safe,
  author = {Andrea Martin and Luca Furieri and Florian Dörfler and John Lygeros and Giancarlo Ferrari-Trecate},
  title = {{Safe Control with Minimal Regret}},
  booktitle = {L4DC},
  year = {2022},
  url = {https://openreview.net/forum?id=wezjN3D4ibD},
}
Figure