Safe Control Under Input Limits with Neural Control Barrier Functions

Simin Liu, Changliu Liu, John Dolan

Abstract

We propose a novel machine-learning framework to synthesize control barrier function (CBF) based safe controllers that explicitly account for input saturation. Actuator limits are a common cause of safety violations in robotics, as traditional CBF theories often assume unbounded control authority. Our method employs a learner-critic architecture to design Neural Control Barrier Functions (NCBFs) that scale to high-dimensional, nonlinear systems—such as a 10D quadcopter-pendulum—achieving nearly 100% safety where traditional hand-designed methods fail.

Introduction

In robotics, safety is typically defined as maintaining the system state within a designated safe region. Control Barrier Functions (CBFs) are a standard tool for enforcing these constraints. However, a significant limitation of traditional CBF theory is the assumption of unbounded control inputs. In practice, actuators have physical limits (saturation). When a safety maneuver requires input beyond these limits, the safety guarantee is lost, often leading to catastrophic failure.

Designing CBFs that explicitly account for input saturation is challenging, especially for high-dimensional nonlinear systems. While Hamilton-Jacobi (HJ) Reachability offers formal guarantees, it is computationally intractable for systems beyond 6-7 dimensions. This work introduces a scalable machine-learning framework to automate the synthesis of non-saturating safe controllers for complex systems.

Methodology: Neural Control Barrier Functions

The proposed framework utilizes a learner-critic architecture to synthesize a Neural CBF (NCBF).

  1. NCBF Architecture: The NCBF is structured as a modification of a "limit-blind" safety specification, ensuring the learned function remains smooth and respects the original safe region boundaries.
  2. The Critic: This component identifies "counterexamples"—states on the safe set boundary where the system is most likely to saturate. It employs projected gradient descent to find states with the highest "saturation risk."
  3. The Learner: The learner updates the neural network parameters to minimize the saturation risk identified by the critic.
  4. Vertex Optimization: For control-affine systems with polytopic input limits, the authors demonstrate that the optimal control input to prevent saturation occurs at the vertices of the input set. This "vertex trick" converts a continuous optimization into a discrete, differentiable check, enhancing training efficiency.
  5. Volume Regularization: To ensure the safe set remains useful, a regularization term encourages the learner to maximize the volume of the safe region.

Experimental Evaluation

The method was evaluated on a simulated 10D state, 4D input quadcopter-pendulum system. This system requires balancing a pendulum while managing the quadcopter's roll and pitch within strict limits, representing a significant challenge for traditional methods.

2D slices of the 10D safe set for the quadcopter-pendulum system across different state variables.

Comparative Performance

The NCBF was compared against a hand-designed CBF and a Safe Model Predictive Control (MPC) baseline. The results demonstrate that the NCBF significantly outperforms traditional approaches in both safety and utility.

Quantitative comparison of safety rates, saturation avoidance, and safe set volume across different methods.
  • Safety and Saturation: The NCBF achieved nearly 100% safety across various nominal controllers. On the boundary of the safe set, 99% of states were non-saturating, compared to only 78.68% for the hand-designed CBF.
  • Safe Set Volume: While Safe MPC maintained high safety, its safe set was extremely restrictive, occupying only 8% of the volume found by the NCBF. The NCBF provides a much larger operational envelope for the robot.

Conclusion

By framing CBF synthesis as a min-max optimization problem, this approach scales to high-dimensional systems that were previously inaccessible to formal reachability methods. While the current model assumes deterministic dynamics, the empirical results demonstrate a significant leap in safety and utility for complex robotic platforms. Future work will focus on incorporating modeling uncertainty and providing formal verification for the learned neural networks.

Summary updated

BibTeX
@inproceedings{liu2022safe,
  author = {Simin Liu and Changliu Liu and John Dolan},
  title = {{Safe Control Under Input Limits with Neural Control Barrier Functions}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=H7pko7pAuD},
}
Figure