Abstract
The famous Policy Iteration algorithm alternates between policy improvement and policy evaluation. Implementations of this algorithm with several variants of the latter evaluation stage, e.g, $n$-step and trace-based returns, have been analyzed in previous works. However, the case of multiple-step lookahead policy improvement, despite the recent increase in empirical evidence of its strength, has to our knowledge not been carefully analyzed yet. In this work, we introduce the first such analysis. Namely, we formulate variants of multiple-step policy improvement, derive new algorithms using these definitions and prove their convergence. Moreover, we show that recent prominent Reinforcement Learning algorithms are, in fact, instances of our framework. We thus shed light on their empirical success and give a recipe for deriving new algorithms for future study.
Introduction
In Reinforcement Learning (RL), the Policy Iteration (PI) algorithm serves as a fundamental building block. It operates through a cycle: evaluating the current policy and then improving it by acting greedily with respect to that evaluation. Traditionally, the "greedy" step involves a one-step lookahead. However, empirical successes in complex domains—most notably AlphaGo and Monte Carlo Tree Search (MCTS)—suggest that deeper lookahead leads to significantly better decision-making.
While the RL community has extensively studied generalizations of the evaluation step (such as $n$-step returns and TD($\lambda$)), the improvement step has remained largely restricted to the one-step greedy approach in theoretical literature. This paper provides the first rigorous analysis of multi-step policy improvement, bridging the gap between empirical success and theoretical guarantees.
A Framework for Multi-Step Improvement
The authors propose two primary generalizations to the standard greedy improvement step:
- $h$-greedy Policy ($h$-PI): This approach employs a direct lookahead of $h$ steps. Instead of selecting the best immediate action, the agent solves an $h$-horizon optimal control problem. The authors prove that $h$-PI acts as a $\gamma^h$-contraction, where $\gamma$ is the discount factor. This implies that increasing $h$ leads to faster convergence in terms of the number of iterations required.
- $\kappa$-greedy Policy ($\kappa$-PI): This is a novel contribution that introduces a parameter $\kappa \in [0, 1]$ to interpolate over all possible lookahead horizons, similar to how $\lambda$ works in TD($\lambda$). When $\kappa = 0$, the algorithm reduces to standard 1-step greedy PI; when $\kappa = 1$, it yields the infinite-horizon optimal policy in a single step.
- $\kappa\lambda$-PI: By combining these concepts, the authors define a unified algorithm that generalizes both the improvement depth ($\kappa$) and the evaluation depth ($\lambda$).
Theoretical Insights
A key finding is the concept of the Surrogate MDP. The authors demonstrate that finding a $\kappa$-greedy policy is mathematically equivalent to solving a modified MDP with a reduced discount factor ($\kappa\gamma$). This provides a theoretical justification for why solving shorter-horizon approximations can effectively guide an agent toward the global optimum of the original problem.
Furthermore, the paper shows that several modern RL techniques are specific instances of this framework. For instance, Generalized Advantage Estimation (GAE), a staple in policy gradient methods, is shown to be equivalent to a single $\kappa$-greedy improvement step.
Experimental Results
The framework was tested on a deterministic $N \times N$ grid-world to measure the total computational cost, defined as the number of calls to the simulator required for convergence.
The experiments revealed a clear "sweet spot" for computational efficiency. While increasing $h$ or $\kappa$ reduces the number of iterations to converge, it increases the computational cost per iteration. As shown in the figures, intermediate values of $h$ and $\kappa$ result in the lowest total query count. Notably, $h$-PI and $\kappa$-PI were shown to potentially outperform standard $\lambda$-PI in terms of total simulator queries.
Conclusion and Future Work
This work establishes a theoretical foundation for multi-step policy improvement, proving its convergence and identifying its relationship with existing high-performance algorithms. While the current analysis focuses on the tabular setting, it opens several avenues for future research:
- Function Approximation: Extending these proofs to Deep RL where value estimation errors are present.
- Adaptive Lookahead: Developing mechanisms for state-dependent $\kappa(s)$, allowing the agent to look deeper only when necessary (e.g., at critical decision bottlenecks).
By formalizing the benefits of lookahead, this framework provides a recipe for designing more efficient and theoretically grounded RL algorithms.
Summary updated