NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Guaranteeing Safety of Learned Perception Modules via Measurement-Robust Control Barrier Functions

Sarah Dean, Andrew J. Taylor, Ryan K. Cosner, Benjamin Recht, Aaron D. Ames

Abstract

Modern nonlinear control theory seeks to develop feedback controllers that endow systems with properties such as safety and stability. The guarantees ensured by these controllers often rely on accurate state observations. However, in many modern robotic applications, the state is estimated from high-dimensional sensor data using learned perception modules, which can introduce significant errors. This paper introduces Measurement-Robust Control Barrier Functions (MR-CBFs) to bridge this gap, providing formal safety guarantees for nonlinear systems with imperfect perception by incorporating state-estimation error bounds directly into the control synthesis.

Introduction

The integration of learned perception modules, such as neural networks, into robotic control loops has enabled robots to operate in complex environments. However, these modules often lack the formal guarantees required for safety-critical tasks. A small error in state estimation—such as the pitch of a Segway or the position of a drone—can lead a standard controller to take actions that violate safety constraints. This "safety gap" is addressed by the proposed MR-CBF framework, which transforms the control problem into a Second-Order Cone Program (SOCP) to handle deterministic, non-linear errors inherent in learned perception.

Methodology

The authors bridge the gap between machine learning error bounds and formal control methods through three key steps:

  1. MR-CBF Definition: The standard Control Barrier Function (CBF) condition is modified to include a "robustness margin." This margin is calculated based on the Lipschitz constants of the system dynamics and the maximum possible error ($\epsilon$) of the state estimator, ensuring the system stays within a safe set $\mathcal{C}$ despite imperfect observations.
  2. Robust Optimization (MR-OP): Enforcing the MR-CBF condition changes the standard control optimization from a Quadratic Program (QP) into a Second-Order Cone Program (SOCP). SOCPs are convex and can be solved efficiently in real-time, making them suitable for high-frequency robotic control.
  3. Data-Dependent Error Bounds: Using non-parametric regression theory, the framework links the perception module's error to the density of training data. This allows for the calculation of the "maximum tolerable error" for any given state, defining how much data is needed to guarantee safety.

Experimental Evaluation

The framework was evaluated using a simulated robotic Segway platform implemented in ROS. A perception module was trained using Kernel Ridge Regression on a dataset of 800 labeled images to estimate the Segway's pitch and position from a virtual camera.

Segway simulation environment and phase portrait comparison between MR-OP and standard CBF-QP.

Key Results

The MR-CBF controller (MR-OP) demonstrated superior robustness compared to standard CBF-QP controllers. In scenarios with significant measurement bias (e.g., a 0.2-radian offset), the standard controller failed, and the Segway left the safe set. In contrast, the MR-OP controller successfully accounted for the error and maintained safety.

Detailed results showing the phase portrait with error bounds and the evolution of the barrier function over time.

As shown in the results, the MR-OP controller maintains the barrier function $h_b(\mathbf{x}) \ge 0$, ensuring the system stays within the safe set. The phase portrait illustrates how the controller becomes more conservative in regions with higher estimation error, effectively acting as a dynamic safety buffer. The framework also suggests that high-accuracy perception is most critical near the boundaries of the safe set, potentially leading to more efficient data collection strategies.

Conclusion and Future Work

The MR-CBF framework provides a rigorous method for ensuring safety in systems with learned perception. While promising, the current approach assumes a bijective relationship between measurements and states and relies on known Lipschitz constants. Future work will focus on real-world hardware experiments and "safety-aware data acquisition," where the robot autonomously identifies and collects data in regions where safety margins are thin.

Summary updated

BibTeX
@inproceedings{dean2020guaranteeing,
  author = {Sarah Dean and Andrew J. Taylor and Ryan K. Cosner and Benjamin Recht and Aaron D. Ames},
  title = {{Guaranteeing Safety of Learned Perception Modules via Measurement-Robust Control Barrier Functions}},
  booktitle = {Conference on Robot Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=ZCPd-L9Tyzz},
}
Figure