Adaptive Model Predictive Safety Certification for Learning-based Control - Extended Version

Alexandre Didier, Kim Peter Wabersich, Melanie N. Zeilinger

Learning-based controllers, such as reinforcement learning (RL), have demonstrated remarkable performance in complex tasks. However, their deployment on physical systems is often hindered by a lack of rigorous safety guarantees. This paper presents an adaptive Model Predictive Safety Certification (MPSC) framework that functions as a modular "safety filter." By learning uncertain system parameters online, the framework reduces conservatism over time while maintaining strict zero-constraint-violation guarantees.

The Challenge of Safe Learning

RL agents typically learn through trial and error. In simulation, a drone crashing is a data point; in the real world, it is a catastrophic failure. To bridge this gap, engineers use safety filters based on Model Predictive Control (MPC). These filters intercept the RL agent's proposed actions and override them with the "closest" safe alternative if a constraint violation is predicted.

However, existing safety filters often suffer from two main issues:

  1. Conservatism due to Uncertainty: When system dynamics (e.g., unknown payload mass, wind resistance) are unknown, filters must assume worst-case scenarios, leading to overly restrictive behavior.
  2. Short Planning Horizons: Real-time constraints limit how far ahead a filter can plan, further shrinking the perceived safe operating region.

The Adaptive MPSC Framework

The proposed architecture decouples the learning-based controller from the safety mechanism. The MPSC acts as a supervisory layer that monitors the system state and the controller's proposed inputs.

The Adaptive MPSC framework architecture, showing the interaction between the learning-based controller, parameter estimation, and the safety filter.

As shown in the architecture diagram, the framework consists of four primary components:

  • Set-Membership Estimation: Instead of a fixed worst-case bound, the system maintains a set of possible parameters. As data is collected, impossible parameters are mathematically eliminated, shrinking the uncertainty set.
  • Adaptive Safety Filtering: The MPSC solves an optimization problem at each step to match the RL agent's input as closely as possible, provided a robust "tube" (a backup trajectory) exists that remains safe for all parameters in the current uncertainty set.
  • Terminal Safe Set Enlargement: To mitigate short horizons, the system iteratively expands its "terminal safe set" by taking the convex hull of previously verified safe trajectories.
  • Homothetic Tubes: The use of homothetic tube formulations ensures that complex safety checks remain computationally tractable, allowing for real-time execution.

Visualizing Adaptation

The core strength of this approach is its ability to "expand the playground" for the learning agent as it gains confidence in its model of the world.

Visualization of the shrinking parameter uncertainty set (bottom) and the corresponding growth of the feasible safe set (top) over time.

As illustrated above, the initial uncertainty set $\Theta_0$ is large, resulting in a relatively small safe set $X_{\text{feas}}(\Theta_0)$. As the system operates, the parameter set shrinks (from $\Theta_4$ to $\Theta_{150}$), which directly allows the feasible safe set to expand. This reduction in uncertainty allows the RL agent more freedom to explore and optimize performance without risking safety.

Key Results and Scalability

The method was evaluated on mass-spring-damper (MSD) systems of varying complexity:

  • Increased Safe Volume: For a 3-element system, the combination of parameter estimation and terminal set enlargement resulted in a 28% increase in the safe operating volume compared to non-adaptive baselines. In an 8-element system (16 state dimensions), the volume increased by 120%.
  • Real-Time Performance: The optimization problems solved in an average of 6ms for the 3-element system and 340ms for the 8-element system, confirming the framework's viability for high-frequency control loops.
  • Reduced Intervention: Qualitative analysis indicates that the adaptive filter intervenes significantly less often than standard robust filters, allowing the learning-based controller to dictate system behavior more frequently as the model improves.

Conclusion and Future Directions

Adaptive MPSC provides a robust path for deploying high-performance learning controllers on safety-critical hardware. By learning from experience to reduce conservatism, it bridges the gap between theoretical safety and practical performance. Future work aims to extend these guarantees to more complex nonlinear systems and to further optimize the computational handling of high-dimensional uncertainty sets.

Summary updated

BibTeX
@inproceedings{didier2021adaptive,
  author = {Alexandre Didier and Kim Peter Wabersich and Melanie N. Zeilinger},
  title = {{Adaptive Model Predictive Safety Certification for Learning-based Control - Extended Version}},
  booktitle = {CDC},
  year = {2021},
  doi = {10.1109/cdc45484.2021.9682832},
}
Figure