Safety Index Synthesis via Sum-of-Squares Programming

Weiye Zhao, Tairan He, Tianhao Wei, Simin Liu, Changliu Liu · OpenReview

Abstract

Control systems often need to satisfy strict safety requirements. Safety index provides a handy way to evaluate the safety level of the system and derive the resulting safe control policies. However, designing safety index functions under control limits is difficult and requires a great amount of expert knowledge. This paper proposes a framework for synthesizing the safety index for general control systems using sum-of-squares programming. Our approach is to show that ensuring the non-emptiness of safe control on the safe set boundary is equivalent to a local manifold positiveness problem. We then prove that this problem is equivalent to sum-of-squares programming via the Positivstellensatz of algebraic geometry. We validate the proposed method on robot arms with different degrees of freedom and ground vehicles. The results show that the synthesized safety index guarantees safety and our method is effective even in high-dimensional robot systems.

Introduction

In modern robotics, ensuring that a system operates within safe boundaries is paramount. Traditional approaches often rely on "energy-function-based" methods, such as Control Barrier Functions (CBFs) or Safety Indices. These functions $\phi(x)$ map the state space such that safe regions have low values and dangerous regions have high values. A controller's primary task is to ensure that the system's "energy" does not exceed a predefined threshold, effectively keeping the robot within a safe set $\mathcal{X}_S$.

However, two significant challenges hinder the practical application of these methods. First, real-world robots are subject to strict control limits, such as torque or velocity saturation. A poorly designed safety index might lead a robot into a state where, despite being technically "safe," it lacks the control authority to prevent a future collision—a phenomenon known as "inevitable collision states." Second, the design complexity of these indices is high. Manual design requires deep expert intuition, while existing automated synthesis methods using Sum-of-Squares (SOS) programming often fail to scale to high-dimensional systems because they attempt to enforce safety constraints globally across the entire state space.

Methodology: Scalable Safety Synthesis

The proposed framework addresses these challenges by shifting the focus from global safety to local manifold positiveness.

Local Manifold Positiveness

The core insight of this work is that a safety index is valid if a safe control input exists specifically on the boundary of the safe set (where $\phi = 0$). If the robot can always find a control action to push itself back into the safe region when it reaches the edge, global safety is maintained. This relaxation from global to local constraints significantly expands the search space for valid indices and reduces computational overhead.

Illustration of the safety index, safe set, and control limits mapping.

SOS Programming and Substitutable Functions

To automate the synthesis, the authors leverage Sum-of-Squares (SOS) programming. SOS typically requires polynomial dynamics. However, robotic systems often involve non-polynomial terms like sines and cosines. The authors introduce "substitutable functions" to project these dynamics into higher-dimensional polynomial manifolds, making them compatible with SOS solvers.

By applying the Positivstellensatz theorem from algebraic geometry, the problem of finding a valid safety index is transformed into a refutation problem. The authors construct a "refute set"—conditions that, if empty, guarantee the existence of a safe control. This formulation allows the entire synthesis process to be solved as a single-step nonlinear program (NLP) using standard solvers like fmincon, avoiding the iterative, computationally expensive loops required by previous SOS methods.

Experimental Evaluation

The framework was tested on two primary benchmarks:

  1. n-DOF Robot Arms: Planar manipulators with 2 to 14 degrees of freedom (DOF) tasked with avoiding a wall. This test evaluates the method's ability to handle high-dimensional configuration spaces.
  2. 4-State Unicycle: A standard model for autonomous ground vehicles, testing obstacle avoidance capabilities.

Key Results and Discussion

The experimental results demonstrate that the proposed method is both robust and highly scalable.

100% Safety Guarantee

Across 1,000 random trials for all robot configurations (from 2DOF to 14DOF), the synthesized safety indices achieved 100% validness. This means that in every tested scenario, the robot was guaranteed to have at least one safe control action available at the boundary of its safe set, effectively preventing collisions.

Logarithmic Scalability

One of the most impressive findings is the computational efficiency. Traditional SOS methods often suffer from the "curse of dimensionality," with complexity growing exponentially. In contrast, this approach demonstrates a running time that scales logarithmically with the number of robot links.

Computational scalability of the SOS safety index design.

For a complex 14-DOF robot arm, the safety index was synthesized in just 0.422 seconds on a standard laptop. For the unicycle model, synthesis took a mere 0.066 seconds. This level of performance makes the method viable for real-time or near-real-time application in complex industrial environments.

Conclusion and Future Work

This paper presents a significant step forward in automated safety design for robotics. By focusing on the local manifold of the safe set boundary and utilizing efficient SOS programming, the authors provide a framework that handles control limits and high-dimensional systems with ease.

While the current method requires "white-box" analytical dynamics, future research could extend this to "black-box" systems or environments with high uncertainty. Additionally, addressing the combinatorial growth of control limit combinations ($2^{n_u}$) for systems with even more actuators remains an open area for optimization. Nevertheless, the ability to guarantee safety for a 14-DOF system in under half a second represents a major milestone in safe control synthesis.

Summary updated

BibTeX
@inproceedings{zhao2023safety,
  author = {Weiye Zhao and Tairan He and Tianhao Wei and Simin Liu and Changliu Liu},
  title = {{Safety Index Synthesis via Sum-of-Squares Programming}},
  booktitle = {ACC},
  year = {2023},
  doi = {10.23919/acc55779.2023.10156463},
}
Figure