NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Primal-Dual Algorithm for Offline Constrained Reinforcement Learning with Linear MDPs

Kihyuk Hong, Ambuj Tewari

Executive Summary

This paper introduces the first computationally efficient primal-dual algorithm for offline reinforcement learning (RL) with linear Markov Decision Processes (MDPs) that achieves the optimal $\mathcal{O}(\epsilon^{-2})$ sample complexity. By cleverly reparameterizing the problem into a low-dimensional space and utilizing "Barycentric spanners," the authors provide a robust framework that operates under realistic "partial data coverage" assumptions and extends seamlessly to constrained RL settings.

The Challenge of Offline RL

Offline RL—learning an optimal policy from a fixed, pre-collected dataset—is essential for real-world applications like healthcare or robotics where live experimentation is dangerous or expensive. However, it faces two major hurdles:

  1. Distribution Shift: The dataset might not cover the states and actions that an optimal policy would visit. Most early algorithms assumed "uniform coverage" (the dataset covers everything), which is rarely true in practice. "Partial coverage" (covering only the target policy) is more realistic but mathematically challenging.
  2. Scalability: In large state spaces, we must use function approximation (like Linear MDPs). Previous efficient algorithms for Linear MDPs under partial coverage either had suboptimal sample complexity (requiring $\mathcal{O}(\epsilon^{-4})$ or $\mathcal{O}(\epsilon^{-5})$ samples) or were computationally prohibitive.

This paper closes that gap, providing an algorithm that is both fast and sample-efficient.

A Primal-Dual Approach with Barycentric Spanners

The authors frame RL as a Linear Programming (LP) problem and solve its dual. Their approach involves a multi-player game played over $T$ steps:

  • The $\pi$-player: Updates the policy using a softmax-based exponentiation algorithm (mirror descent).
  • The $\zeta$-player: Optimizes the action-value function parameters.
  • The $\lambda$-player: Manages the "feature occupancy," representing where the policy spends its time in the abstract feature space.
  • The $w$-player (for constrained RL): Adjusts weights to ensure safety constraints are met.

The Secret Sauce: Barycentric Spanners To avoid the "double-loop" structures that slowed down previous methods (and led to $\mathcal{O}(\epsilon^{-4})$ complexity), the authors restrict the $\lambda$-player to a carefully designed confidence set. They use a geometric tool called a Barycentric spanner to represent any point in the high-dimensional feature space using just a small set of "basis" points from the dataset. This allows them to use a "covering argument" that scales with the feature dimension $d$ rather than the dataset size $n$, enabling the faster $\mathcal{O}(\epsilon^{-2})$ rate.

Key Insights and Algorithm Comparison

  • Efficiency via Reparameterization: By shifting the optimization from the high-dimensional state-action space to a low-dimensional feature space ($\mathbb{R}^d$), the algorithm remains efficient even when the state space is effectively infinite.
  • Optimal Sample Complexity: Achieving $\mathcal{O}(\epsilon^{-2})$ is a significant milestone. As shown in the comparison table below, this matches the best rates for general function approximation but does so with a computationally efficient implementation specifically tailored for Linear MDPs.
  • Feature Coverage vs. State Coverage: The algorithm relies on "Concentrability" or "Feature Coverage" assumptions. This means the dataset only needs to "cover" the optimal policy in terms of the features it visits, which is a much weaker and more practical requirement than covering every possible state-action pair.
Table 1: Comparison of the proposed algorithm to previous methods for offline (constrained) RL.

Theoretical Results

As a theoretical contribution, the paper provides rigorous mathematical proofs based on a dataset $\mathcal{D}$ of $n$ i.i.d. transitions $(s, a, s')$ sampled from a behavior distribution $\mu_B$. The results are validated through sample complexity bounds rather than empirical curves.

  • Unconstrained Setting: The algorithm finds an $\epsilon$-optimal policy with a sample complexity of $n = \mathcal{O}\left(\frac{(C^*)^2 d^3 \log(\dots)}{(1-\gamma)^2 \epsilon^2}\right)$. This is a direct improvement over the previous state-of-the-art $\mathcal{O}(\epsilon^{-4})$.
  • Constrained Setting: When additional reward signals (like safety costs) are introduced, the algorithm still achieves $\mathcal{O}(\epsilon^{-2})$ complexity while ensuring that constraints are satisfied within an $\epsilon$ tolerance.
  • Computational Efficiency: The algorithm avoids expensive operations that scale with the size of the state space, making it suitable for practical use in large-scale problems.

Limitations and Future Work

  • Linearity Requirement: The results strictly apply to Linear MDPs, where transitions and rewards are linear functions of features. Extending this efficiency to non-linear function classes (like deep neural networks) remains an open challenge.
  • Known Features: The algorithm assumes the feature map $\phi$ is known beforehand. In many modern RL tasks, features must be learned from raw data (e.g., pixels).
  • Feature Coverage Strength: The authors acknowledge that their "feature coverage" assumption is slightly stronger than some non-efficient counterparts. Weakening this assumption while maintaining $\mathcal{O}(\epsilon^{-2})$ efficiency is a suggested path for future research.

Summary updated

BibTeX
@inproceedings{hong2024primal,
  author = {Kihyuk Hong and Ambuj Tewari},
  title = {{A Primal-Dual Algorithm for Offline Constrained Reinforcement Learning with Linear MDPs}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=S80a4hJtuE},
}
Figure