Offline Reinforcement Learning Under Value and Density-Ratio Realizability: The Power of Gaps

Jinglin Chen, Nan Jiang

Abstract

We consider a challenging theoretical problem in offline reinforcement learning (RL): obtaining sample-efficiency guarantees with a dataset lacking sufficient coverage, under only realizability-type assumptions for the function approximators. While the existing theory has addressed learning under realizability and under non-exploratory data separately, no work has been able to address both simultaneously. Under an additional gap assumption, we provide guarantees to a simple pessimistic algorithm based on a version space formed by marginalized importance sampling (MIS), and the guarantee only requires the data to cover the optimal policy and the function classes to realize the optimal value and density-ratio functions. While similar gap assumptions have been used in other areas of RL theory, our work is the first to identify the utility and the novel mechanism of gap assumptions in offline RL with weak function approximation.

Introduction

Offline reinforcement learning (RL) aims to derive high-performing policies from fixed datasets without further environment interaction. This paradigm is essential for applications where exploration is costly or dangerous. However, establishing sample-efficiency guarantees for offline RL typically necessitates one of two restrictive conditions: either the dataset must provide exhaustive coverage of the state-action space, or the function approximators must satisfy "Bellman completeness"—a condition where the function class is closed under Bellman updates.

In practice, researchers prefer weaker assumptions: Realizability (the true optimal function exists within the class) and Single-Policy Coverage (the data only needs to cover the optimal policy). Until recently, theoretical results suggested that this combination was fundamentally intractable. This paper identifies the "Value Gap"—a minimum margin between the value of the optimal action and the next-best action—as the critical missing piece that makes this setting tractable.

The Intractability Barrier and the Gap Assumption

The core difficulty in offline RL with limited coverage is the risk of "imposter" policies. Without exhaustive data, an algorithm might select a policy that appears optimal based on available data but performs poorly in unexplored regions. To demonstrate this, we utilize a custom MDP counterexample.

Figure 1: A custom MDP counterexample demonstrating that without a gap assumption, offline RL under realizability can fail even with infinite data.

As shown in Figure 1, the MDP structure allows for a scenario where a suboptimal policy $\pi_f$ can mimic the optimal policy $\pi^*$ in the regions covered by the data. Without a gap assumption, any algorithm can be forced to fail because it cannot distinguish between the true optimal path and these deceptive alternatives. The gap assumption acts as a tie-breaker, preventing the algorithm from being misled by policies that only appear optimal due to missing data.

The PABC Algorithm

To address this challenge, we introduce PABC (Pessimism under Average Bellman error Constraints). The algorithm proceeds in two distinct stages:

  1. Prescreening: The algorithm filters the function class $\mathcal{F}$ to retain only those functions that exhibit a minimum gap ($C_{gap}$) between the best action and all others.
  2. Pessimistic Optimization: From the filtered class, PABC identifies the function that minimizes the estimated value at the starting state (pessimism) while satisfying constraints based on the "Average Bellman Error."

Unlike many existing approaches that rely on squared Bellman errors—which often require "double-sampling" (two independent samples from the same state)—PABC utilizes average error weighted by a density-ratio class $\mathcal{W}$. This makes the algorithm significantly more practical for estimation from standard offline datasets.

Key Theoretical Insights

Our analysis reveals several surprising properties of the gap assumption in offline RL:

  • Value Estimation vs. Policy Learning: We demonstrate that it is possible to estimate the value of the optimal policy ($v^*$) without any gap assumption. The gap is only strictly necessary when the goal is to output the policy itself.
  • Robustness to Misspecification: The algorithm remains robust even if the models are slightly misspecified (i.e., the true $Q^*$ is only approximately in the class). Furthermore, the gap of the model and the gap of the true environment can be treated separately.
  • Handling Unknown Gaps: We introduce a variant, PABC-OA, which can handle an unknown gap by utilizing a minimal amount of online interaction to perform Monte Carlo evaluation and "check" the algorithm's output.

Results and Sample Complexity

We provide the first provable guarantees for the "Realizability + Single-Policy Coverage" setting. For a known gap, the required sample complexity scales with $1/\epsilon^2$ and $1/\text{gap}^2$. This matches the "fast rates" observed in simpler RL settings and effectively breaks the previously perceived intractability barrier.

Discussion and Future Work

While this work provides a significant theoretical step forward, several challenges remain. The gap assumption is most naturally suited for discrete action spaces; extending these guarantees to continuous actions, where the margin between actions may be infinitesimal, is a key area for future research. Additionally, while the density-ratio requirement is more flexible than Bellman completeness, it still represents an additional modeling burden. Future work should explore combining gap-based logic with regularization techniques to further relax these requirements and improve computational efficiency for complex neural network architectures.

Summary updated

BibTeX
@inproceedings{chen2022offline,
  author = {Jinglin Chen and Nan Jiang},
  title = {{Offline Reinforcement Learning Under Value and Density-Ratio Realizability: The Power of Gaps}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=B5LzMd8jcg9},
}
Figure