Marvel: Accelerating Safe Online Reinforcement Learning with Finetuned Offline Policy
Keru Chen, Honghao Wei, Zhigang Deng, Sen Lin
TL;DR
Marvel tackles fast, safe online reinforcement learning under a safety constraint by leveraging offline safe RL to provide a warm start. It combines Value Pre-Alignment (VPA), which re-aligns the pretrained reward and cost Q-functions with the online objective using offline data, and Adaptive PID Control (aPID), which adaptively tunes the Lagrange multiplier during online finetuning. Empirical results across Bullet Safety Gym tasks show Marvel delivers higher rewards while strictly satisfying the cost bound with only a handful of online updates, and ablations confirm the necessity of both VPA and aPID. The method is compatible with diverse offline safe RL baselines, offering a practical, data-efficient path to real-world safe RL deployment.
Abstract
The high costs and risks involved in extensive environment interactions hinder the practical application of current online safe reinforcement learning (RL) methods. While offline safe RL addresses this by learning policies from static datasets, the performance therein is usually limited due to reliance on data quality and challenges with out-of-distribution (OOD) actions. Inspired by recent successes in offline-to-online (O2O) RL, it is crucial to explore whether offline safe RL can be leveraged to facilitate faster and safer online policy learning, a direction that has yet to be fully investigated. To fill this gap, we first demonstrate that naively applying existing O2O algorithms from standard RL would not work well in the safe RL setting due to two unique challenges: \emph{erroneous Q-estimations}, resulted from offline-online objective mismatch and offline cost sparsity, and \emph{Lagrangian mismatch}, resulted from difficulties in aligning Lagrange multipliers between offline and online policies. To address these challenges, we introduce \textbf{Marvel}, a novel framework for O2O safe RL, comprising two key components that work in concert: \emph{Value Pre-Alignment} to align the Q-functions with the underlying truth before online learning, and \emph{Adaptive PID Control} to effectively adjust the Lagrange multipliers during online finetuning. Extensive experiments demonstrate that Marvel significantly outperforms existing baselines in both reward maximization and safety constraint satisfaction. By introducing the first policy-finetuning based framework for O2O safe RL, which is compatible with many offline and online safe RL methods, our work has the great potential to advance the field towards more efficient and practical safe RL solutions.
