Online Optimization for Offline Safe Reinforcement Learning

Yassine Chemingui, Aryan Deshwal, Alan Fern, Thanh Nguyen-Tang, Janardhan Rao Doppa
10/24/2025
cs.LGcs.AIstat.ML

Official code: yassineCh/O3SRL (8 stars, last commit 2025-10-23).

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.

View on arXivView PDF

Code Implementations(1)

yassineCh/O3SRLOfficial100%

Implementation of O3SRL: Online Optimization for Offline Safe Reinforcement Learning

81PythonMay 22, 202512 months ago

Similar Papers

Cite this paper

@article{chemingui2025online,
  title  = {Online Optimization for Offline Safe Reinforcement Learning},
  author = {Yassine Chemingui and Aryan Deshwal and Alan Fern and Thanh Nguyen-Tang and Janardhan Rao Doppa},
  year   = {2025},
  eprint = {2510.22027},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.22027v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.22027.svg)](https://codeofpaper.com/paper/2510.22027)

Discussion