Synthesis and verification of robust-adaptive safe controllers

Simin Liu, Kai S. Yun, John M. Dolan, Changliu Liu · DOI

This paper, recently published by researchers at Carnegie Mellon University, tackles one of the most persistent challenges in robotics: ensuring a system stays safe even when we don't perfectly understand its underlying physics.

TL;DR

The authors present a new framework for synthesizing and verifying robust-adaptive Control Barrier Functions (raCBFs). By leveraging Sum-of-Squares (SOS) programming, they transform complex safety constraints into solvable convex optimization problems, achieving 100% safety and up to a 55% performance boost over traditional robust methods in systems as complex as a 7D quadrotor.

What Problem Does This Paper Address?

In control theory, Control Barrier Functions (CBFs) are a popular tool for guaranteeing safety. Think of them as a mathematical "fence" that prevents a robot from entering dangerous states. However, standard CBFs require a perfect model of the system.

In the real world, models are rarely perfect. A cartpole might have unknown joint friction, or a quadrotor might face unpredictable drag coefficients (see Figure 1).

Fig. 1: Two of our three test systems: cartpole with unknown joint friction and quadrotor with unknown drag coefficients.

Current solutions usually fall into two camps:

  1. Robust Control: Assumes the absolute worst-case scenario. While safe, it is often "too scared" to move efficiently, leading to poor performance.
  2. Adaptive Control: Tries to learn unknown parameters on the fly. While efficient, it often lacks rigorous mathematical guarantees of safety during the learning process.

This paper bridges that gap, providing a way to automatically generate controllers that are both mathematically guaranteed to be safe and high-performing.

Methods

The authors utilize robust-adaptive Control Barrier Functions (raCBFs). These functions are unique because they depend on both the robot's state and an online estimate of the unknown parameters.

The core technical contribution is the use of Sum-of-Squares (SOS) programming. SOS is a powerful optimization framework that allows researchers to prove that a polynomial is non-negative everywhere. The authors developed new theories to translate the complex, non-linear requirements of an raCBF into a series of SOS constraints.

For synthesis (creating the controller), they propose an iterative algorithm (Algorithm 1) that alternates between:

  • Finding the largest possible "safe zone" (invariant set).
  • Optimizing the raCBF parameters to ensure the system stays within that zone.

This approach allows the controller to exhibit selective conservatism: it only becomes highly conservative when the robot is near danger or when parameter uncertainty is high. As the system learns the unknown parameters, the "fence" can safely expand.

Datasets

The researchers evaluated their approach using three simulated physical systems, which serve as benchmarks for safety-critical control:

  1. Toy 2D System: A simple nonlinear system used to validate the core theory.
  2. Cartpole (4D/5D): A classic control problem involving a pole balanced on a moving cart, with unknown joint friction.
  3. Planar Quadrotor (7D): A more complex system representing a drone with unknown drag coefficients in both the x and y directions.

Key Insights and Ideas

  • Scalability: While previous methods for synthesizing safe controllers often hit a "curse of dimensionality" wall at 5 dimensions, this SOS-based approach successfully scaled to a 7D quadrotor system.
  • Learning-Enabled Safety: Unlike purely robust methods, raCBFs assume parameter estimation is happening. This allows the controller to be less conservative than a standard robust CBF (rCBF) because it knows it will get better information over time.
  • Intuitive Invariant Sets: The synthesized raCBFs produce safe sets that make physical sense. For the cartpole, the safe set is larger when friction is low (making the pole easier to control) and smaller when friction is high (see Figure 3).
Fig. 3: Note the significant increase in size from the initial to final invariant sets. Also, observe that the final raCBF depends on ˆθ in an intuitive way.

Key Results

The raCBF approach was compared against a state-of-the-art robust baseline (rCBF).

  • 100% Safety: In 200 random trials for each system, the raCBF-filtered controllers never allowed the system to leave the safe set, even under adversarial conditions.
  • Performance Gains: Because the raCBF is less conservative, it allows the robot to complete tasks faster.
  • The cartpole reached its goal 7.01% faster than the robust baseline.
  • The quadrotor showed a massive 54.95% improvement in trajectory tracking error compared to the robust baseline.

As shown in Figure 6, the raCBF adapts its parameter estimates ($\hat{\theta}$) online, allowing the pole angle ($\psi$) to oscillate more freely while remaining strictly within the safety bounds.

Fig. 6: Analysis of parameter estimation for cartpole’s per- formance test.

Limitations and Future Work

The primary limitation acknowledged is that the current framework assumes constant unknown parameters. In many real-world scenarios, parameters like mass or friction might change over time (e.g., a drone dropping a payload). The authors identify extending this synthesis to systems with time-varying unknown parameters as a key direction for future research. Additionally, while 7D is a significant step forward, further work is needed to scale these SOS methods to even higher-dimensional robotic systems.

Summary updated

Abstract

Safe control with guarantees generally requires the system model to be known. It is far more challenging to handle systems with uncertain parameters. In this paper, we propose a generic algorithm that can synthesize and verify safe controllers for systems with constant, unknown parameters. In particular, we use robust-adaptive control barrier functions (raCBFs) to achieve safety. We develop new theories and techniques using sum-of-squares that enable us to pose synthesis and verification as a series of convex optimization problems. In our experiments, we show that our algorithms are general and scalable, applying them to three different polynomial systems of up to moderate size (7D). Our raCBFs are currently the most effective way to guarantee safety for uncertain systems, achieving 100% safety and up to 55% performance improvement over a robust baseline.
BibTeX
@inproceedings{liu2024synthesis,
  author = {Simin Liu and Kai S. Yun and John M. Dolan and Changliu Liu},
  title = {{Synthesis and verification of robust-adaptive safe controllers}},
  booktitle = {ECC},
  year = {2024},
  doi = {10.23919/ecc64448.2024.10590909},
}
Figure