Skip to main navigation Skip to search Skip to main content

Offline constrained policy optimization with safe anchoring

  • Diyuan Hou
  • , Longyang Huang
  • , Pu Feng
  • , Wenjun Wu*
  • *Corresponding author for this work
  • Beihang University
  • Shanghai Jiao Tong University

Research output: Contribution to journalArticlepeer-review

Abstract

The application of reinforcement learning (RL) in real-world scenarios is limited due to safety concerns and the distribution-shift challenge in the offline setting. To address these issues, we formulate safe offline RL as a constrained policy optimization problem that integrates cumulative cost constraints and behavioral policy regularization. We first derive the analytical solution of the offline constrained policy optimization problem through Lagrangian duality. Then, we prove that iterative updates of this solution guarantee monotonic performance improvement while bounding worst-case costs relative to the behavioral policy. To further prevent out-of-distribution actions that may violate safety constraints, we propose a mechanism that distills a “safe action” distribution from the offline data and restricts policy updates within this safe region. We term this approach safe anchoring. By projecting the analytical solution into a parameterized policy space using a VAE-distilled safe anchoring mechanism, we develop the Offline Constrained Policy Optimization with Safe Anchoring (OCPO-SA) algorithm. Extensive experiments on Safety-Gymnasium and Bullet-Safety-Gym demonstrate that OCPO-SA achieves safety in all tested environments, with the average cost reduced by 24% compared with the best-performing baseline among the compared algorithms.

Original languageEnglish
Article number108865
JournalNeural Networks
Volume201
DOIs
StatePublished - Sep 2026

Keywords

  • Behavior regularization
  • Constrained policy optimization
  • Safe anchoring
  • Safe offline reinforcement learning

Fingerprint

Dive into the research topics of 'Offline constrained policy optimization with safe anchoring'. Together they form a unique fingerprint.

Cite this