Learning Conservative Neural Control Barrier Functions from Offline Data

Ihab Tabbara, Hussein Sibai
5/1/2025
cs.LGcs.FLcs.RO

Official code: tabz23/CCBF (2 stars, Apache-2.0, last commit 2025-09-19).

Abstract

Safety filters, particularly those based on control barrier functions, have gained increased interest as effective tools for safe control of dynamical systems. Existing correct-by-construction synthesis algorithms for such filters, however, suffer from the curse-of-dimensionality. Deep learning approaches have been proposed in recent years to address this challenge. In this paper, we add to this set of approaches an algorithm for training neural control barrier functions from offline datasets. Such functions can be used to design constraints for quadratic programs that are then used as safety filters. Our algorithm trains these functions so that the system is not only prevented from reaching unsafe states but is also disincentivized from reaching out-of-distribution ones, at which they would be less reliable. It is inspired by Conservative Q-learning, an offline reinforcement learning algorithm. We call its outputs Conservative Control Barrier Functions (CCBFs). Our empirical results demonstrate that CCBFs outperform existing methods in maintaining safety while minimally affecting task performance. Source code is available at https://github.com/tabz23/CCBF.

View on arXivView PDF

Code Implementations(1)

tabz23/CCBFOfficial100%
Apache-2.0

Repository for the paper "Learning Conservative Neural Control Barrier Functions from Offline Data"

20PythonSep 18, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{tabbara2025learning,
  title  = {Learning Conservative Neural Control Barrier Functions from Offline Data},
  author = {Ihab Tabbara and Hussein Sibai},
  year   = {2025},
  eprint = {2505.00908},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.00908v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.00908.svg)](https://codeofpaper.com/paper/2505.00908)

Discussion