Offline Constrained Reinforcement Learning under Partial Data Coverage

Seokmin Ko, Ambuj Tewari, Kihyuk HongNeurIPS 2026

TL;DR

Learning safe, constraint-satisfying behaviors strictly from logged data is notoriously tricky when that data doesn't cover every possible situation an agent might dream up during training. This paper introduces PDOCRL, an algorithm that learns near-optimal, safe policies under partial data coverage without needing to know how the data was originally collected or resorting to computationally intractable math. It gives you provable safety and sample-efficiency guarantees using standard, practical optimization building blocks.

What Problem Does This Paper Address?

Imagine training a surgical robot or self-driving car using only pre-recorded, static logs—this is offline reinforcement learning (RL). Now add strict safety budgets, like "keep speed limits" or "don't exceed force thresholds," turning it into offline constrained RL.

The core headache here is partial data coverage: your dataset only shows what the logging policy actually did, not every "what-if" scenario. In standard unconstrained offline RL, actor-critic methods handle this via pessimism—penalizing uncertain actions. However, when constraints enter the picture, standard primal-dual algorithms adjust safety penalties by evaluating intermediate policies encountered mid-training. If an intermediate policy wanders outside the logged data's support, evaluating its safety becomes guesswork, breaking the algorithm unless you assume the dataset covers everything (full coverage).

Linear Programming (LP) methods sidestep intermediate policy evaluation by optimizing over state-action "occupancy measures" (how frequently pairs are visited) or density ratios relative to the dataset. Yet prior LP approaches force an unpleasant pick-your-poison trade-off: they either require solving computationally intractable min-max problems, or they require knowing the exact, unknown data-generating distribution ($\mu_D$) to extract an actual playable policy at the end.

Table 1: Algorithms for offline constrained RL. Red entries indicate an undesirable property

Methods

Instead of an actor-critic setup, the authors build PDOCRL (Primal-Dual Offline Constrained RL) from the LP perspective, introducing two clever structural maneuvers:

  1. Lagrangian Decomposition & Reparameterization: Normally, the occupancy measure $\mu$ has to do double duty: help estimate expectations from offline data (via a density ratio $w = \mu/\mu_D$) and yield the final policy. The authors split $\mu$ into two copies ($\mu = \nu$). One copy ($\mu$) uses the density ratio $w$ to estimate the objective directly from data samples. The second copy ($\nu$) is algebraically reparameterized to make the policy $\pi$ an explicit optimization variable. Because $\pi$ is optimized directly inside the loop, there is no separate, fragile policy-extraction step at the end—and zero need to know $\mu_D$.
  2. Oracle-Efficient Primal-Dual Updates: Because the resulting decomposed Lagrangian is linear in each variable block, PDOCRL avoids intractable min-max optimization. Instead, it iteratively updates four players using standard, computationally friendly "oracles" (sub-routines): no-regret online linear optimization for density ratios ($w$), no-regret policy optimization (like natural policy gradient) for the policy ($\pi$), and simple linear minimization for the action-value critic ($Q$) and safety multipliers ($\lambda$).

Datasets

The authors evaluate PDOCRL on continuous-control tasks with explicit safety constraints from the BulletGym benchmark (specifically BallRun, CarRun, DroneRun, AntRun, BallCircle, CarCircle, DroneCircle, and AntCircle). They use existing offline datasets from the DSRL package—essentially the safety-focused cousin of D4RL—created by merging trajectories from multiple expert policies trained under varying cost thresholds. No new datasets are introduced.

Key Insights and Ideas

  • Empirical policy extraction is statistically fragile: Common practical tricks extract a policy from learned density ratios via importance-weighted behavior cloning. The authors prove (Proposition 1) that even with a tiny 2-state, 2-action MDP and an optimal density ratio, finite-sample behavior cloning fails with constant probability. Optimizing the policy directly isn't just convenient; it dodges a fundamental statistical trap.
  • The "Spurious Saddle Point" trap: When using general function approximation (like neural networks) in restricted LP formulations, realizing the optimal policy, its occupancy measure, and optimal $Q$-functions isn't enough! The optimization landscape can still harbor "fake" saddle points corresponding to suboptimal policies (Proposition 2).
  • How to banish fake solutions: Combining Slater’s condition (assuming at least one policy satisfies safety constraints with room to spare, which bounds the dual variables) with all-policy Q-realizability (the critic class can represent action-values for all policies in your class) completely eliminates spurious saddle points.

Key Results

  • Theoretical: Under partial coverage (requiring coverage only of an optimal feasible policy), PDOCRL returns a near-optimal, near-feasible policy with an $\widetilde{\mathcal{O}}(\epsilon^{-2})$ sample complexity guarantee. Dropping the safety terms also yields PDORL, an unconstrained offline RL variant that competes with any covered policy.
  • Empirical: Across all 8 BulletGym tasks, PDOCRL is the only tested method to keep its average normalized cost below the safety threshold of $1.0$, achieving an overall average normalized cost of $0.30$ (versus $0.82$ for BC-Safe, $1.04$ for CDT, and $2.55$ for COptiDICE). However, its average normalized reward is conservative at $0.30$ (compared to $0.52$ for BC-Safe and $0.55$ for COptiDICE), though it shines on tasks like CarRun ($0.80$ reward, $0.11$ cost) and CarCircle ($0.63$ reward, $0.11$ cost).
  • Ablation: Removing the reparameterization trick and forcing a separate policy-extraction step tanks average reward from $0.30$ down to $-0.22$ and spikes cost from $0.30$ to $1.96$ (unsafe), validating the direct-optimization design.

Limitations and Future Work

  • Strong Critic Assumption: Ruling out spurious saddle points required all-policy action-value realizability. Relaxing this to single-policy realizability while keeping oracle efficiency is a prime open question.
  • Theory-to-Practice Gap: Theoretical guarantees apply to Algorithm 1 (ideal oracles, outputting a uniform mixture of policies). The deep RL experiments use neural networks, gradient-based surrogates, clipped weights, and evaluate the last-iterate policy—making the experiments a proof of concept rather than a literal verification of the theorems.
  • Conservatism: In practice, PDOCRL tends to play it very safe, sometimes sacrificing substantial reward to keep constraint costs well below the limit, and average safety across seeds doesn't guarantee zero violations on every single episode.

Summary updated

Abstract

We study offline constrained reinforcement learning with general function approximation in discounted constrained Markov decision processes. Existing methods either require full data coverage for evaluating unsupported intermediate policies, are not oracle efficient, or requires the knowledge of data-generating distribution for policy extraction. We propose PDOCRL, an oracle-efficient primal-dual algorithm based on a decomposed linear-programming formulation. The decomposition makes the policy an explicit optimization variable, avoiding policy extraction through the unknown distribution $\mu_D$. We show that naive restricted saddle-point formulations may have spurious saddle points, so realizability of an optimal solution alone is insufficient. We then show that, under a stronger but explicit realizability assumption, every restricted saddle point is optimal, avoiding the regularization and auxiliary function classes used in prior LP-based analyses. These ingredients yield PDOCRL, an oracle-efficient primal-dual algorithm that computes a near saddle point of the empirical decomposed LP Lagrangian and returns a near-optimal, near-feasible policy with a $\widetilde{\mathcal O}(\epsilon^{-2})$ sample guarantee under partial coverage, without access to $\mu_D$ or a reference policy. Empirically, PDOCRL is competitive with strong baselines on standard offline constrained RL benchmarks.
BibTeX
@inproceedings{ko2026offline,
  author = {Seokmin Ko and Ambuj Tewari and Kihyuk Hong},
  title = {{Offline Constrained Reinforcement Learning under Partial Data Coverage}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=YXF70sZQPU},
}
Figure