PAC Bounds for Discounted MDPs

Tor Lattimore, Marcus Hutter

Introduction

In Reinforcement Learning (RL), a fundamental question is: "How much experience does an agent need before it starts acting optimally?" This question of sample complexity is addressed by the "Probably Approximately Correct" (PAC) framework. While bounds for these problems have existed for years, they have historically been loose, leaving a significant gap between theoretical possibilities and proven results. In their 2012 paper, Tor Lattimore and Marcus Hutter bridge this gap for finite-state discounted Markov Decision Processes (MDPs), providing upper and lower bounds that finally align.

The PAC-MDP Framework

When an agent explores an unknown environment, it faces a trade-off between exploration (trying new things) and exploitation (using what it knows). A PAC-MDP algorithm is one that, with high probability ($1-\delta$), makes only a finite number of "mistakes"—steps where its performance is not $\epsilon$-optimal.

The primary challenge in this setting is the discount factor ($\gamma$). In discounted MDPs, rewards in the far future are weighted less than immediate rewards. The term $1/(1-\gamma)$ acts as an "effective horizon"—the number of steps into the future the agent must consider. Previous research yielded upper bounds scaling with $1/(1-\gamma)^4$ or even $1/(1-\gamma)^6$. Lattimore and Hutter set out to determine if a tighter, fundamental limit exists as this horizon grows.

Methodology: Optimism and Variance

The authors base their work on the Upper Confidence Reinforcement Learning (UCRL) algorithm. UCRL follows the "optimism in the face of uncertainty" principle: it maintains a set of plausible models of the world and acts according to the best possible one.

The core innovation in this paper is the transition from Hoeffding’s inequality to Bernstein’s inequality for parameter estimation. While the standard Hoeffding approach treats all estimation errors equally, Bernstein’s inequality accounts for the variance of the transitions. If an action leads to a state with very high probability, the variance is low, allowing the agent to reach a confident estimate much faster. Additionally, the authors introduce a "knownness" index—a bookkeeping method that triggers model updates only when the agent has gathered enough new information to significantly change its confidence in a specific state-action pair.

The "Hard MDP" and the Two-State Assumption

To prove the lower bound, the authors construct a "Hard MDP" designed to be "bandit-like." This construction forces any algorithm to spend a specific amount of time exploring suboptimal actions before it can statistically distinguish the best one.

Figure 1: A two-state MDP used to illustrate the fundamental difficulty of learning in discounted environments.

To make the mathematics tractable for the upper bound, the authors initially assumed each action leads to at most two possible next-states. While this "Two-State" assumption (illustrated in Figure 1) might seem restrictive, it captures the core difficulty of the problem. The authors argue that the complexity of learning transitions between two states is the bottleneck for larger systems.

Key Results: Closing the Gap

The paper's primary contribution is the derivation of matching upper and lower bounds (up to logarithmic factors), effectively pinning down the sample complexity of discounted MDPs.

Upper Bound

For MDPs satisfying the two-state assumption, the number of suboptimal steps is bounded by: $$\tilde{O}\left( \frac{|S \times A|}{\epsilon^2 (1-\gamma)^3} \log \frac{1}{\delta} \right)$$ This represents a significant improvement over the previous best of $1/(1-\gamma)^4$.

Lower Bound

The authors proved that for any policy, there exists an MDP where the agent must make at least: $$\Omega\left( \frac{|S \times A|}{\epsilon^2 (1-\gamma)^3} \log \frac{1}{\delta} \right)$$ suboptimal steps.

By demonstrating that the error in the value function estimate is proportional to the variance of the next-state distribution, the authors proved that one doesn't need as many samples to learn "stable" transitions. This insight directly shaves a factor of $1/(1-\gamma)$ off the complexity.

Conclusion and Future Work

The primary limitation of this work is the "Two-State" assumption. While the authors provide a path to generalize this, the current generalization introduces a dependency on $|S|^2$. The authors suggest that this assumption is likely an artifact of the proof technique rather than a fundamental property of MDPs.

Future research will likely focus on refining the "Extended Value Iteration" process to handle more complex transition distributions without losing the tight $1/(1-\gamma)^3$ dependence. Furthermore, while this paper focuses on sample complexity, optimizing the algorithm's computational runtime remains an open area for exploration. By matching the upper and lower bounds, Lattimore and Hutter have provided a definitive target for the efficiency of reinforcement learning algorithms in discounted environments.

Summary updated

BibTeX
@article{lattimore2014pac,
  author = {Tor Lattimore and Marcus Hutter},
  title = {{PAC Bounds for Discounted MDPs}},
  journal = {Theoretical Computer Science},
  year = {2014},
  doi = {10.1016/j.tcs.2014.09.029},
}
Figure