Settling the sample complexity of model-based offline reinforcement learning

Gen Li, Laixi Shi, Yuxin Chen, Yuejie Chi, Yuting Wei

Abstract

This paper addresses a fundamental question in offline reinforcement learning (RL): can simple model-based approaches achieve optimal efficiency without the need for complex modifications or massive datasets? We demonstrate that a pessimistic model-based algorithm, Value Iteration with Lower Confidence Bounds (VI-LCB), achieves minimax-optimal sample complexity without any "burn-in" cost for tabular Markov decision processes (MDPs). By establishing results for both $\gamma$-discounted infinite-horizon and finite-horizon MDPs, we match known lower bounds across the entire range of target accuracies, effectively settling the sample complexity for these settings.

Introduction

Offline RL (or Batch RL) is the challenge of learning an optimal policy from a fixed, pre-collected dataset. This is critical in high-stakes domains like healthcare or autonomous driving, where active exploration is often dangerous or prohibitively expensive. However, offline RL faces two major hurdles: distribution shift (where the data collection policy differs from the target policy) and limited coverage (where some state-action pairs have few samples).

Previous theoretical work suggested that reaching "minimax optimality"—the theoretical limit of performance—required either a massive initial data requirement (a burn-in cost) or highly sophisticated variance reduction techniques. This paper proves that a simple, "plug-in" model-based approach is optimal from the very first sample.

The VI-LCB Algorithm

The authors analyze VI-LCB, which operates by building an empirical model of the environment directly from transition counts and applying "pessimism in the face of uncertainty." During value iteration, the algorithm subtracts a Bernstein-style penalty (the Lower Confidence Bound) from the estimated values. This prevents the agent from overestimating the value of actions it hasn't seen enough data for, effectively handling limited coverage.

To prove optimality, the authors introduced a "leave-one-out" analysis and a twofold subsampling trick. These mathematical innovations allow them to decouple the complex statistical dependencies that arise when the same data is reused across multiple iterations of the algorithm, avoiding the need for data-inefficient "sample splitting."

Main Results and Comparison

The core contribution is the proof that VI-LCB achieves $\epsilon$-accuracy with a sample complexity that matches the minimax lower bound for any $\epsilon > 0$.

Comparison of sample complexity and optimality ranges for various offline RL algorithms.

As shown in the table above, the proposed VI-LCB achieves a sample complexity of $\tilde{O}(\frac{SC^\star_{clipped}}{(1-\gamma)^3\epsilon^2})$ for infinite-horizon and $\tilde{O}(\frac{H^4SC^\star_{clipped}}{\epsilon^2})$ for finite-horizon MDPs. Crucially, the $\epsilon$-range to attain optimality covers the entire practical spectrum (e.g., $(0, H]$ for finite-horizon), whereas previous methods often required $\epsilon$ to be significantly smaller than $1/H^{2.5}$ to reach optimality.

Sample complexity of VI-LCB compared to prior work and minimax lower bounds for (a) infinite-horizon and (b) finite-horizon MDPs.

The visual comparison highlights how the new results track the minimax lower bound perfectly. Previous state-of-the-art methods (like those by Yan et al. or Xie et al.) either suffered from higher sample complexities or required a significant "burn-in" period before their performance curves reached the optimal slope.

Key Insights

  • Simplicity is Sufficient: Standard model-based approaches with the right penalty are enough to be sample-optimal; complex variance reduction schemes are not strictly necessary.
  • Clipped Concentrability ($C^\star_{clipped}$): The authors use a refined measure of distribution shift. This coefficient shows that if the optimal policy only visits a small subset of states, the algorithm can be even more efficient than previously thought.
  • Empirical Validation: Beyond theory, the authors validated their predictions using the Gambler’s Problem. They showed that the performance gap scales exactly as $1/\sqrt{N}$ (where $N$ is the number of samples), confirming the absence of a significant burn-in period in practice.

Conclusion

By eliminating the burn-in cost and matching minimax lower bounds across all accuracy levels, this work settles the sample complexity of tabular model-based offline RL. While future work is needed to extend these results to continuous state spaces via function approximation, this paper provides a solid theoretical foundation for building efficient and reliable RL systems in data-scarce environments.

Summary updated

BibTeX
@article{li2024settling,
  author = {Gen Li and Laixi Shi and Yuxin Chen and Yuejie Chi and Yuting Wei},
  title = {{Settling the sample complexity of model-based offline reinforcement learning}},
  journal = {The Annals of Statistics},
  year = {2024},
  doi = {10.1214/23-aos2342},
}
Figure