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

Introduction

Policy Iteration is a cornerstone of reinforcement learning (RL), providing a structured framework for agents to improve their behavior through alternating phases of evaluation and improvement. Despite its foundational status, a significant theoretical gap has persisted for over two decades: the lack of a convergence proof for "First-Visit" Monte Carlo (MC) policy iteration when estimates are derived from a single sample path per iteration. This specific configuration is not merely a theoretical curiosity; it underpins many practical systems, including high-profile architectures like AlphaZero that utilize rollouts and lookahead.

This paper addresses this long-standing open problem, originally highlighted in foundational texts by Sutton & Barto and Tsitsiklis. The authors demonstrate that by incorporating multi-step lookahead during the policy improvement phase, policy iteration is guaranteed to converge to the optimal policy in both tabular and linear function approximation settings.

The Single-Trajectory Convergence Problem

In standard Policy Iteration, the agent alternates between two steps:

  1. Policy Evaluation: Estimating the value function of the current policy.
  2. Policy Improvement: Updating the policy to be greedy with respect to the current value estimate.

When using Monte Carlo simulation for evaluation, the agent runs the policy to collect rewards. The "First-Visit" approach updates value estimates only for the first time a state is encountered in a trajectory. Proving convergence when the agent uses only a single trajectory per iteration has been notoriously difficult because the resulting estimates are noisy and sparse. Without a formal proof, the mathematical stability of trajectory-based RL remained an assumption rather than a certainty.

Methodology: Lookahead as a Stabilizer

The authors propose two primary algorithms to bridge this gap:

  • Algorithm 1 (Tabular Setting): Designed for finite state spaces, this algorithm updates value estimates based on the first visit to a state within a single trajectory.
  • Algorithm 2 (Function Approximation): Extends the logic to large or continuous state spaces by using linear feature vectors to represent the value function.

The Role of H-step Lookahead

The critical innovation presented is the use of $H$-step lookahead during the policy improvement step. Rather than a standard "one-step greedy" update—which selects actions based solely on the immediate next state—the algorithm evaluates the consequences of actions over a horizon of $H$ steps.

Mathematically, the authors prove that if the lookahead depth $H$ is sufficiently large, the iterative process becomes a contraction mapping. This property is vital because it ensures that regardless of the starting point, the algorithm will consistently move toward a unique stable point: the optimal value function ($J^*$). Lookahead acts as a stabilizer, compensating for the inherent variance and sparsity of single-trajectory Monte Carlo updates.

Theoretical Insights and Results

Tabular Convergence

In the tabular setting, the authors provide a rigorous proof that Algorithm 1 converges almost surely to the optimal value function. This convergence is contingent on the lookahead depth $H$ satisfying a specific condition relative to the discount factor ($\alpha$). This result effectively closes the open problem regarding the stability of first-visit MC policy iteration.

Function Approximation and Error Decomposition

For the linear function approximation setting, the paper provides finite-time error bounds. The authors decompose the total error into three distinct components:

  1. Initial Condition Error: The error stemming from the initial value function guess.
  2. Function Approximation Error: The error caused by the limitations of the chosen features in representing the true environment.
  3. Noise Error: The variance introduced by the stochastic nature of Monte Carlo sampling.

Crucially, the research shows that $H$-step lookahead reduces the impact of the discount factor on the error bound. This makes the algorithm significantly more robust in tasks with long horizons where the discount factor is close to 1. Furthermore, the noise error is shown to vanish over time, leaving only the error inherent to the function approximation itself.

Discussion and Limitations

While this work provides a unified theory for trajectory-based RL—incorporating methods like Least Squares, Gradient Descent, and TD-Learning—it also identifies several areas for future exploration:

  • Lookahead Complexity: The requirement for a "sufficiently large" $H$ may lead to increased computational costs in complex environments.
  • Linearity Constraints: The current proofs are limited to linear function approximation. Extending these guarantees to non-linear models, such as deep neural networks, remains a significant challenge for the field.
  • Exploring Starts: The convergence proofs rely on the "exploring starts" assumption, where every state has a non-zero probability of being the starting point of a trajectory. In practical applications like robotics, ensuring such coverage can be difficult or unsafe.

By providing the first formal proof of convergence for single-trajectory MC policy iteration, this paper transforms a long-held heuristic into a mathematically sound framework, offering a more secure foundation for future RL research.

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