A Control Barrier Perspective on Episodic Learning via Projection-to-State Safety

Andrew J. Taylor, Andrew Singletary, Yisong Yue, Aaron D. Ames

A Control Barrier Perspective on Episodic Learning via Projection-to-State Safety

Ensuring the safety of autonomous systems often relies on Control Barrier Functions (CBFs), which provide mathematical guarantees that a system will remain within a designated "safe set." However, these guarantees are only as robust as the underlying model of the system's dynamics. In real-world applications, unmodeled factors such as friction, aerodynamic drag, or parametric errors can cause a system to drift outside its safe boundaries. This paper introduces Projection-to-State Safety (PSSf), a framework that quantifies how learning-based models can recover safety guarantees by focusing on uncertainty within the safety function's projected space.

The Challenge: Safety Under Uncertainty

In robotics, safety is typically defined by a safe set $\mathcal{C}$. A CBF ensures that if a robot starts inside $\mathcal{C}$, it stays there. When the dynamics model is inaccurate, these safety guarantees "degrade." Traditional approaches like Input-to-State Safety (ISSf) are often overly conservative because they account for disturbances across the entire high-dimensional state space.

The authors argue that safety is fundamentally a lower-dimensional problem. Even for a complex robot with many degrees of freedom, safety is often a binary condition: is the system within the safe boundary? By projecting high-dimensional uncertainty onto the 1D space of the safety function, the PSSf framework ignores irrelevant noise and focuses exclusively on the errors that threaten safety.

Projection-to-State Safety (PSSf) and Episodic Learning

The core innovation is the PSSf framework, which analyzes how disturbances affect the time derivative of the barrier function $h$. This "projected disturbance" ($\delta$) directly determines the size of the "degraded" safe set $\mathcal{C}_\delta$. To mitigate this degradation, the authors integrate an episodic learning approach:

  1. Data Collection: The robot performs tasks over multiple trials (episodes), collecting data on the mismatch between its predicted safety behavior and reality.
  2. Uncertainty Estimation: This data is used to train estimators that "cancel out" model uncertainty.
  3. Safety Recovery: As the estimators improve, the projected disturbance $\delta$ is reduced, effectively shrinking the degraded safe set and bringing it closer to the intended safe set $\mathcal{C}$.

Experimental Validation: The Segway Platform

The framework was validated using both a simulated 4D planar Segway model and a physical robotic Segway platform. The goal was to track a pitch trajectory while maintaining strict safety constraints on velocity and tilt.

The physical Segway platform used for experimental validation of the PSSf framework.

During episodic learning, the robot identifies where its predicted safety behavior deviates from reality and updates its model. This process reduces the "worst-case projected disturbance," allowing for tighter and more reliable safety bounds in subsequent episodes.

Key Results and Insights

The integration of machine learning into the PSSf framework yielded significant improvements in safety performance across both simulation and hardware trials:

  • Reduced Uncertainty: The "worst-case projected disturbance" was significantly lower when using learning-informed controllers compared to nominal controllers.
  • Raised Safety Floor: Learning mathematically raises the "worst-case lower bound" of the safety function $h$, providing a formal guarantee against failure even in the presence of residual model errors.
Experimental results on the Segway. Left: Simulation model. Middle: Reduction in projected disturbance $\delta$ through learning (blue) vs. nominal (red). Right: Evolution of the safety function $h$ over time.

As shown in the results, the learning-informed controller (blue lines) significantly outperforms the nominal controller (red lines) by keeping the projected disturbance low and ensuring the safety function $h$ remains well within safe bounds (above zero).

Conclusion and Future Directions

PSSf provides a rigorous mathematical link between machine learning performance (reduction in error) and autonomous system safety. While the current framework relies on Lipschitz continuity and worst-case error bounds, it sets the stage for "data-aware synthesis"—controllers that actively minimize safety-critical uncertainty. Future work will explore safe exploration during the very first episode and handling outliers in learning models to further reduce conservatism.

Summary updated

BibTeX
@inproceedings{taylor2020control,
  author = {Andrew J. Taylor and Andrew Singletary and Yisong Yue and Aaron D. Ames},
  title = {{A Control Barrier Perspective on Episodic Learning via Projection-to-State Safety}},
  booktitle = {IEEE Control. Syst. Lett},
  year = {2020},
  doi = {10.1109/lcsys.2020.3009082},
}
Figure