Policy Gradient with Tree Expansion

Gal Dalal, Assaf Hallak, Gugan Thoppe, Shie Mannor, Gal Chechik

Introduction Policy Gradient (PG) methods are a staple of modern Reinforcement Learning (RL) due to their ease of parallelization and minimal assumptions about underlying value functions. However, they suffer from a notorious Achilles' heel: high variance. Because gradients are computed over long, noisy trajectories, updates can be highly unstable, demanding massive amounts of data to converge.

While planning techniques like Monte Carlo Tree Search (MCTS) have revolutionized value-based RL, integrating planning directly into PG methods has proven difficult. Previous attempts often used multi-step returns to improve the value estimator (critic), but left the policy (actor) as a simple "flat" softmax. This paper introduces SoftTreeMax, a novel policy parameterization that integrates multi-step tree expansion directly into the PG framework, baking planning into the policy itself to stabilize learning.

How SoftTreeMax Works The core contribution is a generalization of the standard softmax policy. Instead of the policy network looking only at the current state, it "looks ahead" by expanding a search tree of depth $d$.

Tree expansion diagram illustrating how SoftTreeMax computes logits

In a standard policy, the network outputs "logits" (scores) for each action. In SoftTreeMax, the logit for an action is redefined as the expected cumulative reward over the tree expansion, plus the network's predicted value of the future states at the leaves of the tree. The authors propose two variants:

  • C-SoftTreeMax: Exponentiates the expected value of trajectories.
  • E-SoftTreeMax: Computes the expectation of exponentiated trajectory rewards (useful for risk-sensitive scenarios).

Unlike MCTS, which often acts as a discrete wrapper around a policy, SoftTreeMax is fully differentiable. The gradient flows back through the entire tree expansion, updating the network based on future outcomes observed during the lookahead. To make this computationally feasible, the authors utilize a parallel GPU-based simulator (Atari-CuLE), allowing simultaneous node expansion at a given depth.

Key Insights: Planning as Variance Reduction The most profound theoretical insight of the paper is that planning is not just for finding better actions; it is a powerful mathematical tool for smoothing gradients. The authors prove that gradient variance decays exponentially as the tree depth $d$ increases.

Furthermore, the theory shows that the "expansion policy" (how the tree is grown) dictates the rate of variance decay. Policies that lead to state-independent transitions provide the strongest variance reduction. If a learned (approximate) model is used instead of a perfect simulator, a deeper tree introduces more bias. The paper provides the first formal bound on this gradient bias, revealing an optimal "sweet spot" for tree depth that balances variance reduction against model error.

Experimental Results The researchers evaluated SoftTreeMax on the Atari 2600 suite, comparing it against a strong Distributed PPO baseline running with 256 GPU workers.

Atari results showing SoftTreeMax achieving higher rewards and lower variance than PPO
  • Massive Variance Reduction: SoftTreeMax reduced gradient variance by up to three orders of magnitude compared to standard PPO.
  • Performance Boost: In games like KungFuMaster and Gopher, SoftTreeMax achieved up to 5x higher rewards than the PPO baseline within the same wall-clock training time.
  • Sample Efficiency: Although tree expansion is computationally expensive per step, the resulting gradients are significantly cleaner, meaning the agent requires far fewer environmental interactions to reach high performance.

Limitations and Future Directions While highly effective, SoftTreeMax comes with computational overhead. Exhaustive tree expansion is heavy, and for very deep trees, the authors had to implement pruning (limiting tree width to 1024 nodes) to manage memory. Additionally, the method currently relies on having a forward model (simulator) and is tailored for discrete action spaces.

Future work could explore integrating "learned models" (similar to MuZero) within the SoftTreeMax framework, adapting it for continuous control in robotics, and further developing the E-SoftTreeMax variant for risk-averse reinforcement learning.

Summary updated

BibTeX
@inproceedings{dalal2025policy,
  author = {Gal Dalal and Assaf Hallak and Gugan Thoppe and Shie Mannor and Gal Chechik},
  title = {{Policy Gradient with Tree Expansion}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=yiZtLtvW9S},
}
Figure