Minimax PAC bounds on the sample complexity of reinforcement learning with a generative model

Mohammad Gheshlaghi Azar, Rémi Munos, Hilbert J. KappenMachine Learning 2013

Abstract

This paper addresses the fundamental problem of sample complexity in discounted Markov Decision Processes (MDPs). We analyze the number of samples required to learn an $\epsilon$-optimal action-value function and policy when given access to a generative model (a simulator). By introducing a novel variance-based analysis, we establish the first minimax optimal bounds for this setting. Our results show that both Value Iteration and Policy Iteration require $O(N \log(N/\delta) / ((1-\gamma)^3 \epsilon^2))$ samples, matching a matching lower bound. This improves upon previous state-of-the-art results by a factor of $1/(1-\gamma)$, effectively closing the theoretical gap in the sample complexity of reinforcement learning with a simulator.

Introduction

A central question in reinforcement learning (RL) theory is the "sample complexity" of an algorithm: how much data must an agent collect from its environment to learn a policy that is nearly optimal? In this work, we focus on the Probably Approximately Correct (PAC) framework within discounted-reward MDPs.

Prior to this research, a significant gap existed between the theoretical upper bounds of known algorithms and the mathematical lower bounds of the problem. While lower bounds suggested a dependence on the discount factor $\gamma$ of $(1-\gamma)^{-3}$, the best available upper bounds scaled at $(1-\gamma)^{-4}$ or worse. This discrepancy left it unclear whether standard algorithms like Value Iteration were inherently suboptimal or if the analytical tools used to bound them were simply too loose. This paper resolves this question by providing a tighter analysis that matches the lower bound, establishing the minimax optimality of model-based RL in this setting.

The Generative Model Setting

We consider an MDP with $N$ state-action pairs and a discount factor $\gamma \in [0, 1)$. The learner has access to a generative model, which serves as a simulator. This allows the learner to sample a next-state $s'$ and a reward $r$ for any arbitrary state-action pair $(s, a)$. While this setting bypasses the "exploration" challenge of online RL—where an agent must physically navigate from state to state—it provides the necessary theoretical foundation for understanding the statistical efficiency of RL algorithms.

Methodological Innovation: The Bellman Equation for Variance

The primary technical hurdle in previous analyses was the reliance on Hoeffding’s inequality. Hoeffding-based bounds typically scale with the maximum possible value of the value function, $V_{max} = R_{max}/(1-\gamma)$. Because $V_{max}$ grows rapidly as $\gamma$ approaches 1, this leads to pessimistic sample complexity estimates.

To achieve a tighter bound, we employ Bernstein’s inequality, which scales with the variance of the random variables rather than just their maximum range. The core innovation of this paper is the discovery that the variance of the sum of discounted rewards itself satisfies a Bellman-like recursion. By treating variance as a quantity that propagates through the MDP similarly to the value function, we developed a component-wise analysis that tracks error propagation more precisely. This allows us to show that the total uncertainty in the value estimate is governed by the cumulative variance along trajectories, which is significantly smaller than the worst-case $V_{max}$ would suggest.

Main Results

1. Upper Bounds for Q-Value and Policy Iteration

We prove that for a model-based approach—where one estimates the transition probabilities from samples and then solves the resulting empirical MDP—the sample complexity is:

$$O\left(\frac{N \log(N/\delta)}{(1-\gamma)^3 \epsilon^2}\right)$$

This bound applies to both finding an $\epsilon$-optimal action-value function ($Q^*$) and an $\epsilon$-optimal policy. This represents a $1/(1-\gamma)$ improvement over previous results, which is particularly significant for long-horizon problems where $\gamma \approx 1$.

2. Minimax Lower Bound

To determine if this bound is the best possible, we constructed a class of "hard" MDPs characterized by high self-transition probabilities. In these environments, small errors in estimating transition dynamics are amplified over long horizons. We proved a matching lower bound of:

$$\Theta\left(\frac{N \log(N/\delta)}{(1-\gamma)^3 \epsilon^2}\right)$$

Because the upper and lower bounds match in their dependence on $N, \epsilon, \delta,$ and $\gamma$, the result is minimax optimal. This confirms that simple model-based RL is as efficient as any possible algorithm can be in the generative model setting.

Discussion and Impact

Our findings demonstrate that the perceived inefficiency of standard RL algorithms in earlier literature was a byproduct of loose analysis rather than a flaw in the algorithms themselves. By leveraging the recursive properties of variance, we provided a more accurate picture of how RL agents learn.

While this work assumes access to a generative model, the implications are broad. The variance-based analysis introduced here has since become a standard tool in RL theory, influencing the development of "online" PAC-MDP algorithms that must balance exploration and exploitation. Future work continues to extend these minimax results to settings with function approximation and continuous state spaces, building on the foundational insight that variance is the key to understanding RL sample complexity.

Summary updated

BibTeX
@article{azar2013minimax,
  author = {Mohammad Gheshlaghi Azar and Rémi Munos and Hilbert J. Kappen},
  title = {{Minimax PAC bounds on the sample complexity of reinforcement learning with a generative model}},
  journal = {Machine Learning},
  year = {2013},
  url = {https://openreview.net/forum?id=ghixrgFpcR},
}
Figure