Matrix Control Barrier Functions

Pio Ong, Yicheng Xu, Ryan M. Bena, Faryar Jabbari, Aaron D. AmesarXiv 2025 · DOI

Introduction

In the field of robotics, ensuring safety is paramount. Traditionally, safety is defined as maintaining the system state within a designated "safe set." Control Barrier Functions (CBFs) have emerged as a powerful tool for this purpose, typically integrated into Quadratic Programs (QPs) to calculate the minimal control intervention required to keep a robot safe. However, standard CBFs are restricted to scalar-valued functions. This limitation becomes apparent when dealing with complex, high-dimensional constraints such as network connectivity in multi-robot systems or disjunctive "OR" logic for obstacle avoidance.

The Challenge of Nonsmoothness

A critical challenge in multi-robot coordination is maintaining network connectivity, which often depends on the eigenvalues of a Laplacian matrix. Because eigenvalues are nonsmooth functions—they can cross, merge, or switch order—treating them as individual scalar CBFs leads to discontinuous control signals. This phenomenon, known as "chatter," results in high-frequency vibrations that can degrade performance and damage hardware. Furthermore, representing disjunctive constraints (e.g., "the robot must be outside obstacle A OR outside obstacle B") often requires conservative approximations that unnecessarily restrict the robot's workspace.

Matrix Control Barrier Functions (MCBFs)

To address these issues, this research introduces Matrix Control Barrier Functions (MCBFs). Rather than relying on a scalar inequality $h(x) \ge 0$, the authors define the safe set through a matrix inequality $H(x) \succeq 0$, where $H(x)$ is a symmetric matrix-valued function.

Semidefinite Programming Safety Filters

By lifting the safety condition to the matrix level, the safety filter is reformulated as a Semidefinite Program (SDP) rather than a QP. The constraint ensures that the rate of change of the matrix $H(x)$ satisfies a barrier condition, effectively keeping all its eigenvalues within the safe region. A significant theoretical contribution of this work is the proof that these SDP-based controllers are continuous. By considering the matrix as a whole, the framework bypasses the mathematical "kinks" associated with individual eigenvalues, ensuring smooth control even when eigenvalues repeat or cross.

Handling Disjunctions with Indefinite MCBFs

The framework also extends to indefinite matrices to handle "OR" logic naturally. In this context, safety is maintained if at least one condition is met (e.g., the largest eigenvalue remains positive). This allows for more elegant navigation in complex environments without the need for "soft-max" approximations that shrink the available safe space.

Experimental Results and Validation

The efficacy of the MCBF framework was evaluated through both simulated scenarios and hardware experiments.

Multi-UAV Connectivity

The authors demonstrated the approach using a swarm of five Crazyflie 2.1+ quadrotors. In these experiments, the swarm was required to maintain network connectivity while avoiding collisions. Even when a "priority agent" moved aggressively, the MCBF-based controller allowed the other drones to act as communication relays, maintaining the integrity of the network.

Performance and Real-time Feasibility

A key finding was the total elimination of control chatter. While traditional eigenvalue-based scalar CBFs produced significant high-frequency noise, the MCBF approach yielded smooth control inputs. Using the Clarabel SDP solver, the safety filter achieved solve times of 1–2 milliseconds on a standard PC, making it suitable for high-frequency (240 Hz) real-time control loops.

Discussion and Future Work

While the MCBF framework provides a robust solution for complex constraints, several avenues for future research remain. First, while the authors proved the continuity of the controller, establishing local Lipschitz continuity—a stronger property often required for formal stability proofs—remains an open theoretical challenge. Second, as SDPs are more computationally intensive than QPs, scaling the approach to swarms of hundreds or thousands of robots may require the development of decentralized matrix constraints.

Finally, the authors suggest that the MCBF framework could be applied beyond connectivity, such as in Nonlinear Least Squares (NLS) localization. By ensuring that the Hessian matrix of a localization problem remains positive definite, the framework could guarantee that a robot always possesses sufficient sensor information to estimate its position accurately.

Conclusion

Matrix Control Barrier Functions represent a significant advancement in safe control theory. By generalizing CBFs to matrix-valued functions and leveraging the power of Semidefinite Programming, this framework provides a unified, smooth, and computationally feasible method for managing the complex safety requirements of modern robotic systems.

Summary updated

BibTeX
@misc{ong2025matrix,
  author = {Pio Ong and Yicheng Xu and Ryan M. Bena and Faryar Jabbari and Aaron D. Ames},
  title = {{Matrix Control Barrier Functions}},
  year = {2025},
  eprint = {2508.11795},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.11795},
}
Figure