# Learning Differentiable Safety-Critical Control using Control Barrier Functions for Generalization to Novel Environments

arXiv: https://arxiv.org/abs/2201.01347 · HTML: https://mlsanity.com/paper/2201.01347/

## Key facts

- Cited by 9 papers in the map (data through 14 Oct 2026).
- Builds on 25 of its 38 references that are in the map.
- First posted on arXiv 4 Jan 2022.

## Builds on (most cited first, 25 of 25)

- [OptNet: Differentiable Optimization as a Layer in Neural Networks](https://mlsanity.com/paper/1703.00443/) (2017)
- [Differentiable Convex Optimization Layers](https://mlsanity.com/paper/1910.12430/) (2019)
- [Meta-Learning with Differentiable Convex Optimization](https://mlsanity.com/paper/1904.03758/) (2019)
- [Control Barrier Functions: Theory and Applications](https://mlsanity.com/paper/1903.11199/) (2019)
- [A Lyapunov-based Approach to Safe Reinforcement Learning](https://mlsanity.com/paper/1805.07708/) (2018)
- [Control Barrier Function Based Quadratic Programs for Safety Critical Systems](https://mlsanity.com/paper/1609.06408/) (2016)
- [Hamilton-Jacobi Reachability: A Brief Overview and Recent Advances](https://mlsanity.com/paper/1709.07523/) (2017)
- [Differentiable MPC for End-to-end Planning and Control](https://mlsanity.com/paper/1810.13400/) (2018)
- [Safe Nonlinear Control Using Robust Neural Lyapunov-Barrier Functions](https://mlsanity.com/paper/2109.06697/) (2021)
- [Learning Control Barrier Functions from Expert Demonstrations](https://mlsanity.com/paper/2004.03315/) (2020)
- [Learning for Safety-Critical Control with Control Barrier Functions](https://mlsanity.com/paper/1912.10099/) (2019)
- [Reinforcement Learning for Safety-Critical Control under Model Uncertainty, using Control Lyapunov Functions and Control Barrier Functions](https://mlsanity.com/paper/2004.07584/) (2020)
- [Safety-Critical Model Predictive Control with Discrete-Time Control Barrier Function](https://mlsanity.com/paper/2007.11718/) (2020)
- [Cautious Adaptation For Reinforcement Learning in Safety-Critical Settings](https://mlsanity.com/paper/2008.06622/) (2020)
- [Enforcing robust control guarantees within neural network policies](https://mlsanity.com/paper/2011.08105/) (2020)
- [Safe Pontryagin Differentiable Programming](https://mlsanity.com/paper/2105.14937/) (2021)
- [PAC-Bayes Control: Learning Policies that Provably Generalize to Novel Environments](https://mlsanity.com/paper/1806.04225/) (2018)
- [Safety Assurances for Human-Robot Interaction via Confidence-aware Game-theoretic Human Models](https://mlsanity.com/paper/2109.14700/) (2021)
- [Learning Constrained Adaptive Differentiable Predictive Control Policies With Guarantees](https://mlsanity.com/paper/2004.11184/) (2020)
- [Safety-Critical Control using Optimal-decay Control Barrier Function with Guaranteed Point-wise Feasibility](https://mlsanity.com/paper/2103.12375/) (2021)
- [Recursive Feasibility Guided Optimal Parameter Adaptation of Differential Convex Optimization Policies for Safety-Critical Systems](https://mlsanity.com/paper/2109.10949/) (2021)
- [Multi-objective Compositions for Collision-Free Connectivity Maintenance in Teams of Mobile Robots](https://mlsanity.com/paper/1608.06887/) (2016)
- [Multi-Rate Control Design Leveraging Control Barrier Functions and Model Predictive Control Policies](https://mlsanity.com/paper/2004.01761/) (2020)
- [Provably Safe Control of Lagrangian Systems in Obstacle-Scattered Environments](https://mlsanity.com/paper/2009.02148/) (2020)
- [Generalization of Safe Optimal Control Actions on Networked Multi-Agent Systems](https://mlsanity.com/paper/2109.09909/) (2021)

## Built on by (most cited first, 9 of 9)

- [Sequential Neural Barriers for Scalable Dynamic Obstacle Avoidance](https://mlsanity.com/paper/2307.03015/) (2023)
- [Differentiable Safe Controller Design through Control Barrier Functions](https://mlsanity.com/paper/2209.10034/) (2022)
- [Learning Control Barrier Functions and their application in Reinforcement Learning: A Survey](https://mlsanity.com/paper/2404.16879/) (2024)
- [Learning Performance-Oriented Control Barrier Functions Under Complex Safety Constraints and Limited Actuation](https://mlsanity.com/paper/2401.05629/) (2024)
- [Multi-Constraint Safe Reinforcement Learning via Closed-form Solution for Log-Sum-Exp Approximation of Control Barrier Functions](https://mlsanity.com/paper/2505.00671/) (2025)
- [Model-Assisted Probabilistic Safe Adaptive Control With Meta-Bayesian Learning](https://mlsanity.com/paper/2307.00828/) (2023)
- [Safety Filter Design for Neural Network Systems via Convex Optimization](https://mlsanity.com/paper/2308.08086/) (2023)
- [Domain Adaptive Safety Filters via Deep Operator Learning](https://mlsanity.com/paper/2410.14528/) (2024)
- [Optimal Parameter Adaptation for Safety-Critical Control via Safe Barrier Bayesian Optimization](https://mlsanity.com/paper/2503.19349/) (2025)

## Abstract (arXiv)

Control barrier functions (CBFs) have become a popular tool to enforce safety of a control system. CBFs are commonly utilized in a quadratic program formulation (CBF-QP) as safety-critical constraints. A class K function in CBFs usually needs to be tuned manually in order to balance the trade-off between performance and safety for each environment. However, this process is often heuristic and can become intractable for high relative-degree systems. Moreover, it prevents the CBF-QP from generalizing to different environments in the real world. By embedding the optimization procedure of the exponential control barrier function based quadratic program (ECBF-QP) as a differentiable layer within a deep learning architecture, we propose a differentiable safety-critical control framework that enables generalization to new environments for high relative-degree systems with forward invariance guarantees. Finally, we validate the proposed control design with 2D double and quadruple integrator systems in various environments.
