FOSP: Fine-tuning Offline Safe Policy through World Models

Chenyang Cao, Yucheng Xin, Silang Wu, Longxiang He, Zichen Yan +2 more
7/6/2024
cs.ROcs.LG

No official code found. Best implementation: Sunlighted/FOSP (8 stars, Apache-2.0, last commit 2025-07-19).

Abstract

Offline Safe Reinforcement Learning (RL) seeks to address safety constraints by learning from static datasets and restricting exploration. However, these approaches heavily rely on the dataset and struggle to generalize to unseen scenarios safely. In this paper, we aim to improve safety during the deployment of vision-based robotic tasks through online fine-tuning an offline pretrained policy. To facilitate effective fine-tuning, we introduce model-based RL, which is known for its data efficiency. Specifically, our method employs in-sample optimization to improve offline training efficiency while incorporating reachability guidance to ensure safety. After obtaining an offline safe policy, a safe policy expansion approach is leveraged for online fine-tuning. The performance of our method is validated on simulation benchmarks with five vision-only tasks and through real-world robot deployment using limited data. It demonstrates that our approach significantly improves the generalization of offline policies to unseen safety-constrained scenarios. To the best of our knowledge, this is the first work to explore offline-to-online RL for safe generalization tasks.

View on arXivView PDF

Code Implementations(1)

Sunlighted/FOSPCommunity74%
Apache-2.0

Official code for the ICLR2025 article "FOSP: Fine-tuning Offline Safe Policy through World Models"

80Shell, PythonJun 20, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{cao2024fosp,
  title  = {FOSP: Fine-tuning Offline Safe Policy through World Models},
  author = {Chenyang Cao and Yucheng Xin and Silang Wu and Longxiang He and Zichen Yan and Junbo Tan and Xueqian Wang},
  year   = {2024},
  eprint = {2407.04942},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04942v2},
  journal = {ICLR 2024 2024}
}

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/2407.04942.svg)](https://codeofpaper.com/paper/2407.04942)

Discussion