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

On The Convergence Of Policy Iteration-Based Reinforcement Learning With Monte Carlo Policy Evaluation

Anna Winnicki, R. Srikant

TL;DR

This paper solves a 20-year-old open problem in reinforcement learning: proving that Monte Carlo policy iteration converges even when using only a single sample trajectory per update. The authors show that by replacing simple "greedy" updates with multi-step lookahead, the algorithm is guaranteed to find the optimal policy.

What Problem Does This Paper Address?

In Reinforcement Learning (RL), the "Policy Iteration" framework involves two alternating steps: evaluating how good a current policy is (Policy Evaluation) and then picking a better one (Policy Improvement). A popular way to evaluate a policy is through Monte Carlo (MC) simulation—simply running the policy and seeing what rewards it gets.

However, there has been a persistent theoretical gap. If you only use a single trajectory to estimate the value of a policy before updating it, does the math still hold up? Standard proofs usually assume you have an infinite number of trajectories or a perfect model. Leading textbooks, including Sutton and Barto (2018), have long flagged the convergence of "Monte Carlo Exploring Starts" (MC ES) with single trajectories as a major open question. This paper finally provides the proof, bridging the gap between RL theory and the empirical success of systems like AlphaZero, which use similar single-rollout techniques.

Methods

The authors introduce a "First-Visit Trajectory-Based Policy Iteration" algorithm. The key innovation is the use of lookahead during the policy improvement step.

  • Standard Greedy Update: Choose the action that looks best based on the current estimate of the next state's value.
  • Lookahead Update ($H$-step): Instead of looking just one step ahead, the algorithm considers a sequence of $H$ steps. This is similar to how a chess engine searches a tree of possibilities before making a move.

The authors use Stochastic Approximation theory to analyze the iterates. They prove that while a single trajectory is a "noisy" estimate, the multi-step lookahead acts as a contraction mapping. This means that even with noise, each update step mathematically "pulls" the value function closer to the true optimal value, provided the lookahead depth $H$ is large enough.

The paper extends this analysis from the tabular setting (where every state is tracked individually) to linear function approximation, where features are used to represent large state spaces.

Datasets

Not discussed in the paper. This is a theoretical research paper focused on mathematical proofs and algorithmic convergence properties rather than empirical benchmarking on specific datasets.

Key Insights and Ideas

  • Lookahead as a Stabilizer: The "aha moment" is that lookahead isn't just a performance trick to make agents play better; it is a mathematical necessity for convergence when data is sparse (i.e., a single trajectory). It provides the "signal" needed to overcome the "noise" of MC sampling.
  • The Contraction Lemma: The authors prove a vital new lemma (Lemma 1) showing that the value function of a lookahead policy is bounded by a contraction of the current value estimate. This allows them to treat the entire noisy iteration process as a stable dynamical system.
  • Function Approximation Error: In the function approximation setting, they show that the algorithm doesn't just diverge; it converges to a "neighborhood" of the optimal policy. The size of this neighborhood is directly proportional to how well the chosen features can represent the true value function.

Key Results

  • Tabular Convergence: Under the "Exploring Starts" assumption (ensuring all states are visited eventually), the algorithm is proven to converge to the optimal value function $J^*$ almost surely.
  • Error Bounds: For function approximation, the authors provide a bound on the final error. Interestingly, they show that as the lookahead depth $H$ increases, the impact of the discount factor $\alpha$ (which usually makes convergence harder as it approaches 1) is significantly mitigated.
  • Finite-Time Analysis: The paper provides explicit formulas for how quickly the error drops over time, categorizing the error into three parts: initial condition error (which fades), approximation error (from features), and sampling noise.

Limitations and Future Work

  • "Sufficient" Lookahead: The proof requires the lookahead depth $H$ to be "sufficiently large." However, the paper doesn't provide a universal way to calculate the minimum $H$ for a specific, unknown MDP; it only proves such an $H$ exists.
  • Exploring Starts: The proof relies on "Exploring Starts," an assumption that we can start a trajectory from any state. In many real-world robotics or safety-critical tasks, this is impossible.
  • Computational Complexity: While lookahead guarantees convergence, it is computationally expensive. Future work could explore how to balance the depth of lookahead with the computational budget while maintaining these convergence guarantees.

Summary updated

BibTeX
@inproceedings{winnicki2023convergence,
  author = {Anna Winnicki and R. Srikant},
  title = {{On The Convergence Of Policy Iteration-Based Reinforcement Learning With Monte Carlo Policy Evaluation}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure