Safe Continual Domain Adaptation after Sim2Real Transfer of Reinforcement Learning Policies in Robotics
Josip Josifovski, Shangding Gu, Mohammadhossein Malmir, Haoliang Huang, Sayantan Auddy, Nicolás Navarro-Guerrero, Costas Spanos, Alois Knoll
TL;DR
The paper addresses the reality gap in robotic reinforcement learning by enabling safe, continual adaptation after deployment through Safe Continual Domain Adaptation (SCDA). SCDA combines domain randomization with a safe RL framework (PCRPO) and Elastic Weight Consolidation (EWC) to first learn a robust policy in a highly randomized simulator and then adapt safely to the real system while remembering the pretraining policy. The approach regularizes adaptation via the diagonal Fisher information to prevent forgetting important parameters and enforces safety through constrained RL during pretraining and a safety-aware objective during real-world updates, yielding better performance across targets without catastrophic forgetting. Empirically, SCDA improves over zero-shot transfer and other baselines on reach/balance and grasping tasks, demonstrating safer and more reliable post-deployment adaptation with practical implications for autonomous robotic systems.
Abstract
Domain randomization has emerged as a fundamental technique in reinforcement learning (RL) to facilitate the transfer of policies from simulation to real-world robotic applications. Many existing domain randomization approaches have been proposed to improve robustness and sim2real transfer. These approaches rely on wide randomization ranges to compensate for the unknown actual system parameters, leading to robust but inefficient real-world policies. In addition, the policies pretrained in the domain-randomized simulation are fixed after deployment due to the inherent instability of the optimization processes based on RL and the necessity of sampling exploitative but potentially unsafe actions on the real system. This limits the adaptability of the deployed policy to the inevitably changing system parameters or environment dynamics over time. We leverage safe RL and continual learning under domain-randomized simulation to address these limitations and enable safe deployment-time policy adaptation in real-world robot control. The experiments show that our method enables the policy to adapt and fit to the current domain distribution and environment dynamics of the real system while minimizing safety risks and avoiding issues like catastrophic forgetting of the general policy found in randomized simulation during the pretraining phase. Videos and supplementary material are available at https://safe-cda.github.io/.
