Recursively Feasible Probabilistic Safe Online Learning With Control Barrier Functions

Fernando Castañeda, Jason J. Choi, Wonsuhk Jung, Bike Zhang, Claire J. Tomlin, Koushil SreenathIEEE Open Journal of Control Systems 2025 · DOI

TL;DR

This paper introduces a novel approach to ensure the safety of complex systems with uncertain dynamics, combining model-based control with online data collection. The core idea is to use Control Barrier Functions (CBFs) within a probabilistic framework that actively learns and adapts to system uncertainties, guaranteeing safe operation with high probability.

What Problem Does This Paper Address?

Deploying learning-based controllers in real-world systems, especially safety-critical ones like autonomous vehicles, requires robust safety guarantees. While Control Barrier Functions (CBFs) are excellent for enforcing safety in systems with known dynamics, they falter when the system's model is imperfect. Traditional methods to handle model uncertainty often rely on conservative worst-case scenarios or require extensive offline data, which isn't always feasible or safe to collect. This creates a dilemma: we need to collect data to ensure safety, but we can't collect data safely without already having sufficient information. This paper tackles this "chicken-and-egg" problem by developing an online learning framework that ensures safety even with unknown dynamics and limited initial data.

Methods

The paper builds upon a previously proposed framework that uses Gaussian Process (GP) regression to estimate the uncertainty in the CBF constraints arising from model mismatch. This leads to a safety-critical controller formulated as a Second-Order Cone Program (SOCP). The key innovation here is an event-triggered online data collection strategy. This strategy continuously monitors a "feasibility measure" derived from the SOCP. If this measure indicates that the current data is insufficient to guarantee safety with high probability, the system triggers a "safe exploration" action. This action involves applying a control input that might not be optimal for the task but is designed to gather crucial data in directions that reduce uncertainty. This ensures that a safe control direction is always available, maintaining the recursive feasibility of the SOCP controller.

Datasets

The paper does not introduce new datasets. Instead, it relies on collecting data online from the system's trajectory during operation. This online data collection is a core component of the proposed algorithm.

Key Insights and Ideas

  • Bridging the Gap: The paper effectively bridges the gap between model-based safety guarantees (CBFs) and the need for data-driven adaptation in uncertain systems.
  • Active Safety Exploration: The concept of "safe exploration" is crucial. Instead of passively collecting data, the system actively seeks out data in directions that are most critical for maintaining safety, especially when uncertainty is high.
  • Feasibility as a Guide: The feasibility of the SOCP controller is used as a direct indicator of whether more data is needed. This is a clever way to link the controller's performance to the data collection strategy.
  • Recursive Feasibility: The event-triggered data collection ensures that the safety controller remains feasible at every time step, leading to a strong guarantee of forward invariance for the safe set.
  • Probabilistic Guarantees: The framework provides safety guarantees with a high probability, acknowledging that absolute certainty is often unattainable in real-world systems.

Key Results

The paper demonstrates through simulations that their proposed algorithm (Algorithm 1) successfully keeps the system safe (maintains the CBF constraint) even under significant model uncertainty and with no prior data. In contrast, standard CBF-based controllers that rely solely on a nominal model or time-triggered data collection fail to maintain safety. The results show that the system can navigate to previously unexplored regions of the state space while maintaining safety with high probability. The framework is validated on both a single-input adaptive cruise control system and a multi-input kinematic vehicle system.

Limitations and Future Work

  • Computational Complexity: The paper acknowledges that as the number of data points (N) grows, the computational cost of updating the kernel matrix inverse can become significant. They suggest that sparse GP methods or smart-forgetting strategies could be employed to address this.
  • Threshold Selection: The choice of the threshold ($\epsilon$) for the feasibility measure ($\lambda^\dagger$) is mentioned as a parameter that might require careful tuning and is a subject for future work.
  • Extension to Stabilization: The authors note that their framework can be extended to include stabilization objectives by adding relaxed probabilistic Control Lyapunov Function (CLF) constraints to the SOCP.
  • Real-World Implementation: While validated in simulation, the practical implementation on real hardware would involve further considerations regarding sensor noise, actuator limitations, and communication delays.

Summary updated

Abstract

Learning-based control has demonstrated great promise for handling complex tasks in various applications. However, ensuring system safety under uncertain dynamics remains a significant challenge. Control Barrier Functions (CBFs) offer mathematical tools for enforcing safety constraints given known system dynamics, yet their guarantees can be lost in the presence of model errors. In this article, we present a framework that combines model-based safety methods with data-driven techniques to guarantee safety recursively for systems with uncertain dynamics. We build upon our previous work, where Gaussian Process (GP) regression was utilized to quantify uncertainty in model-based CBF constraints, resulting in a second-order cone program (SOCP) controller. When the SOCP is feasible at a state, it provides a pointwise probabilistic safety guarantee. A critical innovation we develop further in this work is an eventtriggered online data collection algorithm that actively and safely gathers data to provide the recursive feasibility of the SOCP-based controller. By continuously assessing the sufficiency of data based on the feasibility measure of the SOCP, our method triggers safe exploratory actions when necessary to reduce the uncertainty in critical control directions. This approach ensures that a feasible, safety-preserving control input is always available, thereby establishing forward invariance of the safe set with high probability, even in previously unexplored regions. We validate the proposed framework through two numerical simulation experiments.
BibTeX
@article{castaneda2025recursively,
  author = {Fernando Castañeda and Jason J. Choi and Wonsuhk Jung and Bike Zhang and Claire J. Tomlin and Koushil Sreenath},
  title = {{Recursively Feasible Probabilistic Safe Online Learning With Control Barrier Functions}},
  journal = {IEEE Open Journal of Control Systems},
  year = {2025},
  doi = {10.1109/ojcsys.2025.3620209},
}
Figure