TL;DR
This paper introduces a framework for learning Robust Hybrid Control Barrier Functions (RHCBFs) from data to guarantee safety in systems that exhibit both continuous motion and discrete "jumps," even when the underlying model is uncertain. By formulating a data-driven optimization problem with formal correctness guarantees, the authors demonstrate how to synthesize controllers that significantly expand the safe operating region for complex systems like bipedal walkers.
What Problem Does This Paper Address?
Safety-critical systems, such as autonomous vehicles or warehouse robots, are often hybrid systems: their state changes continuously (e.g., a robot moving) and discontinuously (e.g., a foot hitting the ground). Ensuring these systems never enter "unsafe" states is paramount.
Control Barrier Functions (CBFs) are a popular tool for this, providing a mathematical certificate that a system will remain within a safe set. However, two major hurdles remain:
- Construction Difficulty: Finding a valid CBF for a complex, non-linear system is notoriously hard.
- Model Uncertainty: Real-world systems rarely match their mathematical models perfectly. Modeling errors or external disturbances can easily break the safety guarantees of a standard CBF.
This paper tackles the challenge of learning these safety certificates directly from expert data while explicitly accounting for model uncertainties to ensure robust safety.
Methods
The authors propose a data-driven approach to learn RHCBFs. Their methodology consists of several key components:
- RHCBF Definition: They extend the standard hybrid CBF to include "robustness margins." These margins account for the maximum possible error between the estimated system dynamics and the true, unknown dynamics.
- Optimization Framework: They formulate a constrained optimization problem to find a function $h(z)$ (parameterized as a neural network) that satisfies safety conditions across a set of expert trajectories. The constraints ensure that:
- The function is positive in safe regions and negative in unsafe ones.
- The system's "flow" (continuous motion) and "jumps" (discrete transitions) always move toward or stay within the safe set, even under worst-case model uncertainty.
- The function remains smooth (Lipschitz continuous) to allow for generalization between data points.
- Primal-Dual Iteration: Since the resulting optimization is non-convex, they use a relaxed version solved via a primal-dual gradient algorithm. This approach iteratively updates the neural network parameters (primal) and the importance weights of the safety constraints (dual).
- Formal Guarantees: The paper provides mathematical proofs (Propositions 1-3) showing that if the training data is sufficiently "dense" and the optimization problem is feasible, the learned function is a valid RHCBF that guarantees safety for the real system.
Datasets
The authors evaluate their method using expert trajectories from a compass gait walker—a classic benchmark in robotics representing a bipedal robot walking down an incline.
- Expert Data: Trajectories were collected using an energy-based controller known to be safe under nominal conditions.
- Uncertainty Scenarios: They tested two types of model uncertainty:
- Additive Noise: Random disturbances added to the continuous dynamics.
- Parametric Uncertainty: An uncertain hip mass ($m_H$), which significantly alters the walking dynamics.
- Unsafe Data: Artificial "unsafe" points were sampled from a ring surrounding the safe operating region to help the model learn the boundaries of safety.
Key Insights and Ideas
- Robustness via Margins: Instead of trying to learn a perfect model, the authors use a "nominal" model plus a quantified error bound ($\Delta$). The RHCBF is designed to be safe for any system that stays within that error bound.
- Bridging Learning and Control: The paper successfully combines the flexibility of neural networks with the formal rigor of Lyapunov-like safety certificates.
- Data Density Matters: The formal guarantees rely on the concept of an $\epsilon$-net, essentially saying that if you have enough safe examples spread throughout the state space, you can be mathematically certain about the safety of the regions in between.
- Expanding the Safe Zone: A key "aha" moment is that the robust controller doesn't just maintain safety; it actually expands the region of attraction. It allows the robot to recover from a wider variety of initial conditions than the original expert controller could handle.
Key Results
The RHCBF was compared against a non-robust HCBF, the original energy-based expert controller, and a "zero actuation" baseline.
- Superior Noise Rejection: Under high levels of additive noise ($\Delta_c = 0.4$), the RHCBF controller allowed the walker to take significantly more steps on average compared to the non-robust version and the expert controller.
- Handling Mass Uncertainty: When the hip mass was varied far from the nominal value (e.g., $m_H = 6.5$ kg vs. nominal $10$ kg), the RHCBF maintained stable walking (~8.5 steps) while the expert controller failed almost immediately (~1.5 steps).
- Qualitative Stability: Visualization of the state space showed that the RHCBF creates a much "thicker" and more resilient safe set, allowing the system to handle perturbations that would otherwise cause it to fall.
Limitations and Future Work
- Non-Convexity: The optimization problem is non-convex, meaning the training process might get stuck in local minima and fail to find a valid RHCBF even if one exists.
- Post-hoc Validation: Some constraints, like Lipschitz continuity and boundedness, are handled via post-hoc validation rather than being strictly enforced during training.
- Expert Reliance: The method requires a pre-existing set of safe expert trajectories. Future work could explore "active learning" where the system safely explores to find its own safety boundaries.
- Scalability: While demonstrated on a 4D system, applying this to high-dimensional humanoid robots remains a significant computational challenge.
Summary updated