arXiv:2611.07616cs.LGNov 2026

Manuscript Offprint

arXiv:2611.07616

Monotone Viability Learning for Offline Safe Reinforcement Learning

Ziqian Wang, Zhen Zhang

ABSTRACT

Offline safe reinforcement learning requires reliable long-horizon safety estimates from fixed data. Learning Hamilton–Jacobi (HJ) viability in this setting calls for semantic preservation, convergence, and numerical stability. To address these challenges, we propose Monotone Viability Learning (MoViL), which learns viable sets from offline transitions through monotone finite-horizon set recursion. The recursion preserves finite-horizon safety semantics and converges to the infinite-horizon viability kernel. Binary supervision maintains a fixed target scale across horizons, avoiding discount-induced numerical attenuation. We further establish sufficient conditions for recovering behavior-supported viable subsets. The learned viability estimates are used to certify actions at deployment. Dubins car experiments validate the numerical accuracy of the learned viable sets. Evaluations on safe RL benchmarks demonstrate state-of-the-art reward–cost performance. MoViL satisfies the average cost constraint on every task and achieves the lowest average cost among the compared methods. These results highlight MoViL's potential to extend long-horizon HJ viability analysis to safety-critical systems where reliable dynamics models are unavailable and online exploration is unsafe.

1 Introduction

Safety is a central requirement for reinforcement learning (RL) in robotics and autonomous systems, where exploratory actions can cause physical damage or irreversible failures [1]. Offline RL learns policies from previously collected data, avoiding additional environment interaction during training [2]. Safe deployment also requires understanding how actions affect future constraint satisfaction. Many safe RL methods impose constraints on expected cumulative costs [3]. These constraints limit cumulative violations but do not directly guarantee safety throughout a trajectory [4]. State-wise safety methods, including those based on control barrier functions, impose explicit conditions for safe operation [5–7]. Safety certification methods assess proposed actions and intervene when necessary during deployment [8, 9]. Learning which states admit persistent safety and which actions preserve safe continuations is therefore an important objective in offline safe RL.

Hamilton–Jacobi (HJ) reachability provides a set-based characterization of persistent safety [10]. Grid-based HJ computation becomes expensive as the state dimension increases [11]. Neural solvers improve the scalability of HJ computation using known system dynamics [12], while RL-based methods enable reachability-related quantities to be learned from sampled transitions [13, 14]. Some discounted formulations achieve contraction by modifying the original reachability semantics [15]. Other HJ formulations preserve exact semantics without establishing a corresponding contractive Bellman formulation [16]. Recent work combines semantic preservation and contraction, with a numerical implementation based on known system dynamics [17]. Neural approximation errors can compromise the reliability of learned safety boundaries [18, 19]. This issue becomes more pronounced when discounting reduces long-horizon value magnitudes, leaving smaller margins for safety classification. Offline viability learning therefore requires a formulation that jointly addresses semantic preservation, convergence, and numerical stability.

*Corresponding author: Z. Zhang (e-mail: zzhang@tsinghua.edu.cn). The authors are both with the Department of Mechanical Engineering, Tsinghua University, Beijing 100084, China.

In this article, we propose Monotone Viability Learning (MoViL) for offline safe reinforcement learning. Building on classical viability-kernel approximation [20], MoViL learns long-horizon viability from offline transitions through monotone finite-horizon set recursion. At each layer, an observed transition provides a positive training example if it is violation-free and its successor belongs to the viable set estimated at the preceding layer. The learned viability information supports action-level certification during deployment, enabling a simple Gaussian behavior-cloning policy to achieve high returns with low costs. Dubins car experiments directly validate the numerical accuracy of MoViL against an independent HJ reference. Experiments on 17 Bullet-Safety-Gym and MetaDrive tasks from DSRL [21] evaluate the resulting policies across robotic control and autonomous driving settings.

The main contributions of this article are summarized as follows:

  1. We propose MoViL, which learns HJ viable sets from offline transitions through monotone finite-horizon recursion and uses the resulting estimates to certify policy actions.

  2. We prove that the finite-horizon viable sets converge to the infinite-horizon viability kernel. We also establish sufficient conditions for recovering behavior-supported viable subsets from offline data.

  3. We evaluate MoViL through numerical experiments and offline safe RL benchmarks. Dubins car experiments validate the accuracy of the learned viable sets. Across 17 offline safe RL tasks, MoViL achieves state-of-the-art reward-cost performance and the lowest average cost.

References (39)