A Unified Stability Analysis of Safety-Critical Control using Multiple Control Barrier Functions
Abstract
Ensuring liveness and safety of autonomous and cyber-physical systems remains a fundamental challenge, particularly when multiple safety constraints are present. This letter advances the theoretical foundations of safety-filter Quadratic Programs (QP) and Control Lyapunov Function (CLF)-Control Barrier Function (CBF) controllers by establishing a unified analytical framework for studying their stability properties. We derive sufficient feasibility conditions for QPs with multiple CBFs and formally characterize the conditions leading to undesirable equilibrium points at possible intersecting safe set boundaries. Additionally, we introduce a stability criterion for equilibrium points, providing a systematic approach to identifying conditions under which they can be destabilized or eliminated. Our analysis extends prior theoretical results, deepening the understanding of the conditions of feasibility and stability of CBF-based safety filters and the CLF-CBF QP framework.
I INTRODUCTION
Due to recent technological advancements, cyber-physical and autonomous systems, including self-driving vehicles and robotics, are becoming increasingly prevalent in our lives. While these systems exhibit higher autonomy levels, the increase in agency also brings more unpredictable and catastrophic failures [2], making it ever more crucial to design controllers that are both performant and provably safe.
The performance of a controller can be associated with its liveness, defined as asymptotic stability towards a set of goal states. On the other hand, safety can be defined as the requirement of forward invariance of the system trajectories with respect to a specified safe set. Combining and guaranteeing the fulfillment of these two requirements is still an open problem. Common approaches are the safety filter architecture [3] and the CLF-CBF minimum-norm controller [1]. In the former, the liveness and safety requirements are decoupled through a performance (nominal) controller that seeks to ensure liveness, while a safety controller modifies the control law to guarantee safety at all times [11], making use of Control Barrier Functions (CBFs) [6] to model the safety requirements. In the latter, safety and liveness are directly combined within an unified control framework [1], using Control Lyapunov Functions (CLFs) and CBFs.
However, it is shown in [8] that due to the conflicting objectives of safety and liveness, the CLF-CBF QP framework can introduce undesirable stable equilibrium points on the safe set boundary. This means that while the framework can guarantee safety, it does not guarantee liveness as the system’s trajectories can get stuck at undesirable equilibrium points, resulting in deadlocks. Research has aimed to mitigate or avoid these deadlocks in both the CLF-CBF framework and CBF-based safety filters.
In [7], a method is proposed to solve the deadlock problem for the safety-filter considering multiple non-convex unsafe regions modeled by CBFs. Undesirable stable equilibria are avoided by using a nonlinear transformation that maps the system state into a new domain called the “ball world”, where all non-convex CBF boundaries are converted into moving -spheres and dynamically avoid the state trajectory. In [8], the authors propose a solution based on a rotating CLF, so that equilibrium points are removed in the case of a single convex unsafe set. The idea of modifying the CLF to avoid deadlocks is latter extended in [9], where the theory of linear matrix polynomials was used to compute a CLF that does not cause deadlocks, considering the class of linear systems and quadratic CLFs and CBFs. Finally, in [5], the authors address the deadlock problem by proposing a learning-based framework that adapts the CBF class function online. Using a probabilistic ensemble neural network (PENN), the framework predicts safety and performance metrics, including deadlock time, which is then minimized to mitigate deadlocks.
This paper builds upon the work [9] and presents a generalized theoretical understanding for the conditions for the formation of undesirable boundary equilibrium points with the CBF-based safety filters and CLF-CBF frameworks for safety-critical control. Particularly:
-
•
Addresses the stability theory for the closed-loop system of affine nonlinear systems with both the safety-filter QP and CLF-CBF mininum-norm QP using a single, generalized QP framework for both safety-critical controllers.
-
•
Derives sufficient conditions for the feasibility of the safety-filter QP and CLF-CBF QP with multiple CBFs.
-
•
Introduces conditions for existence of undesirable equilibrium points that are valid both for the safety-filter QP and for the CLF-CBF QP, considering multiple, possibly overlapping CBF unsafe sets.
-
•
Derives a novel condition for the stability of boundary equilibrium points of this type with a clear geometric intuition.
II PRELIMINARIES
Notation: Given a matrix or vector denotes its -th column and denotes its -th element, while is block matrix with the diagonal stacking of scalars or matrices . Matrix is the identity matrix. is the Lie derivative of a function along a function , that is, . The inner product between two vectors induced by a positive semidefinite matrix is given by . This inner product induces a norm over . The standard inner product is then , with standard Euclidean norm . The orthogonal complement of a subspace is denoted by , with orthogonality dependent on an inner product .
II-A Control Lyapunov (CLFs) and Barrier Functions (CBFs)
Consider the nonlinear control affine system
(1) |
where , are the system state and control input, respectively, and , are locally Lipschitz.
Definition II.1 (CLFs).
Definition II.1 implies that there exists a set of stabilizing controls that makes the CLF strictly decreasing everywhere outside its global minimum , given by .
Definition II.2 (Safety).
The trajectories of a given system are safe with respect to a set if is forward invariant, meaning that for every , for all .
Consider subsets defined by the superlevel set of continuously differentiable functions , The corresponding -th boundary is given by .
Definition II.3 (CBFs).
This definition means that there exists a set of safe controls allowing the -th CBF to decrease on in the interior of its safe set , but not on its boundary , given by . The composite safe set associated to all the CBFs is simply and the set of controls rendering forward invariant is the intersection .
II-B QP-Based Safety-Critical Controllers
Consider the closed-loop system for (1)
(2) |
with a state-feedback control law . A common approach for safety-critical control is the safety-filter algorithm, which minimally modifies a given stabilizing state-feedback control law to achieve safety. The safety-filter effectively generates the “closest” safe control to the stabilizing control .
An alternative approach that also makes use of QPs is the minimum-norm CLF-CBF QP by [1]:
(3) | ||||
(CLF) | ||||
(CBFs) |
, being a symmetric positive definite matrix function of the state, and (for now) . The relaxation variable in the CLF constraint softens the stabilization objective, aiming to maintain the feasibility of the QP. If feasible, the feedback controller (3) with generates a minimum-norm stabilizing and safe control, guaranteeing local stability of the origin and safety of the closed-loop system trajectories with respect to the composite safe set .
As pointed out by the works [8, 9, 10], neither the safety-filter nor the CLF-CBF QP (3) (with ) can guarantee global stabilization of trajectories towards the origin for the closed-loop system (2), meaning that trajectories could converge towards undesirable equilibrium points. Here, our objective is to study the solutions, existence conditions and stability of equilibrium points of the closed-loop system formed by a generalized QP controller given by (3) with , where is the stabilizing control law from the safety-filter QP. The structure of controller (3) with allows for the generalization of the safety-filter and the CLF-CBF QPs into a single framework:
-
1.
with and (without CLF), we recover the usual safety-filter QP. In this case, the optimal solution for the slack variable is always .
-
2.
with , we recover the usual CLF-CBF QP.
If feasible, the solution of the generalized QP (3) is guaranteed , and possibly close to the stabilizing set . However, due to the slack variable, it is not possible to strictly guarantee that . That means that safety with respect to is achieved, but stabilization is (possibly) hampered.
Assumption II.1.
The initial state and the origin are contained in the safe set , that is, and for all .
Theorem 1.
Proof.
The proofs of (i) and (ii) can be found in [1] and [9], respectively. To establish the proof of (iii), we begin by formulating the Lagrangian associated with the QP (3)
(5) | ||||
where and , are vectors of KKT multipliers associated to the optimization problem. Using matrix , the stationarity KKT conditions give the following solutions for the QP:
(6) | ||||
(7) |
The dual function associated to the QP can be obtained by substituting (6) into (5), yielding the following dual QP:
(8) | ||||
with , . Notice that the dual cost in (8) is bounded from above if and only if . In that case, the primal QP (3) is feasible. Applying Gauss elimination to the augmented matrix yields
(9) |
Then, from (9), the condition as stated in (4) is equivalent to , meaning that the primal QP is feasible under this condition. ∎
Theorem 1(iii) provides a sufficient condition for the feasibility of QP (3): when (4) holds, the corresponding dual QP cost is bounded, which means (3) is feasible. Feasibility condition (4) is of particular importance when assumptions (i) and (ii) fail, giving a sufficient condition for the feasibility of QP (3) in the case when multiple safety objectives are simultaneously required.
III Closed-loop System Analysis
III-A Existence of Equilibrium Points
In this section, we extend a result from [8], regarding the existence of equilibrium points in the safety-filter QP or in the CLF-CBF QP when multiple CBF constraints are present. The results are conditioned to the feasibility of the QP (3): that is, it is assumed that at least one of the conditions of Theorem 1 holds.
Definition III.1 (Equilibrium Manifold).
Let the set be a collection of CBF indexes corresponding to CBFs . Define the vector field :
(10) | ||||
(11) |
As will be demonstrated in the next sections, (10) and its Jacobian with respect to will be of central importance to characterize the existence and stability conditions for the equilibrium points of the closed-loop system.
Theorem 2 (Existence of Equilibrium Points).
Let (2) be the closed-loop system formed by the nonlinear system (1) with controller (3). Let the set as defined in Definition III.1 representing the indexes of overlapping CBF boundaries . The equilibrium points of (2) come in two distinct types:
(12) | ||||
(13) |
where is the set of boundary equilibrium points occurring in and is the set of interior equilibrium points. Furthermore, defining the region of the state space where only the CBF constraints are simultaneously active as , we have .
Proof.
Substituting (6) in (2) and using the definition of yields the following closed-loop dynamics:
(14) |
At an equilibrium point , . Applying this condition to (2) yields
(15) |
Case 1. Consider the region of the state space where the CLF constraint is inactive: . Following the exact same steps of Case 1 of Theorem 2 on [9], we conclude that no equilibrium points can occur at this region. Case 2. Consider the region where CLF constraint is active: . In the case of the safety-filter, since , the CLF constraint becomes simply and since the optimal solution for the relaxation variable is always , the CLF constraint is always active. At an equilibrium point , . Therefore, using (7), . Then, at any equilibrium point , the multiplier associated to the CLF constraint is . Therefore, equation (15) yields
(16) |
For the safety-filter, and are valid in (16).
For the next cases, the CLF constraint is assumed to be active.
Case 3. Consider the region where exactly CBF constraints are simultaneously active.
Their corresponding indexes are denoted by the set as defined previously.
Therefore, , for .
At an equilibrium point occurring in this region, , implying that .
Therefore, must lie at the boundary intersection associated to the active CBFs, that is,
.
The conclusion is that boundary equilibrium points at can only occur at
, that is, the region where only the CBF constraints corresponding to
are simultaneously active.
Since in this case the remaining CBF constraints are all inactive, ,
and (16) reduces to
(17) |
where is given by (11) and is a vector of appropriate
size with the non-negative corresponding KKT multipliers associated to the active CBF constraints.
Notice that (17) is equivalent to as defined in (10).
Thus, in this case, the equilibrium point is at the boundary intersection and satisfies
for some , demonstrating (12).
Case 4. Consider the region where all CBF constraints are inactive:
, .
Following the same steps of Case 4 of Theorem 2 on [9], we conclude that equilibrium points
occurring in this region must lie in the interior of the safe set, that is, .
Additionally, (16) must be satisfied with , which means that
. This demonstrates (13).
∎
The work [10] has proposed a system transformation that removes certain types of interior equilibrium points from the closed-loop system with the CLF-CBF QP controller. We conjecture that a similar transformation could be performed in the case of the safety-filter. Thereby, in the remaining of the paper, we focus on the stability properties for boundary equilibrium points.
III-B Stability of Boundary Equilibrium Points
Lemma 1 (Closed-Loop Jacobian).
Let (2) be the closed-loop system formed by the nonlinear system (1) with controller (3), and let from Definition III.1 represent the indexes of active CBF constraints. For a boundary equilibrium point with full rank and , the Jacobian matrix of the closed-loop system (2) computed at is given by
(18) |
where , and is the vector with the corresponding KKT multipliers at for the active CBF constraints, with , and
(19) |
with .
Remark III.1.
Proof.
This demonstration is a direct continuation of Case 3 from the proof of Theorem 2. Using the complementary slackness conditions, , . Substituting (6)-(7) these expressions and using the fact that for all yields the following system:
(20) |
where , and . Here, and are essentially reduced versions of matrices and from (8), with fewer rows and columns (since not all constraints are active). In particular, the set where the CLF and only the CBF constraints from are active is given by
(21) |
where are the positive solutions of (20). Using the known formula for inversion of block matrices, since , is invertible if its Schur complement is invertible. Since , exists if has full column rank and if . Under these assumptions, a formula for is
(22) |
where the dimensions of vectors and matrices are conformable for matrix addition and multiplication. Then, the KKT multipliers , can be found by solving (20).
Taking the derivative of (20) with respect to the -th state component and solving for yields
(23) |
Defining , the partial derivatives of and are:
(24) | ||||
(25) |
where . From (19), notice that . Using this fact, combining equations (24)-(25) to compute the term in (23), left multiplying it by and using the fact that yields
(26) |
where the fact that was used. Then, taking the derivative of the closed-loop system dynamics (2) with yields
(27) |
which by using the expression for in (26) yields an expression for the -th column of the closed-loop Jacobian matrix at . Consider an equilibrium point . Since by definition, the last term on the right-hand side of (23) vanishes. Then, substituting in (27) and using the fact that yields
(28) | ||||
On the assumptions of the theorem, namely a full rank and , equation (22) can be used to simplify the following expressions at (28):
(29) | ||||
(30) |
Substituting (29)-(30) in (28) yields
(31) |
which is simply the -th column of the closed-loop Jacobian matrix computed at . ∎
Remark III.2.
Notice that , therefore showing that is a generalized projection matrix for the orthogonal complement of the column space of . From (18), that means that . Therefore, the gradients are left eigenvectors of with corresponding negative eigenvalues . In particular, this implies that if an equilibrium point on the conditions of Theorem 2 occurs at the intersection of exactly barrier boundaries, must be stable.
Lemma 2.
Let be a symmetric positive definite matrix defining an inner product over , and be a set of linearly independent vectors. Additionally, let be a basis for the orthogonal complement of with respect to . Then, is a basis for .
Proof.
Recall that since the span of is the orthogonal complement of with respect to , . Let be the equation for deciding linear independence. Taking the inner product with yields . Since the vectors from are linearly independent, the only solution is . Similarly, taking the inner product with yields . Since the vectors from are also linearly independent ( is a basis), the only solution is . Therefore, the set must be composed of linearly independent vectors, constituting a basis for . ∎
Proposition 1.
Let be a basis for . Then, with , the following formula holds:
(32) |
where .
Proof.
Next, we demonstrate the main result of this work, a theorem for the stability of boundary equilibrium points at , occurring at the intersection of exactly barrier boundaries.
Theorem 3 (Stability of Equilibrium Points).
Proof.
Consider a boundary equilibrium point with . The first order Taylor series approximation of the closed-loop system on a neighborhood of is with being a disturbance vector around the equilibrium point. Since the CBF gradients are linearly independent at by assumption, can be written using a basis , where are fixed basis vectors for . Therefore, by construction. One can write , where is a linear combination of the , and is a vector of coordinates. The time derivative of in this new basis is . Left-multiplying this equation and by , and using the expression (18) for the closed-loop Jacobian at and the fact that yields
(34) | ||||
(35) |
Comparing (34)-(35) yields . Since , this subsystem is asymptotically stable, which means that the column space of is contained in the stable subspace associated to . Using these equations to solve for the dynamics of and letting , one can conclude that the stability of is fully determined by the subsystem .
The corresponding Lyapunov equation for is
(36) |
with , where are diagonal matrices and the column space of is the orthogonal complement of with an inner product induced by , that is, . This means that . Using (18) and Proposition 1, notice that , where again is an arbitrary vector in . Define the Lyapunov candidate . Taking its time derivative and using the dynamics of yields
(37) |
Since is similar to , its eigenvalues are and ones. Since is contained in the column space of , given any , it is always possible to choose such that is one of its eigenvectors with an associated positive eigenvalue . Therefore, with this choice for and , (37) becomes . Hence, by Chetaev’s instability theorem, if there exists such that holds, and is an unstable equilibrium point. Otherwise, and is stable. ∎
Theorems 2 and 3 show that the existence conditions and stability properties of boundary equilibrium points are completely determined by the vector field and its state derivatives as defined in (10). For both frameworks for safety-critical control considered in this work, the stability of boundary equilibrium points depends on the state derivatives of the system dynamics and and on the Hessians of the active CBFs, . Particularly, for the safety filter QP, it also depends on the Jacobian of the nominal controller , and for the CLF-CBF QP, it also depends on the Hessian matrix of the CLF, .

