Self-Alignment for Offline Safe Reinforcement Learning

Seungyub Han, Hyung Jjn Kim, Jungwoo LeeOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Deploying an offline reinforcement learning (RL) agent into a downstream task is challenging and faces unpredictable transitions due to the distribution shift between the offline RL dataset and the real environment. To solve the distribution shift problem, some prior works aiming to learn a well-performing and safer agent have employed conservative or safe RL methods in the offline setting. However, the above methods require a process of retraining from scratch or fine-tuning to satisfy the desired criteria for performance and safety. In this work, we propose a Lyapunov conditioned self-alignment method for a transformer-based world model , which does not require retraining and conducts the test-time adaptation for the desired criteria. We show that a transformer-based world model can be described as a model-based hierarchical RL. As a result, we can combine hierarchical RL and our in-context learning for self-alignment in transformers. The proposed self-alignment framework aims to make the agent safe by self-instructing with the Lyapunov condition. In experiments, we demonstrate that our self-alignment algorithm outperforms safe RL methods in continuous control and safe RL benchmark environments in terms of return, costs, and failure rate.
BibTeX
@misc{han2025self,
  author = {Seungyub Han and Hyung Jjn Kim and Jungwoo Lee},
  title = {{Self-Alignment for Offline Safe Reinforcement Learning}},
  year = {2025},
  url = {https://openreview.net/forum?id=ZtOnddFVT3},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}
Figure