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

Approximate Predictive Control Barrier Functions using Neural Networks: A Computationally Cheap and Permissive Safety Filter

Alexandre Didier, Robin C. Jacobs, Jerome Sieber, Kim Peter Wabersich, Melanie N. Zeilinger

TL;DR

This paper introduces a method to dramatically speed up Predictive Control Barrier Function (PCBF) safety filters by approximating their computationally heavy components with a neural network. By moving the multi-step trajectory optimization offline, the online safety filter becomes independent of the planning horizon, achieving up to a 58-fold reduction in average computation time while maintaining rigorous safety and convergence guarantees.

What Problem Does This Paper Address?

Learning-based control algorithms, like Reinforcement Learning (RL), excel at finding policies for complex, highly dynamic systems. However, they rarely provide the mathematical safety guarantees required for real-world deployment (e.g., autonomous driving).

To bridge this gap, researchers use predictive safety filters. These filters sit between the controller and the system, checking if a proposed input will violate constraints over a future horizon. If a violation is predicted, the filter modifies the input to the "closest" safe alternative.

Recently, Predictive Control Barrier Functions (PCBFs) improved this concept by introducing soft constraints (slacks) to handle unexpected disturbances or initially infeasible states. The problem? The original PCBF framework requires solving two optimization problems online at every single time step:

  1. Compute the minimal state constraint violations (slacks) over a long prediction horizon.
  2. Compute the safest control input given those slacks.
The original two-step PCBF safety filter framework.

For embedded systems with strict real-time constraints, solving these horizon-dependent optimizations online is simply too slow.

Methods

The authors propose to eliminate the online computational bottleneck by approximating the optimal value function of the first optimization problem (the slack computation) using a neural network (NN).

The Workflow:

  1. Offline Sampling & Learning: The exact PCBF value function ($h_{PB}$) is sampled across the state space by repeatedly solving the optimization problem. A neural network ($\hat{h}_{PB}$) is then trained to approximate this function.
  2. Online Evaluation: The trained neural network replaces the multi-step optimization problem. The safety filter is reduced to a single-step lookahead constraint, making the online computation time independent of the prediction horizon length ($N$).
The proposed approximate PCBF framework using a neural network.

Theoretical Contribution:

Replacing an exact mathematical optimization with a neural network approximation introduces approximation errors. To ensure the system remains safe, the authors derived a novel class $\mathcal{K}$ lower bound on the PCBF decrease function. This mathematical bound allows them to prove that even with a bounded neural network approximation error, the system is guaranteed to converge to a small, predictable neighborhood of the true safe set.

Datasets

The paper does not use standard external datasets. Instead, the authors generated a custom synthetic dataset tailored to an autonomous driving task:

  • Size: 8.9 million data points generated via a rejection sampling scheme.
  • Augmentation: An additional 2 million data points were sampled from a scaled-up version (by a factor of 1.2) of the state constraints to ensure the network learned how to recover from large constraint violations.

Key Insights and Ideas

  • Horizon Independence: By treating the neural network as an explicit Control Barrier Function, the online safety filter only needs to evaluate the system's next-step dynamics, completely decoupling online computation time from the planning horizon.
  • Value Function vs. Policy Learning: Instead of learning the control policy directly (which is often discontinuous and difficult for NNs to map accurately), the authors learn the optimal value function (the PCBF), which is continuous and much better suited for neural network regression.
  • Guaranteed Recovery: The framework explicitly handles states outside the nominal safe set, providing a mathematically backed recovery mechanism to steer the system back into safety.

Key Results

The method was evaluated on a simulated kinematic car model tasked with recovering from large lateral position violations ($y_{off}$).

  • Computation Speedup: The approximate safety filter achieved a 34-fold decrease in minimum solve time and a 58-fold decrease in average solve time compared to the original PCBF approach (reducing average solve time from 176.5 ms to roughly 3.0–3.5 ms).
  • Performance: Both the maximum decrease formulation and a hand-tuned class $\mathcal{K}$ variant successfully steered the destabilized vehicle back into the safe state boundaries.

State trajectories showing successful recovery using the original PCBF filter. State trajectories showing successful recovery using the proposed NN-approximated filter.

Limitations and Future Work

  • Conservativeness vs. Feasibility: To guarantee recursive feasibility, the filter uses a "maximal approximate decrease" formulation which can restrict the available input space, making the filter overly conservative in the presence of NN approximation errors.
  • The Tolerance Trade-off: The authors introduce a tolerance parameter ($\delta_{tol}$) to reduce this conservativeness, but doing so means the system only converges to a neighborhood of the safe set rather than the exact safe set itself.
  • Future Directions: Promising future work includes exploring tighter statistical bounds on the approximation error and investigating architectures that inherently satisfy the required CBF properties without relying purely on data-driven training.

Summary updated

BibTeX
@inproceedings{didier2023approximate,
  author = {Alexandre Didier and Robin C. Jacobs and Jerome Sieber and Kim Peter Wabersich and Melanie N. Zeilinger},
  title = {{Approximate Predictive Control Barrier Functions using Neural Networks: A Computationally Cheap and Permissive Safety Filter}},
  booktitle = {ECC},
  year = {2023},
  doi = {10.23919/ecc57647.2023.10178263},
}
Figure