In Fig. 1, we show the simulation result of a safety-critical control task with the CLF-CBF QP-based controller. 111 The code repository used for producing these results is publicly available at https://github.com/CaipirUltron/CompatibleCLFCBF/tree/mydevel.. Here, and in (3), and the proposed system in is , , . The CBFs are two quadratic functions and centered at the points and , respectively. Their boundaries are the red ellipsoids in Fig. 1, with the union of their interiors constituting the unsafe set which the system trajectories should avoid. The CLF is also a quadratic centered on the origin, and its level set is shown in blue, at an asymptotically stable equilibrium point at the top of the boundary intersection , shown in Fig. 1 by the dashed black circle. A trajectory converging to is shown, and the normalized gradients , are shown as the two red vectors pointing up at the equilibrium point. At , since for some , . Since the system is driftless, . Furthermore, is a positive definite matrix. Then, the following holds: , meaning that the gradient of the CLF is a conical combination of the gradients of the active CBFs at . That is precisely the case at Fig. 1. Furthermore, due to the fact that the system is driftless with a full rank , carrying out the needed simplifications at from (33), one can conclude that the stability of is determined by , that is, essentially by a difference of curvatures between the CBFs and the CLF at , extending the result in [8].
References
- [1] Aaron D Ames, Jessy W Grizzle, and Paulo Tabuada. Control barrier function based quadratic programs with application to adaptive cruise control. In 53rd IEEE Conference on Decision and Control, pages 6271–6278. IEEE, 2014.
- [2] David ”davidad” Dalrymple et al. Towards guaranteed safe ai: A framework for ensuring robust and reliable ai systems, 2024.
- [3] Kai-Chieh Hsu, Haimin Hu, and Jaime F. Fisac. The safety filter: A unified view of safety-critical control in autonomous systems. Annual Review of Control, Robotics, and Autonomous Systems, 7(Volume 7, 2024):47–72, 2024.
- [4] Hassan K Khalil. Nonlinear systems; 3rd ed. Prentice-Hall, Upper Saddle River, NJ, 2002.
- [5] Taekyung Kim, Robin Inho Kee, and Dimitra Panagou. Learning to refine input constrained control barrier functions via uncertainty-aware online parameter adaptation, 2025.
- [6] G. Notomista, S. F. Ruf, and M. Egerstedt. Persistification of robotic tasks using control barrier functions. IEEE Robotics and Automation Letters, 3(2):758–763, April 2018.
- [7] Gennaro Notomista and Matteo Saveriano. Safety of dynamical systems with multiple non-convex unsafe sets using control barrier functions. IEEE Control Systems Letters, 6:1136–1141, 2022.
- [8] M. F. Reis, A. P. Aguiar, and P. Tabuada. Control barrier function-based quadratic programs introduce undesirable asymptotically stable equilibria. IEEE Control Systems Letters, 5(2):731–736, 2021.
- [9] Matheus F. Reis and A. Pedro Aguiar. On the stability of undesirable equilibria in the quadratic program framework for safety-critical control, 2024.
- [10] Xiao Tan and Dimos V Dimarogonas. On the undesired equilibria induced by control barrier function based quadratic programs. Automatica, 159:111359, 2024.
- [11] Kim P. Wabersich, Andrew J. Taylor, Jason J. Choi, Koushil Sreenath, Claire J. Tomlin, Aaron D. Ames, and Melanie N. Zeilinger. Data-driven safety filters: Hamilton-jacobi reachability, control barrier functions, and predictive methods for uncertain systems. IEEE Control Systems Magazine, 43(5):137–177, 2023.