Uncertainty Aware Control Barrier Functions for Safe Learning

138 concepts105 papers1 proposal

When deploying autonomous systems in the real world, safety is non-negotiable. Traditional control theory provides a powerful tool for guaranteeing safety: Control Barrier Functions (CBFs). A CBF mathematically defines a "safe set" of states (like keeping a drone a minimum distance away from walls) and acts as a safety shield. If a controller tries to command an action that would exit this safe set, the CBF filter overrides the command, forcing the system to remain safely inside the boundary.

However, classical CBFs rely on a fatal assumption: perfect knowledge of the system's dynamics. If a robot is navigating an unknown environment, experiencing unexpected wind gusts, or relying on imperfect neural network perception, its model of the world is flawed. If a safety filter treats an inaccurate model as absolute truth, the system will miscalculate its safety margins and potentially crash.

To bridge this gap, researchers have developed Uncertainty-Aware Control Barrier Functions. The core intuition behind this direction is simple: when the system is uncertain about its dynamics or environment, it must proactively tighten its safety boundaries. As the system learns and becomes more confident, these boundaries can safely relax.


The Core Mechanism: Constraint Tightening

To understand why this approach works, consider how a standard CBF operates. It evaluates the time derivative of a safety function, $\dot{h}(x, u)$, which dictates how a control input $u$ affects the system's progression toward a boundary. Because $\dot{h}$ depends directly on the system dynamics, any model error propagates into the safety evaluation.

Uncertainty-aware control handles this by modifying the optimization constraints through a technique known as constraint tightening. Instead of drawing the safety boundary right at the physical edge of an obstacle, the controller subtracts a safety buffer that scales with the system's uncertainty.

This can be achieved through two primary philosophies:

1. Deterministic Robust Boundaries

If the maximum possible error of a learned model or sensor can be bounded (for instance, via Lipschitz constants or Reproducing Kernel Hilbert Space theory), the controller can plan for the absolute worst-case scenario.

For example, Kehan Long et al. in Safe Control Synthesis with Uncertain Dynamics and Constraints use the Cauchy-Schwarz inequality to establish conservative safety buffers based on known maximum error bounds. Similarly, Vahid Hamdipoor demonstrates in Safe Control Synthesis Using Environmentally Robust Control Barrier Functions that incorporating a deterministic residual term to account for the worst-case error in measured states and gradients guarantees that the system never violates its boundaries, even under noisy environmental conditions.

2. Probabilistic Chance Constraints

Worst-case analysis can sometimes make a robot overly conservative, causing it to freeze in place. A more flexible alternative is to formulate chance constraints, which guarantee safety with a high, user-defined probability (e.g., $99.9\%$).

Li Wang et al. in Safe Learning of Quadrotor Dynamics Using Barrier Certificates pioneered this by incorporating the variance of a probabilistic dynamics model directly into the barrier certificate. By treating the safety boundary as a stochastic variable, the system automatically pushes the robot further away from danger when the variance spikes.


Quantifying the Unknown

To tighten a constraint correctly, the system needs a real-time estimate of its own ignorance. Rather than using standard "black-box" neural networks that output a single guess, this framework relies on probabilistic models that provide both a mean prediction ($\mu$) and a measure of uncertainty or variance ($\sigma^2$).

Gaussian Processes

Gaussian Processes (GPs) are the cornerstone of this direction because they provide mathematically rigorous uncertainty bounds. As shown by Pushpak Jagtap et al. in Control Barrier Functions for Unknown Nonlinear Systems using Gaussian Processes, the predictive variance from a GP can be directly integrated into the CBF formulation. When the robot enters an unmapped region of its state space, the GP's variance increases, which immediately triggers the safety filter to become more cautious.

Neural Network Ensembles

While GPs work exceptionally well for low-dimensional systems, they struggle to scale to complex, high-dimensional systems. To solve this, researchers use ensembles of neural networks to approximate uncertainty. Lukas Brunke et al. leverage this in Optimized Control Invariance Conditions for Uncertain Input-Constrained Nonlinear Control Systems, showing that the variance across an ensemble of networks provides a reliable, real-time safety margin that prevents actuator saturation in highly nonlinear regimes.


Mathematical Realization via Quadratic Programming

The true elegance of uncertainty-aware CBFs lies in their computational efficiency. In safety-critical applications, a robot must calculate its next move in milliseconds.

By utilizing concentration inequalities (such as Gaussian tail bounds or Freedman's inequality), complex probabilistic chance constraints can be mathematically converted into simple, deterministic linear inequalities. For instance, Ryan Kazuo Cosner et al. show in Bounding Stochastic Safety: Leveraging Freedman's Inequality with Discrete-Time Control Barrier Functions that tracking the accumulated variance of disturbances allows for much tighter, less conservative safety bounds than traditional snapshot methods.

Once linearized, these constraints are embedded into a Quadratic Program (QP) safety filter:

$$\begin{aligned} \min_{u} \quad & \|u - u_{\text{desired}}\|^2 \\ \text{s.t.} \quad & A_{\text{safe}}u \le b_{\text{safe}} - \beta \cdot \sigma(x) \end{aligned}$$

Here, $u_{\text{desired}}$ is the command from an aggressive performance controller (like a model-free reinforcement learning agent). The QP acts as a minimal intervention shield: it leaves the command untouched if it is safe, but projects it onto the dynamically tightened safe space if danger is detected.

Richard Cheng et al. successfully deployed this architecture in End-to-End Safe Reinforcement Learning through Barrier Functions for Safety-Critical Continuous Control Tasks, proving that this shield can keep an RL agent perfectly safe during its exploratory training phase, drastically accelerating the learning process by eliminating catastrophic failures.


The Exploration-Exploitation Loop

Ultimately, uncertainty-aware control barrier functions enable a beautiful feedback loop between learning and control:

  1. Cautious Exploration: When a system starts in a new environment, its model uncertainty ($\sigma$) is high. The safety filter tightens the constraints, forcing the system to take small, careful actions.
  2. Data Collection: As the system moves, it gathers real-time data about the true dynamics of the environment.
  3. Uncertainty Reduction: The online learning algorithm updates the model, causing the predictive variance ($\sigma$) to shrink.
  4. Performance Exploitation: As the safety buffer naturally relaxes, the system transitions from a cautious explorer to a high-performance, agile agent.

By explicitly accounting for what the system does not know, Lei Zheng et al. demonstrate in Learning-Based Safety-Stability-Driven Control for Safety-Critical Systems under Model Uncertainties that autonomous systems can safely maximize their performance limits without ever crossing the line into danger.

History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_uncertainty_aware_control_barrier_functi_1d246177,
  title = {uncertainty-aware control barrier functions},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/uncertainty-aware-control-barrier-functions/rdr_1d24617779fe4e32b9fed20d67a42be7},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_uncertainty_aware_control_barrier_functi_1d246177_v1,
  title = {uncertainty-aware control barrier functions},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/uncertainty-aware-control-barrier-functions/rdr_1d24617779fe4e32b9fed20d67a42be7/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake