A Primal-Dual-Critic Algorithm for Offline Constrained Reinforcement Learning

Kihyuk Hong, Yuhang Li, Ambuj Tewari

Abstract

The Primal-Dual-Critic Algorithm (PDCA) is a novel framework for offline constrained reinforcement learning (RL) that achieves $1/\epsilon^2$ sample complexity while significantly relaxing theoretical assumptions. Unlike previous state-of-the-art methods that require the restrictive "Bellman completeness" assumption, PDCA operates under the milder condition of "realizability." By alternating between a no-regret policy player and a greedy dual player, PDCA identifies nearly optimal policies that strictly adhere to safety constraints in static datasets.

Introduction

In high-stakes domains like autonomous driving or healthcare, learning through trial and error is often unfeasible due to safety risks. Offline Reinforcement Learning (RL) addresses this by learning from historical datasets. However, real-world tasks often require satisfying specific safety constraints (e.g., "maximize speed while maintaining a collision probability below 5%").

The primary hurdle in offline constrained RL is distribution shift: the learned policy may explore regions of the state-action space poorly represented in the dataset. Proving the efficiency of such algorithms typically requires strong assumptions about data coverage and function representation. PDCA addresses these challenges by providing a theoretically sound and empirically robust framework that requires much weaker assumptions than prior work.

Theoretical Contributions: Beyond Bellman Completeness

A major contribution of PDCA is the relaxation of the "Bellman completeness" assumption—the requirement that a function class is closed under the Bellman operator. PDCA instead relies on "realizability," assuming only that the true value function lies within the chosen function class. This shift makes the algorithm more applicable to practical scenarios using complex models like neural networks.

Comparison of PDCA with existing offline RL algorithms regarding constraints, assumptions, and sample complexity.

As shown in the table above, PDCA maintains the optimal $1/\epsilon^2$ sample complexity while supporting constraints and utilizing more realistic assumptions regarding data coverage and representation compared to previous methods like MBCL or A-Crab.

The PDCA Algorithm

PDCA formulates the constrained RL problem as a Lagrangian optimization: $$L(\pi, \lambda) = \text{Reward}(\pi) + \lambda \cdot (\text{Threshold} - \text{Cost}(\pi))$$

The algorithm employs a unique Primal-Dual structure:

  1. The Primal Player ($\pi$): Updates the policy to maximize the Lagrangian using a "no-regret" oracle (e.g., Natural Policy Gradient).
  2. The Dual Player ($\lambda$): Updates the Lagrange multiplier greedily to minimize the Lagrangian. This greedy update is possible because the policy player moves first in each iteration, simplifying both implementation and analysis.
  3. Dual Critics: PDCA utilizes two sets of critics. One set estimates reward and cost for the policy player, while a separate Offline Policy Evaluation (OPE) oracle provides cost estimates for the dual player.

By finding a "near saddle point" of the Lagrangian, PDCA identifies a policy that balances performance with strict constraint satisfaction.

Empirical Evaluation

The authors evaluated PDCA across synthetic Tabular CMDPs, the Real-World RL (RWRL) Suite, and the high-dimensional Bullet Safety Gym.

Reward and Cost performance of PDCA compared to baselines as dataset size increases.

In the RWRL suite, PDCA demonstrated competitive performance, matching or exceeding state-of-the-art baselines like COptiDICE. As illustrated in the plots, PDCA effectively approaches the optimal reward while maintaining costs near or below the specified threshold as the dataset size ($n$) grows. In the Bullet Safety Gym, PDCA remained competitive with Transformer-based approaches like CDT while offering the advantage of producing Markovian policies, which are easier to deploy in standard engineering pipelines.

Conclusion and Future Work

PDCA provides a robust theoretical foundation for offline constrained RL by achieving optimal sample complexity under relaxed assumptions. While highly effective, the current framework's OPE oracle requires broad data coverage over the function class. Future research aims to relax this to "single-policy concentrability" and incorporate explicit pessimism to enhance robustness in datasets with limited coverage.

Summary updated

BibTeX
@inproceedings{hong2024primal,
  author = {Kihyuk Hong and Yuhang Li and Ambuj Tewari},
  title = {{A Primal-Dual-Critic Algorithm for Offline Constrained Reinforcement Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure