Introduction
Ensuring safety in robotic systems often relies on Control Barrier Functions (CBFs), mathematical constructs that define a "safe set" of states and provide formal guarantees that a robot will not exit this boundary. While effective, traditional learning-based CBFs suffer from a significant scalability bottleneck. They typically require either exhaustive sampling of the entire state space—which is computationally infeasible in high dimensions—or risky online interactions to explore the boundaries of safety.
This paper introduces a novel framework for learning these safety boundaries using fixed, offline datasets. Unlike previous methods that assume access to high-quality expert demonstrations, this approach is designed to work with "messy" real-world data, including suboptimal trajectories and failures collected by untrained humans or low-performance controllers.
The Challenge of Offline Safety Learning
Most existing offline methods for safety learning rely on the assumption that training data is either perfectly safe or generated by an expert. In practice, however, data is often sparsely labeled and contains a mix of successful and unsuccessful attempts. The core challenge lies in extracting a robust safety boundary from these limited and potentially low-quality datasets without the ability to perform further exploration.
The NCBF-BC Framework
To address these challenges, the authors propose Neural Control Barrier Functions with Barrier Critic (NCBF-BC). This framework introduces several key innovations to handle unlabeled and suboptimal data effectively:
- Rejection-based OOD Analysis: The system utilizes a rejection model to determine if a specific state is "in-distribution" relative to known safe or unsafe data. This prevents the model from making overconfident safety claims in unexplored regions of the state space.
- Knowledge Propagation: Rather than discarding unlabeled data, the framework attempts to "label" it through connectivity. An unlabeled state is classified as safe only if the model identifies a control action that transitions the robot to a state that is both known to be safe and within the training distribution.
- Auxiliary Actor Model: In this architecture, an internal "actor" serves as a training tool rather than the final controller. This actor helps the CBF identify the "maximally safe" control action during the learning phase, allowing the system to distill safety information from data generated by a wide variety of suboptimal controllers.
- Optimization Regularization: To combat "landscape collapse"—a common issue in offline neural network training where values shrink toward zero—the authors implement a surrogate objective that maintains the magnitude and integrity of the safety boundary.
Experimental Validation
The researchers evaluated NCBF-BC across both simulated environments and real-world hardware:
- Simulated Dynamics: Tests were conducted on Double Integrator, Dubins, and Bicycle models. Training data was intentionally generated using potential-field controllers with randomized parameters to simulate the noise of suboptimal data collection.
- Real-World Deployment: The framework was tested on a research variant of the Fetch Robotics "Freight" platform. The dataset consisted of 40 minutes of manual driving in environments with pedestrians, split into 15 minutes of successful navigation and 25 minutes of near-collision "failure" trajectories. The task involved an 11-dimensional state space, incorporating robot velocity, coordinates, and a temporal history of pedestrian movement.
Key Results and Insights
The NCBF-BC framework demonstrated significant improvements over existing baselines in both safety and efficiency:
- Superior Safety Performance: In real-world dynamic obstacle avoidance, the proposed method achieved a 93.3% success rate. This significantly outperformed standard Neural CBF baselines (46.7%) and established navigation stacks such as ROS1-MPC (80%) and ROS2-DWB (86.7%).
- Efficiency and Precision: The model maintained the highest mean velocity (0.21 m/s) while keeping the smallest minimal distance to obstacles (0.578m). This suggests that the learned barrier is less conservative than traditional methods; it allows for efficient movement because it possesses a more precise understanding of the actual safety boundary.
- Robustness to Data Quality: Simulation results confirmed that while standard baselines often fail when data is aggregated from multiple different controllers, NCBF-BC remains stable and converges reliably.
Conclusion and Future Work
The findings suggest that unlabeled trajectories—particularly those near the edge of failure—are a feature rather than a bug, providing critical information about the safety landscape. By focusing on the connectivity between states and utilizing an internal actor to find safe gradients, NCBF-BC overcomes the limitations of expert-only datasets.
However, limitations remain. The current execution relies on a heuristic goal-driven metric to select final controls, and the 11D state space, while robust, is a stepping stone toward higher-dimensional inputs like raw Lidar point clouds or camera images. Future research will focus on scaling these safety guarantees to more complex sensory inputs and further refining the empirical safety bounds into absolute mathematical proofs.
Summary updated