Manuscript Offprint

arXiv:2609.40035

OPTS-TTPO: Enhancing Finite-Sample Policy-Gradient Learning with Tree Search

Junyu Lu, Shichao Weng, Zhiqiang Wang, Haojie Luo, Jingfan Zhang, Yuhua Zhou, Cheng Du, Yuzhuo Zhang, Xi Li, Jinwei Du, Tiancheng Feng, Chuan Xiao, Shuyuan Zheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The policy-gradient theorem expresses the exact gradient as an expectation under the current policy, but practical methods estimate it from finitely many on-policy trajectories. Rare high-return trajectories may be missing from the policy-gradient estimate. We study whether tree search can improve their coverage under a finite budget while controlling the induced gradient bias. We introduce On-Policy Parallel Tree Search (OPTS) and Tree Trajectory Policy Optimization (TTPO) through on-policy tree trajectories, which sample new suffixes from the current policy at visited states. This requires no action-distribution correction, but branching changes state visitation. Our Branch Aggregation Lemma underpins TTPO: branch-weighted tree statistics recover chain expectations when branch choices and weights are fixed before outgoing transitions are sampled. OPTS selects expansion states using estimated performance differences. Under deterministic dynamics, exact values, and max-backup advantages, the induced search policy's expected return improves monotonically with the budget. Adaptive expansion violates the lemma's condition; we bound its gradient bias and show that max backup adds prefix credit to actions leading to better discovered suffixes. Against a finite chain reference, TTPG's measured bias stays near its no-branching level while NaivePG's bias grows from 0.1251 to 0.4884. Exact-value search is monotone and learned-critic summaries improve in aggregate. At matched budgets, reward- and value-guided OPTS improve correct-answer coverage and majority-vote accuracy over i.i.d. baselines. At matched branch counts, the coverage–bias diagnostic shows that OPTS + TTPG trades a modest bias increase for greater coverage relative to Fixed-branch + TTPG. Under matched interaction or rollout budgets, OPTS-TTPO improves MuJoCo tail returns over PPO by up to 28.6%, posts a 34–22–1 win–loss–tie record against PPO on Atari-57 under the last-100-log mean-return metric, and improves both micro-averaged avg@32 and pass@32 over PPO across all four Qwen3 models.

1 Introduction

The policy-gradient theorem expresses the exact gradient as an expectation over trajectories sampled from the current policy [1]. Practical algorithms such as PPO estimate this expectation using a finite batch of on-policy trajectories [2]. Under independent sampling, each trajectory starts from the initial-state distribution and provides one sampled suffix from each visited state. Collecting more independent trajectories can improve the gradient estimate, but rare high-return trajectories may still go unobserved under a finite sampling budget. This motivates studying how to allocate the available budget to improve high-return trajectory coverage for policy-gradient learning.

This work targets a central finite-sample failure of policy-gradient learning: a finite sample of trajectories can miss rare, high-return trajectories. We use tree search to improve the chance of covering such trajectories while controlling the bias introduced by adaptive search. Tree search offers a way to use the available budget more selectively [3]. Whereas every independent trajectory must start from the initial-state distribution, search can select an informative state on an already sampled prefix and draw fresh suffixes from that state. A critic-derived

∗^{*} Equal contribution.

§ Junyu Lu is a student at Beijing Institute of Technology, Zhuhai. This work was done at Dobot Robotics.

†^{\dagger} Project leader.

‡^{\ddagger} Corresponding author: Shuyuan Zheng (zheng@ist.osaka-u.ac.jp) estimate can identify visited states with the greatest estimated room for improvement and concentrate new samples there. This mechanism changes where samples are collected, not how actions are generated: every new action is still drawn from the current policy. Therefore, the resulting suffixes remain on-policy in their conditional action distribution and require no action-distribution importance correction.

Core challenges. Turning this intuition into a policy-gradient algorithm is not straightforward. First, how should the learner aggregate a tree? Branching duplicates prefixes and gives different states different numbers of descendants, so treating every node as an ordinary sample over-represents heavily expanded regions and generally changes the policy-gradient target, even when the advantage estimate at each transition is unbiased. Second, where should a finite search budget be spent? Uniform branching wastes the very advantage of search; the algorithm needs a policy-relative criterion that identifies the states at which resampling is most valuable. Third, useful allocation is necessarily adaptive: the search chooses where to expand after seeing sampled outcomes. Such posterior-dependent selection conflicts with the conditions required for unbiased tree aggregation. Thus, adaptive search creates a genuine tradeoff between improved trajectory coverage and additional estimation bias.

Our solution. We propose OPTS–TTPO, our framework that combines two methods introduced in this work: On-Policy Parallel Tree Search (OPTS) and Tree Trajectory Policy Optimization (TTPO). To make tree data usable for policy-gradient learning, we first prove the Branch Aggregation Lemma: when branching decisions and normalized local weights depend only on prefix information, a branch-weighted tree statistic has the same expectation as its ordinary on-policy chain counterpart. We then derive TTPO from this lemma, weighting each transition by its derived branch weight in the clipped PPO objective so that heavily expanded regions are not over-counted. To decide where to search, we introduce OPTS, which uses a critic-derived, policy-relative performance difference to estimate the benefit of replacing a sampled suffix with one generated by the current policy. OPTS directs the finite budget toward the highest-scoring visited states and samples new on-policy suffixes from them in parallel; under deterministic dynamics, exact current-policy values, and max-backup advantages, we prove that its induced search policy improves monotonically as the budget grows. Finally, we characterize what changes when OPTS and TTPO are combined: posterior-adaptive expansion violates the lemma's prefix-measurability condition. We decompose the resulting bias into posterior trajectory reweighting and the additional prefix credit introduced by max backup, which propagates the value of better suffixes back to their prefixes, and derive bounds for both effects. In stochastic environments, we instead use mean backup to reduce the amplification of favorable noise.

In summary, our contributions are fourfold: (1) Principled learning from trees. We prove the Branch Aggregation Lemma and introduce TTPO, whose branch-weighted updates recover the ordinary on-policy expectation under the lemma's conditions (Section 3.1). (2) Performance-directed search. We introduce OPTS, a performance-difference-guided budget-allocation method with a monotonic search-improvement guarantee under ideal conditions (Section 3.2). (3) An explicit account of adaptivity. We decompose and bound the bias of learning from posterior-adaptive OPTS trees with TTPO into trajectory reweighting and max-backup prefix credit (Section 3.3). (4) Theory-backed cross-domain validation. Controlled mechanism experiments validate the theoretical results underlying OPTS–TTPO. Under matched budgets, OPTS–TTPO improves MuJoCo tail return by 18.7% on average, posts a 34–22–1 win–loss–tie record against PPO on Atari-57 under the last-100-log mean-return metric, and improves LLM micro-averaged avg@32 over PPO by 0.72–2.32 percentage points and pass@32 by 0.44–2.33 percentage points across four models (Section 4).

References (93)