Simplex-enabled Safe Continual Learning Machine

Yihao Cai, Hongpeng Cao, Yanbing Mao, Lui Sha, Marco CaccamoarXiv 2024 · DOI

Abstract

Deep Reinforcement Learning (DRL) offers high performance in complex robotics but faces significant safety challenges during real-world deployment due to the Sim2Real gap and unpredictable environmental dynamics. This paper introduces the Simplex-enabled Safe Continual (SeC)-Learning Machine, a "Teacher-Student" architecture designed to guarantee safety during real-time learning. By integrating a high-performance DRL agent with a verified, physics-based "Teacher" controller, the system ensures that safety constraints are never violated, even when adapting to "unknown unknowns" in the physical world.

Introduction

Deploying DRL in safety-critical environments is hindered by two primary issues: the Sim2Real gap, where policies trained in simulation fail in reality, and "unknown unknowns," which are unmodeled real-world dynamics. While continual learning allows agents to adapt on-the-job, the inherent trial-and-error process poses catastrophic risks. The SeC-Learning Machine addresses this catch-22 by providing a framework for safe exploration and adaptation, leveraging the Simplex logic of using simplicity to control complexity.

Methodology

The SeC-Learning Machine architecture comprises three main interactive components:

  • HP-Student (High Performance): A pre-trained Physics-Regulated DRL (Phy-DRL) agent. It utilizes a residual action policy where the final command is a combination of a data-driven action and a physics-model-based action.
  • HA-Teacher (High Assurance): A simplified, mission-reduced controller based on a verified physics model. Its primary objective is to maintain safety rather than optimize performance.
  • Coordinator: A monitoring unit that tracks the system state. If the Student steers the system too close to the safety boundary (the "safety envelope"), the Coordinator triggers a switch to the Teacher.
The SeC-Learning Machine architecture showing the interaction between the Student, Teacher, and Coordinator.

A critical innovation is the Teacher's ability to correct the Student’s memory. When an intervention occurs, the Teacher replaces the unsafe action in the Student's replay buffer with a safe alternative. This turns the Teacher into a real-time supervisor, providing on-the-fly labels that teach the Student how to avoid future interventions.

Safety and Adaptation

The system employs "envelope patches" to steer the system back to a safe equilibrium when the Student's policy is insufficient. By bounding an unverified, complex neural network with a verified, simple physics model, the SeC-Learning Machine achieves a balance between high performance and rigorous safety guarantees. This approach allows the agent to learn from its mistakes without suffering the consequences of a safety violation.

Experimental Results

The framework was validated on a modified Cart-Pole system and a Unitree A1 quadruped robot. In the Cart-Pole experiments, the SeC-Learning Machine maintained 100% safety while achieving higher average rewards than standard "Unsafe Continual Learning" models, which frequently exited the safety set.

Reward curves showing that the SeC-Learning Machine achieves higher and more stable rewards compared to unsafe continual learning.

On the quadruped robot, the system successfully learned to track velocity commands on real hardware within just 20 episodes (approximately 300 seconds). The Teacher's interventions facilitated rapid learning of safe behaviors, demonstrating the framework's effectiveness in complex, real-world robotics where domain randomization in simulation is insufficient.

Conclusion

The SeC-Learning Machine provides a robust solution for safe continual learning in autonomous systems. While it currently faces challenges related to the computational cost of real-time safety verification and a dependency on a basic physics model, it represents a significant step toward dependable AI. Future work will explore "automatic hierarchies" to reduce the Student's reliance on the Teacher as its performance and safety metrics improve.

Summary updated

BibTeX
@misc{cai2024simplex,
  author = {Yihao Cai and Hongpeng Cao and Yanbing Mao and Lui Sha and Marco Caccamo},
  title = {{Simplex-enabled Safe Continual Learning Machine}},
  year = {2024},
  eprint = {2409.05898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.05898},
}
Figure