Policy Gradient with Tree Search: Avoiding Local Optimas through Lookahead

Uri Koren, Navdeep Kumar, Uri Gadot, Giorgia Ramponi, Kfir Yehuda Levy, Shie MannorarXiv 2025 · DOI

Abstract

Standard Policy Gradient (PG) methods often get stuck in local optima because they only "see" one step ahead. This paper introduces Policy Gradient with Tree Search (PGTS), which integrates an $m$-step lookahead into the update rule. The authors prove that as search depth $m$ increases, the number of suboptimal stationary points monotonically decreases, effectively "smoothing out" the optimization landscape and allowing agents to solve complex tasks where standard PG fails.

Introduction

Policy Gradient methods are fundamental to modern Reinforcement Learning (RL), yet they suffer from a significant limitation: the objective function is non-concave. Consequently, agents can easily become trapped in local optima—policies that appear optimal locally but are globally inferior. Standard convergence guarantees often rely on "perfect exploration" assumptions that are rarely met in practice. In environments with sparse rewards or "traps," standard PG typically converges to safe but sub-optimal policies because it cannot perceive rewards located multiple steps away.

Methodology: The PGTS Framework

The authors propose Policy Gradient with Tree Search (PGTS) to address these optimization challenges. Unlike standard PG, which updates policies based on immediate gradients, PGTS incorporates an $m$-step lookahead mechanism.

  • The Lookahead: PGTS utilizes the Bellman operator applied $m$ times ($T^m Q^\pi$) instead of the standard Q-value. This is equivalent to a tree search of depth $m$, estimating the best possible future value from a given state.
  • The Update Rule: The policy is updated toward this lookahead value, weighted by the state occupancy measure.
  • Theoretical Innovation: Using a "bottom-up" approach, the authors prove that the set of stationary points for depth $m$ is a subset of those for depth $m-1$. This implies that increasing search depth systematically eliminates local traps.

Experimental Setup

The researchers evaluated PGTS on several diagnostic Markov Decision Process (MDP) structures designed to expose the weaknesses of standard RL:

  1. Ladder MDP: A chain of states where the reward is located only at the final state. Standard PG tends to get stuck at the beginning of the chain.
  2. Tightrope MDP: An environment where the optimal path requires traversing a state with a temporary negative reward.
  3. Gridworld: A $10 \times 10$ grid featuring a distant goal and multiple "trap" states with heavy penalties.
  4. Random MDPs: Used to demonstrate that PGTS maintains performance parity with standard PG in well-connected, dense-reward environments.
Figure 1: The Ladder MDP environment, where a reward of +1 is only available at state $s_4$.

Results and Key Insights

The experimental results highlight the robustness of PGTS in navigating complex reward landscapes.

  • Escaping Local Optima: In the Ladder MDP, standard PG, TRPO, and PPO failed to discover the reward. PGTS achieved the global optimum once the search depth $m$ was sufficient to "see" the reward state (e.g., $m \ge 4$ for a 4-step ladder).
  • Monotonicity of Stationary Points: A key finding is that $\Pi^m \subseteq \Pi^{m-1}$. Any policy that traps a deep-search agent would also trap a shallow-search agent, but the converse is not true. Deep search effectively "breaks" local optima.
  • Farsightedness vs. Greed: In the "Tightrope" experiment, PGTS demonstrated the ability to accept temporary performance drops (negative rewards) to reach a larger eventual goal, whereas standard PG remained overly conservative.
  • Structural Optimization: The set of stationary points depends on search depth $m$ rather than the learning rate $\eta$, suggesting that lookahead provides a structural improvement to the optimization landscape.
Figure 4: Comparison of Policy Return over iterations for PG and PGTS across different initial state distributions and learning rates ($\eta$). Note how PGTS with sufficient depth $m$ escapes local optima where PG fails.

Conclusion and Future Work

PGTS offers a theoretically grounded method for smoothing the RL optimization landscape. While it successfully addresses local optima in diagnostic tasks, challenges remain regarding computational complexity in high-dimensional spaces and sample efficiency in environments with unknown dynamics. Future work will focus on integrating PGTS with deep neural networks and developing sample-based variants for practical large-scale applications.

Summary updated

BibTeX
@misc{koren2025policy,
  author = {Uri Koren and Navdeep Kumar and Uri Gadot and Giorgia Ramponi and Kfir Yehuda Levy and Shie Mannor},
  title = {{Policy Gradient with Tree Search: Avoiding Local Optimas through Lookahead}},
  year = {2025},
  eprint = {2506.07054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07054},
}
Figure