TL;DR
PECTS (Probabilistic Ensembles with CBF-constrained Trajectory Sampling) is a novel model-based safe reinforcement learning framework that jointly learns unknown stochastic system dynamics and control barrier functions (CBFs) from scratch. By embedding these learned components into a sampling-based Model Predictive Control (MPC) loop with a smart trajectory-rewiring mechanism, it guarantees probabilistic safety in uncertain environments without requiring prior model knowledge.
What Problem Does This Paper Address?
Reinforcement learning (RL) excels at finding optimal policies through trial and error, but its exploratory nature makes it inherently dangerous for safety-critical systems like physical robots. Control Barrier Functions (CBFs) provide elegant mathematical safety guarantees, but traditionally rely on two strict assumptions: a known, accurate model of the system dynamics, and a predefined safety function.
In the real world, dynamics are often stochastic and unknown, and environments are highly unpredictable. Existing safe RL methods either suffer from extreme sample inefficiency (model-free approaches) or assume partial prior knowledge of the system or CBF. This paper tackles the challenge of achieving strict safety guarantees while learning both the stochastic dynamics and the safety barrier completely from scratch.
Methods
The authors introduce PECTS, which unifies model-based RL with discrete-time stochastic CBFs through several key innovations:
- Stochastic Dynamics & Uncertainty Modeling: PECTS uses an ensemble of bootstrapped Probabilistic Neural Networks (PNNs). Each PNN outputs a Gaussian distribution to capture aleatoric uncertainty (inherent system noise), while the ensemble itself captures epistemic uncertainty (lack of model knowledge).
- Lipschitz-Bounded Neural CBFs: The safety function ($h_\phi$) is learned online using a specialized network architecture that strictly bounds its Lipschitz constant. This prevents the safety function from behaving erratically during training and ensures that the variance of the safety function remains mathematically well-behaved.
- Tractable Surrogate Safety Constraints: Computing the exact expected safety value over a non-linear neural network within a stochastic distribution is computationally intractable. The authors derive a mathematically sound lower-bound surrogate constraint using the system's mean and covariance, allowing for efficient real-time verification.
- Safe Trajectory Sampling & Rewiring: Integrated into a sampling-based MPC optimizer, PECTS projects future trajectories. If a candidate trajectory violates safety at a future step $\tau$, its unsafe prefix is replaced with a known safe prefix from another trajectory in the batch. If the optimizer completely fails to find a safe path, it enters a "recovery mode" that temporarily ignores task rewards to maximize the safety margin.
Datasets
The framework was evaluated on custom-designed simulation environments featuring three distinct kinematic/dynamic models:
- Unicycle model: Simulating basic mobile robot navigation.
- Ackermann car model: Simulating realistic car-like steering constraints.
- 2D double integrator: Simulating acceleration-controlled systems.
Two tasks were tested across these models: a Goal-reaching task (navigating around scattered obstacles to random targets) and a Circular path-following task (tracking a circle bounded by obstacle walls). Sensory input was simulated using a 36-beam LiDAR to detect safe vs. unsafe states locally.
Key Insights and Ideas
- Averages of Safe Paths Aren't Safe: Standard sampling-based MPC methods like Model Predictive Path Integral (MPPI) compute a weighted average of top-performing trajectories to find the next action. However, because safe regions around obstacles are often non-convex (e.g., dodging an obstacle left vs. right), the average of two safe paths might lead straight into a collision. PECTS avoids this by selecting the single best safe sequence instead of averaging.
- Rewiring Over Discarding: Instead of simply throwing away candidate trajectories that hit an obstacle midway through a simulation rollout, PECTS "rewires" them by swapping the unsafe prefix with a safe one. This preserves sample diversity and accelerates the search for valid paths.
- Taming Intractability with Lipschitz Bounds: By enforcing Lipschitz bounds on the neural CBF, the authors turned an intractable expectation calculation into a practical, lower-bound surrogate constraint that can be computed efficiently inside an MPC loop.
Key Results
The quantitative performance of PECTS highlights its reliability compared to state-of-the-art baselines (PPO-Lag, CPO, CUP, and an MPC baseline PETS+SC):
- Zero Safety Violations: PECTS was the only method to achieve a 100% safety rate across all three robot models and both tasks. Other baselines frequently violated constraints, with safety rates dropping as low as 76.6% in some configurations.
- High Performance Efficiency: PECTS achieved this flawless safety record while maintaining highly competitive task performance (e.g., a 99.9% success rate in the unicycle goal-reaching task).
- Accurate Boundary Learning: As shown during training, the learned CBF accurately maps out unsafe zones, maintaining a mildly conservative safety margin around obstacles.

Limitations and Future Work
While PECTS marks a significant advancement, the authors note a few limitations:
- Sensor Complexity: The framework currently relies on complex, custom safety sensor implementations (such as velocity-dependent collision body inflation for the double integrator) to handle higher-order system dynamics.
- Extension to High-Order CBFs: In its current state, it struggles when control inputs do not directly affect the safety coordinates (e.g., using acceleration to control position). Future work will focus on enriching the framework with high-order CBFs to naturally handle these systems.
- Physical Validation: The method has only been validated in simulation; the next step is deploying and testing PECTS on real-world robotic hardware.
Summary updated