Online Optimization for Offline Safe Reinforcement Learning
Yassine Chemingui, Aryan Deshwal, Alan Fern, Thanh Nguyen-Tang, Janardhan Rao Doppa
TL;DR
This paper introduces O3SRL, a minimax framework for offline safe reinforcement learning that learns reward-maximizing policies under a cumulative cost constraint using fixed data. It combines an offline RL oracle with a no-regret online optimizer to update the Lagrange multiplier, providing convergence guarantees to the minimax solution. To address practical challenges, it offers a discrete-λ, EXP3-based approximation that avoids repeated offline policy evaluation and reduces computation, while remaining compatible with various offline RL methods. Empirical results on the DSRL benchmark show that O3SRL reliably enforces safety under tight budgets and achieves competitive rewards, outperforming several state-of-the-art baselines. The work suggests strong applicability to safety-critical domains and potential extensions to offline-to-online safe RL scenarios.
Abstract
We study the problem of Offline Safe Reinforcement Learning (OSRL), where the goal is to learn a reward-maximizing policy from fixed data under a cumulative cost constraint. We propose a novel OSRL approach that frames the problem as a minimax objective and solves it by combining offline RL with online optimization algorithms. We prove the approximate optimality of this approach when integrated with an approximate offline RL oracle and no-regret online optimization. We also present a practical approximation that can be combined with any offline RL algorithm, eliminating the need for offline policy evaluation. Empirical results on the DSRL benchmark demonstrate that our method reliably enforces safety constraints under stringent cost budgets, while achieving high rewards. The code is available at https://github.com/yassineCh/O3SRL.
