Safety Index Synthesis via Sum-of-Squares Programming

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

TL;DR

Designing safety indexes (like control barrier functions) for robots with strict actuator limits usually requires tedious hand-tuning or computationally heavy global optimization. This paper introduces a scalable framework that shifts the focus from global safety constraints to local manifold positiveness on the safety boundary. By leveraging algebraic geometry (Positivstellensatz), the authors reduce the synthesis problem to a single, easily solvable nonlinear program that scales efficiently to high-dimensional systems like 14-DOF robot arms.

What Problem Does This Paper Address?

Safe control algorithms—such as the Safe Set Algorithm (SSA) or Control Barrier Functions (CBFs)—use energy-like functions to keep robots away from danger. If the system gets too close to an unsafe state, the controller applies a counter-input to dissipate this "energy" and maintain safety.

However, real-world robots have physical control limits (e.g., maximum motor torque or acceleration limits). If a safety index is designed without accounting for these bounds, the controller might demand an action the robot physically cannot execute. This leads to actuator saturation, causing the safety guarantees to break down entirely, as illustrated in the control limit mismatch shown below:

The manifold of safety index and sets of safe control.

Existing automated synthesis methods using Sum-of-Squares Programming (SOSP) try to guarantee the existence of a safe control input everywhere in the entire state space (global positiveness). This approach is overly conservative, computationally brutal, and typically limited to simple polynomial systems, making it fail to scale to complex, high-dimensional robotic systems.

Methods

The authors introduce a three-fold strategy to overcome these limitations:

  1. Local Manifold Positiveness: The core insight is that a safe control input doesn't need to exist everywhere in the state space—only at the boundary where the safety index hits zero ($\phi = 0$). This drastically reduces conservatism.
  2. Polynomial Substitutability: Standard SOSP requires purely polynomial dynamics. The authors introduce "substitutable functions," allowing them to map non-polynomial terms common in robotics (like $\sin\theta$ and $\cos\theta$) into a higher-dimensional polynomial manifold (e.g., substituting them with variables $a, b$ subject to $a^2 + b^2 = 1$).
  3. Positivstellensatz to Nonlinear Programming (NLP): By defining a "refute set" (the set of states where no safe control input exists) and applying the Positivstellensatz theorem from algebraic geometry, they prove that ensuring safety is equivalent to showing this refute set is empty. They simplify this complex formulation into a single NLP problem that can be solved efficiently using off-the-shelf solvers (like MATLAB's fmincon).

Datasets

No static datasets were used in this paper. Instead, the method was evaluated using simulated numerical studies of physical systems:

  • n-DOF Robot Manipulators: Simulated 2D robot arms ranging from 2 to 14 degrees of freedom (DOF) tasked with avoiding a wall obstacle.
  • Autonomous Vehicle: A 4-state unicycle model navigating around a static circular obstacle.

Key Insights and Ideas

  • Less is More (Local vs. Global): By enforcing safety constraints only on the local manifold ($\phi=0$) rather than globally, the algorithm searches a much larger, less conservative solution space. This makes finding a valid safety index much easier.
  • Beating the Curse of Dimensionality: Standard SOSP methods suffer from exponential complexity growth. Remarkably, because this method optimizes a single NLP formulation, its computation time scales logarithmically with the system's degrees of freedom.

Key Results

The framework was rigorously tested across 1000 random seeds for various robot configurations:

  • 100% Safety Validation: The synthesized safety indexes achieved 100% validness across all test cases, meaning a valid, non-saturating safe control input was always guaranteed to exist.
  • High-Dimensional Efficiency: The method successfully synthesized safety indexes for highly complex systems. As shown in the robot arm setup below, the system scaled up to 14 joints:
nDOFs robot manipulator.
  • Logarithmic Scaling: Computation times were exceptionally low: just 0.160 seconds for a 2DOF arm and only 0.422 seconds for a 14DOF arm. As demonstrated in the performance metrics, the execution time closely follows an $O(\log n)$ complexity curve rather than a linear or exponential one:
SOS running time in comparison with time complexities of O(n) and O(log n).

Detailed quantitative metrics across the robot arm trials are documented in the paper's primary results table:

TABLE I: The performance of safety index design via SOS programming with 1000 random seeds (Robot Arms).

Limitations and Future Work

The primary limitation of this work is that it relies on white-box analytical dynamics. The user must have precise mathematical equations of the system (e.g., $f(x)$ and $g(x)$) to perform the polynomial substitution and set up the SOSP constraints.

For future work, the authors point out that extending this local manifold positiveness framework to black-box or uncertain dynamics (where the system equations are unknown or learned from data) is a crucial next step for real-world deployment.

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