Safety Filter for Robust Disturbance Rejection via Online Optimization

Joyce Lai, Peter J. Seiler · DOI

Abstract

Online Convex Optimization (OCO) is a powerful tool for canceling unknown disturbances in high-precision systems, but it can easily become unstable if the physical model is slightly inaccurate. This paper introduces a "safety filter" that sits between the optimizer and the system, providing a mathematically guaranteed stability "guardrail" by minimally adjusting control commands through a simple, computationally efficient saturation rule.

Introduction

In high-precision control applications, such as satellite pointing or robotic surgery, engineers often employ Adaptive Finite Impulse Response (FIR) filters to learn and cancel vibrations or disturbances in real-time. Modern techniques like Recursive Least Squares (RLS) or regret-based OCO are highly effective because they adapt to the disturbance spectrum dynamically.

However, these algorithms typically assume a perfectly modeled "plant" (the physical system). In practice, model uncertainty—such as shifted resonance frequencies—is inevitable. When an aggressive OCO algorithm attempts to cancel a disturbance based on an inaccurate model, it can inadvertently create a positive feedback loop, leading to catastrophic instability.

Instability of standard AFDR under model uncertainty

As shown in the figure above, while the nominal system remains stable, the uncertain system experiences divergence once the Adaptive FIR Disturbance Rejection (AFDR) is activated. Existing safety methods, like Control Barrier Functions (CBFs), are often ill-suited for ensuring robust stability in the face of such frequency-domain uncertainty.

Methodology

The authors bridge the gap between robust control and online optimization by modeling the system using a Linear Fractional Transformation (LFT). This framework represents the system as a feedback interconnection of a nominal plant, a bounded uncertainty block ($\Delta$), and the adaptive FIR filter.

Architecture of the proposed safety filter within an LFT framework

The core of the approach relies on the Scaled Small Gain Theorem to define a "safe set" of FIR coefficients. By ensuring coefficients remain within this set, the system is guaranteed stable for all uncertainties within a specified bound. A key innovation is the use of the induced $\ell_\infty$-norm (peak-to-peak) rather than the $\ell_2$-norm, which allows for an explicit, closed-form solution.

The resulting safety filter solves an optimization problem to find the control command closest to the OCO's suggestion that still satisfies the stability constraint. Crucially, this simplifies to a time-varying saturation rule: the filter calculates a maximum allowable magnitude ($r_{max}$) based on signal history and "clips" the OCO command if it exceeds this bound. This "saturation shortcut" ensures minimal intervention, preserving performance when the system is safe.

Experimental Evaluation

The approach was evaluated using a high-fidelity simulation of a rigid body motion system with flexible dynamics. The evaluation involved a nominal plant, an uncertain plant perturbed by a specific error function, and a set of 100 randomly generated uncertain plants to test statistical robustness. The study compared a standard PID controller, an unshielded RLS-based adaptive controller, and the proposed Safety Filter.

Scenario PID Only RLS-AFDR (No Filter) RLS-AFDR + Safety Filter
Nominal Plant 0.2734 (Std Dev) 0.0647 0.0876
Uncertain Plant 0.2734 Unstable ($\infty$) 0.0920

The results demonstrate that while the raw RLS algorithm caused the uncertain system to fail, the Safety Filter maintained stability. Furthermore, the filtered system achieved a standard deviation of 0.0920, nearly three times better than the baseline PID controller (0.2734).

Conclusion

The proposed safety filter provides a robust guardrail for online optimization in control systems. While slightly conservative in nominal cases due to its worst-case design, it prevents catastrophic failure under model uncertainty. Future work will explore integrating these robust constraints directly into the OCO's internal learning cost function to further optimize the robustness-performance trade-off.

Summary updated

BibTeX
@article{lai2025safety,
  author = {Joyce Lai and Peter J. Seiler},
  title = {{Safety Filter for Robust Disturbance Rejection via Online Optimization}},
  journal = {Eur. J. Control},
  year = {2025},
  doi = {10.1016/j.ejcon.2025.101337},
}
Figure