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

Addressing Relative Degree Issues in Control Barrier Function Synthesis with Physics-Informed Neural Networks

Lukas Brunke, Siqi Zhou, Francesco D'Orazio, Angela P. SchoelligarXiv 2025 · DOI

Introduction

Control Barrier Functions (CBFs) are a cornerstone of modern robotic safety, providing a mathematical framework to ensure systems remain within a defined "safe set." However, these functions often suffer from a critical flaw: the "varying relative degree" problem. This issue causes safety filters to deactivate unexpectedly, leading to control chattering or catastrophic safety breaches. This paper introduces a novel synthesis method that designs the CBF's gradient field first and utilizes Physics-Informed Neural Networks (PINNs) to construct valid safety boundaries, ensuring smooth and reliable control even in complex, non-convex environments.

The Topological Trap of Compact Safe Sets

In robotics, safety filters typically wrap around uncertified controllers (like reinforcement learning policies). The filter monitors the robot's state relative to a safety boundary and overrides inputs only when a violation is imminent.

A significant mathematical challenge arises when the safe zone is a closed, compact shape. Any smooth function describing such a set must possess a critical point (where the gradient is zero) within the interior. At these points, the system's relative degree becomes undefined; the safety filter perceives the control input as having no effect on safety, effectively turning itself off. If this "blind spot" occurs near the boundary or in underactuated systems where the gradient becomes orthogonal to the control matrix, the robot may experience violent oscillations or fail to maintain safety.

Methodology: Gradient-First Design and Multi-CBFs

To bypass the topological limitations of single-function CBFs, the authors propose a "gradient-first" synthesis approach combined with a multi-function framework.

1. Gradient-First Design

Instead of defining a scalar function and calculating its gradient, the authors explicitly define a target gradient field. This field is constructed to ensure that the gradient never vanishes and remains well-aligned with the control input throughout the safe set. This construction guarantees that the safety filter remains active and constrained at all times.

2. Multi-CBF Framework

Since a single smooth function cannot represent a compact set without a zero-gradient point, the authors partition the safe set's boundary into multiple segments. Each segment is governed by its own CBF, creating a "Multi-CBF" structure that covers the entire safe region without internal singularities.

Partitioning of a compact safe set into multiple regions to avoid internal gradient singularities.

3. Synthesis via PINNs

Stitching these custom gradient fields into a coherent set of functions requires solving a complex Boundary Value Problem (BVP). The authors employ Physics-Informed Neural Networks (PINNs) for this task. The network is trained using a composite loss function: a boundary loss to ensure the zero-level set matches the desired safety perimeter, and a physics loss to ensure the function's gradient matches the pre-designed target field.

Key Insights

  • Topological Necessity: The paper proves that standard quadratic or single-function CBFs are mathematically destined to fail for compact sets due to the existence of zero-gradient points.
  • PINNs as Control Tools: While typically used in fluid dynamics, PINNs prove highly effective here for approximating complex, non-convex safety boundaries that are too difficult to solve analytically.
  • Orthogonality Matters: For underactuated systems like drones, ensuring the gradient is not just non-zero, but also non-orthogonal to the control matrix, is vital for maintaining control authority.

Experimental Results

The proposed framework was validated in both simulation and real-world hardware:

  • Non-Convex Navigation: In a 2D quadrotor simulation navigating a complex Himmelblau-shaped safe set, the Multi-CBF approach (using 10 PINNs) maintained safety indefinitely, whereas baseline single-CBF methods failed.
  • Real-World Stability: During flights within an ellipsoidal safe set, a standard CBF caused severe input chattering as the drone approached the "blind spot" near the boundary. The PINN-based Multi-CBF eliminated this chattering entirely, providing smooth, stable trajectories.
  • Computational Efficiency: Despite the offline training requirements for PINNs, the resulting filters are computationally lightweight, running at 70 Hz on physical quadrotor hardware and 100 Hz in simulation.

Limitations and Future Work

The current method is optimized for connected safe sets; disconnected regions would require separate partitioning strategies. Additionally, the initial optimization of gradient parameters adds some pre-processing overhead. Future research directions include scaling this approach to high-dimensional systems, such as multi-joint robotic manipulators, and developing methods for online, dynamic updates to the PINN-based safety boundaries.

Summary updated

BibTeX
@misc{brunke2025addressing,
  author = {Lukas Brunke and Siqi Zhou and Francesco D'Orazio and Angela P. Schoellig},
  title = {{Addressing Relative Degree Issues in Control Barrier Function Synthesis with Physics-Informed Neural Networks}},
  year = {2025},
  eprint = {2504.06242},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.06242},
}
Figure