Manuscript Offprint
arXiv:2609.40035OPTS-TTPO: Enhancing Finite-Sample Policy-Gradient Learning with Tree Search
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.
Project leader.
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).
Tree search as budget allocation. Tree search uses posterior information to allocate search computation. MCTS formalizes selection, expansion, simulation, and backup [3, 13]; AlphaGo combines learned policy and value networks with MCTS for action selection [14]. AlphaGo Zero, AlphaZero, MuZero, Expert Iteration, and related methods instead distill search-improved action distributions or trajectories into a policy [15–22]. The tree is therefore commonly used to choose a root action, construct a search or execution policy, or provide a policy-projection target.
Tree-structured policy-gradient learning. Tree-structured policy-gradient methods use branches for value estimation or credit assignment. Tree MDPs, VinePPO, and Branching Policy Optimization use whole-tree, suffix, or sibling returns [23–25]; TreeRL, SPO-tree, TreeRPO, TreePO, and Tree-GRPO variants derive process or subtree signals from descendant outcomes [26–31]. Other methods choose branches with uncertainty, lookahead, or information gain, or optimize search-internal policies and tree backups [32–43]. Their branching signals and learning targets differ: for example, TreeRL samples on-policy suffixes but uses group-relative process credit, while other methods optimize search-internal policies, persistent-tree policies, or subtree-derived objectives.
OPTS-TTPO targets finite-budget high-return trajectory coverage. OPTS allocates current-policy suffix rollouts to visited states using a policy-relative performance-difference estimate; TTPO learns from the resulting tree with branch-weighted aggregation, preserving the chain target under prefix-measurable expansion. We further analyze adaptive-selection bias and max-backup prefix credit.
3 OPTS-TTPO
OPTS-TTPO uses on-policy tree trajectories as the common interface between search and learning (Figure 1). Branch aggregation is the foundation for learning from prefix-measurable trees, while performance-difference-guided OPTS allocates the finite rollout budget. We characterize the prefix credit and gradient bias that arise when posterior-adaptive OPTS is combined with TTPO. Complete definitions and proofs are given in Appendices A–C.
On-policy tree trajectories. An on-policy tree trajectory consists of a root state and a finite rooted set of transition occurrences. Starting from , it recursively samples one or more transitions according to and extends their successor states to the horizon; suffixes from a common state occurrence share the prefix ending there. Each transition from parent occurrence is , with and , and has a unique path from . For transition index , we write . Here, on-policy refers only to the conditional action distribution : every action occurrence in the tree is sampled from the current policy, so attaching suffixes requires no action-distribution importance correction. Branching nevertheless changes transition multiplicities relative to a single chain. The Branch Aggregation Lemma below derives weights that recover the chain-trajectory target under prefix-measurable branching.
3.1 TTPO: How Should the Learner Aggregate a Tree?
Branch Aggregation Lemma. Policy-gradient and GAE targets are chain-trajectory sums, whereas a tree can attach several suffixes to one shared prefix. As a simple example, if three suffixes branch at depth t, naive summation counts the suffix three times relative to the prefix; averaging the three suffixes restores the chain proportions. The lemma generalizes this correction to arbitrary trees.
For a horizon-n chain , define with scalar and integrable transition contribution . The target is .
For each parent occurrence , let its child set and local weights , with , be determined from prefix information. Define and . This prefix-measurability condition excludes dependence on the outgoing transitions or their descendants.
Let be the transition depth, starting at zero. Direct aggregation sums the weighted contribution of every transition occurrence in the tree; recursive aggregation computes the discounted statistic of the subtree rooted at by averaging child contributions with their local weights, with zero at terminal:

Figure 1: OPTS-TTPO. OPTS selects states maximizing the length-penalized performance-difference estimate and samples on-policy suffixes from them in parallel; TTPO applies TreeGAE and branch weights to PPO updates.
Under this prefix-measurability condition, the Branch Aggregation Lemma (Appendix A.3) gives and
Tree Trajectory Policy Gradient (TTPG). Setting and in the direct aggregation form gives
The weights correct the state-visitation multiplicity introduced by branching.
Tree-based Generalized Advantage Estimation (TreeGAE). Let . Setting and in the recursive aggregation form gives
TreeGAE and chain GAE have the same conditional suffix expectation; with , Equation 3 preserves the policy-gradient identity.
Tree Trajectory Policy Optimization (TTPO). Let . TTPO applies the branch weights to the standard clipped PPO surrogate,
3.2 OPTS: Where Should a Finite Search Budget Be Spent?
Performance-Difference Estimation. Let be a recorded suffix under an arbitrary policy . Replacing its action at by a fresh action from the current policy and then following has expected local improvement . Their discounted sum defines the performance-difference estimate, whose expectation follows from the performance difference lemma [44, 45]:
In deterministic environments, for recorded suffix return . In practice, replacing by TreeGAE gives , and we introduce the length penalty .
When , this recovers the original performance-difference estimate; when , it averages the discounted local improvements along the suffix. Appendix B.2 gives further details.
On-Policy Parallel Tree Search. OPTS initializes on-policy chains and their TreeGAE advantages. Each round follows to form an observed greedy path , then selects its highest-scoring candidate position:
A single batched rollout under the current policy generates suffixes from selected states and fresh trajectories from new initial states; TreeGAE is then updated from the new leaves back to the roots. A tree stops searching when it reaches expansions or when no candidate exceeds a nonnegative baseline. Algorithm 1 gives the complete procedure.
In deterministic environments, OPTS uses max-backup TreeGAE:
The greedy paths of OPTS induce a search policy , with (Appendix B.3). With exact and max-backup TreeGAE in a deterministic environment, OPTS satisfies
Appendix B.4 also establishes monotonicity of the suffix -return objective under nested expansion.
3.3 OPTS-TTPO: What Are the Benefits and Costs of the Adaptive Allocation?
At iteration , OPTS samples each suffix from the current policy but selects expansion states from observed outcomes, violating the lemma's prefix-measurability condition; TTPO then learns from the branch-weighted policy gradient of tree trajectories, .
In deterministic environments, OPTS-TTPO uses max-backup TreeGAE, which yields the prefix-credit term below; in stochastic environments, it uses mean-backup TreeGAE to average child advantages while retaining branch coverage. Both variants use to correct branch multiplicity.
Max-backup search information as prefix credit. On a fixed tree, let and be the TTPG directions under the two backups, and define the best-minus-average gap , with at leaves. Writing when lies on the root-to- path, Appendix C.1 proves
credits actions leading to each branch point by its gap , with the credit decaying by at each step, so a discovered suffix can influence upstream learning before being reliably reproduced.
Controlling the search-induced bias. Let be the fraction of root trees receiving an expansion and bound the expected path weight moved off the initial trajectory. Under bounded rewards, values, and policy scores, Appendix C.2 gives
Here bounds tree and chain gradient norms, is the initial chain-estimator bias (zero with exact values), and is bounded by the weighted gap mass in Equation 8. The coarse bound scales with ; the refined bound separates the posterior path reweighting shared by both backup rules, , from the additional max-backup term . Algorithm 2 gives the complete training step.
4 Experiments
We evaluate branch aggregation, OPTS search and test-time scaling, coverage–bias trade-offs, and cross-domain policy-gradient learning (Sections 4.1–4.4). Rollout budgets are matched in LLM experiments and environment steps in control experiments; learned policies are evaluated without search. Full protocols and hyperparameters are in Appendix D.
4.1 Branch Aggregation for Policy-Gradient Estimation
Setup. Using a frozen step-400 Qwen3-1.7B PPO checkpoint, we use unbiased zero-baseline advantage estimates from binary Monte Carlo returns, isolating branch aggregation from critic error. We compare NaivePG with TTPG on identical trees against a finite reference pooled from 32 independently sampled chain groups, varying additional suffixes and tree groups (Appendix D.1).
Results. At K = 0 the two estimators coincide with relative bias 0.1251 (Figure 2). As suffixes are added, NaivePG bias grows monotonically to 0.4884 at K = 15, while TTPG stays between 0.1221 and 0.1260. Although reusing descendant tokens lowers NaivePG's variance, its squared bias dominates: at M = 4 and K = 15, NaivePG's relative MSE rises to 0.2398 whereas TTPG's falls from 0.0285 to 0.0239, with cosine similarities of 0.9467 and 0.9880, respectively. Both estimators use the same unbiased advantage estimates; their divergence reflects NaivePG's over-counting of branched suffixes relative to shared prefixes. Branch weighting corrects this imbalance.
Takeaway 1. Against the finite chain reference, NaivePG's measured bias grows with branching, whereas TTPG stays at its K = 0 level and attains lower MSE and higher gradient alignment. Unbiased advantage estimates alone do not guarantee unbiased gradient estimates.
4.2 OPTS Search Quality and Test-Time Scaling
Exact-value improvement and learned-critic trends. We test Theorem 2 on 32 depth-4 deterministic binary-trees with exact , max backup, and zero baseline (Appendix D.2). Reward- and value-guided OPTS use full and truncated advantages, respectively. Exact enumeration across shows that all 1,920 adjacent-budget comparisons per mode improve both expected -return and true return (Figure 3, top).
The learned-critic counterpart fixes a step-400 Qwen3-1.7B OPTS-TTPO policy and critic, uses , and varies . At , the micro-averaged improvements in are for reward-guided OPTS and for value-guided OPTS (Figure 3, bottom). All four pooled summaries increase with the search budget, although the gains are not uniformly monotone on every benchmark (Appendix F). The gain also depends on the rebranching position (Appendix G).
Coverage and test-time scaling at matched rollout budgets. We evaluate OPTS with fixed against independent sampling at matched rollout budgets , pooling results over 902 prompts; per-benchmark curves are in Appendix E.
With verifier rewards guiding rebranching, we report whether a searched tree contains a correct answer; the matched baseline is pass@k. Reward-guided OPTS rises from 0.7561 at
(a) Reward-Guided Performance

(b) Value-Guided Performance
Figure 4: Matched-budget coverage and accuracy. OPTS uses fixed ; the IID curve is the matched baseline.
to 0.8259 at , compared with 0.7295 and 0.8082 for independent sampling (Figure 4(a)).
Without verifier rewards, OPTS uses the learned value function and truncated GAE to guide rebranching and returns the majority answer among the value-greedy tree responses; the baseline is cons@k, the majority-vote accuracy of k i.i.d. samples [46]. Value-guided OPTS rises from 0.6652 at k = 8 to 0.6785 at k = 128 (peaking at 0.6796 at k = 64), around the corresponding IID values 0.6552 and 0.6685 (Figure 4(b)).
(a) Relative Bias

(b) Relative Variance
Additional branches K
(c) Relative MSE
(d) Cosine Similarity
Figure 2: NaivePG versus TTPG under global token-level normalization.
Reward-guided OPTS
Value-guided OPTS
(a)
(b)
(c)
(d)

Search budget j
Search budget j
Search budget j
Search budget j
Figure 3: Search-budget improvements. Top: exact-value; bottom: learned critic.
Takeaway 2. Larger search budgets improve and J under exact values, with the same aggregate trend under learned critics; at matched budgets, reward-guided and value-guided OPTS improve coverage and majority-vote accuracy, respectively, over independent sampling.
4.3 Coverage–Bias Trade-offs and Prefix Credit
Using a frozen step-400 Qwen3-1.7B OPTS-TTPO actor-critic checkpoint distinct from the PPO checkpoint above, we evaluate 16,384 training prompts. Fixed branching occurs at response token 128 and skips shorter responses; the other method uses OPTS. We compare with . Both panels use aggregation and direct returns with ; the right panel additionally compares max and mean backup.
At matched branch counts, Fixed-branch + TTPG gains coverage with a near-zero, slightly negative bias shift, whereas OPTS + TTPG attains greater coverage at the cost of a modest positive bias shift. Fixed-branch + NaivePG instead moves steadily toward larger positive bias. Panel (b) shows that max backup assigns more prefix credit after more search rounds . With ,
(a)
(b)

from s = 0
branch (tokens)
Figure 5: Mechanistic diagnostics. (a) Coverage gain versus relative bias difference from s = 0. (b) Token-weighted extra prefix credit (max–mean) versus distance to the first downstream branch.
this credit decays with distance from the first downstream branch; the curves retain the credit over the plotted distances. Together, the panels illustrate the coverage–bias relationship and the additional prefix credit introduced by max backup.
Takeaway 3. At matched branch counts, OPTS + TTPG trades a modest bias increase for greater coverage than Fixed-branch + TTPG, while max backup adds additional prefix credit.
4.4 Cross-Domain Policy-Gradient Learning
We compare OPTS-TTPO with PPO in three domains that differ in observation modality, action space, and budget unit. MuJoCo and Atari follow the CleanRL style [47]; deterministic MuJoCo and LLM use max-backup TreeGAE, while sticky-action Atari uses mean backup.
Continuous Control: MuJoCo. We select the hyperparameters on Hopper-v4 and Humanoid-v4, the two tasks with the smallest and largest action-space dimensions in our five-task MuJoCo suite [48], respectively. We then fix for the five-task evaluation and train PPO and OPTS-TTPO for one million environment steps over ten random seeds (Figure 6).
OPTS-TTPO achieves a higher tail mean on all five tasks, with gains from 11.2% on Hopper-v4 to 28.6% on HalfCheetah-v4, and a higher full-training mean on every task.
Component ablations. At the fixed , the complete method achieves the largest task-averaged tail improvement over PPO (Table 1). Random + mean tests branching without guidance, Guided + mean adds adaptive selection, Guided + max adds max backup, and the unweighted row removes branch weights. Individual component gains vary by task.
Table 1: MuJoCo component ablations. Tail-return change relative to PPO (%), averaged over ten seeds at . Tail return averages the final 100 logged points; Mean weights tasks equally.
| Variant | Hopper | Walker2d | HalfCheetah | Ant | Humanoid | Mean |
|---|---|---|---|---|---|---|
| Random + mean | +10.5 | +5.6 | -3.2 | +15.0 | -1.3 | +5.3 |
| Guided + mean | +8.2 | +16.7 | +9.5 | -0.6 | +6.3 | +8.0 |
| Guided + max, unweighted | +7.5 | +6.8 | +26.2 | +8.7 | +8.2 | +11.5 |
| Guided + max (full) | +11.2 | +24.9 | +28.6 | +13.9 | +15.0 | +18.7 |
Stochastic Discrete Control: Atari-57. We reuse the same for Atari. Under the Atari-57 evaluation benchmark [49] with sticky actions [50], we train PPO and OPTS-TTPO for ten million environment steps over three random seeds. Because reward scales differ across games, we transform each run's return as and report the interquartile mean (IQM), the 25% trimmed mean over all 57 games and three seeds [51]. Table 2 pairs this magnitude-sensitive summary with task-level win counts under the full-training mean return and the last-100-log mean return; complete curves are in Appendix I.
At the task level, OPTS-TTPO posts a 31–26–0 win–loss–tie record against PPO under the full-training mean-return metric and a 34–22–1 record under the last-100-log mean-return metric. Its human-normalized IQM is also higher under both summaries, increasing from 0.247 to 0.255 over the full training run and from 0.357 to 0.374.
Table 2: Human-normalized IQM and task-level win counts on Atari-57. Each win compares the two methods after averaging the corresponding raw-return summary over three seeds for that game.
| Metric | Human-normalized IQM | Task wins | |||
|---|---|---|---|---|---|
| PPO | OPTS-TTPO | PPO | OPTS-TTPO | Tie | |
| Full-training mean return | 0.247 | 0.255 | 26 | 31 | 0 |
| Last-100-log mean return | 0.357 | 0.374 | 22 | 34 | 1 |
over the last 100 logged points. These game-level records indicate that the gains depend on the task and its reward structure rather than holding uniformly across Atari-57. Appendix J compares mean and max backup at the same fixed hyperparameters.
Mathematical Reasoning: LLM RLVR. In LLM RLVR [52], we compare OPTS-TTPO with PPO [2] on four Qwen3 models [53], using VeRL [54, 55] and 4,096 rollouts per update. OPTS-TTPO uses for all four models. DAPO [56] and REINFORCE++ [57] are external references at the same rollout budget; DAPO uses GRPO's group-relative objective [58]. All methods run for 400 steps. Table 3 reports final-checkpoint avg@32 and pass@32 on six benchmarks, including MATH500 [59] and AIME25 [60].
OPTS-TTPO improves both macro- and micro-averaged avg@32 and pass@32 over PPO across all four Qwen3 models, covering both model sizes and both Base and post-trained variants. Among the four methods, it achieves the highest macro averages for both metrics on every model. The micro averages show the same

Figure 6: MuJoCo learning curves; tail is the final-100-point relative return improvement over PPO.
Table 3: LLM performance at the synchronized step-400 checkpoint, from 32 independent responses per prompt. Macro Average weights the six benchmarks equally; Micro Average pools their 500, 272, 40, 30, 30, and 30 problems, respectively (902 in total). Column bests are bold.
| Methods | MATH500 | MinervaMath | AMC23 | AIME24 | AIME25 | AIME26 | Macro Average | Micro Average | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| avg@32 | pass@32 | avg@32 | pass@32 | avg@32 | pass@32 | avg@32 | pass@32 | avg@32 | pass@32 | avg@32 | pass@32 | avg@32 | pass@32 | avg@32 | pass@32 | |
| Qwen3-1.7B-Base | ||||||||||||||||
| PPO | 0.6973 | 0.9080 | 0.2986 | 0.5515 | 0.4289 | 0.8500 | 0.0823 | 0.3333 | 0.0469 | 0.3333 | 0.0417 | 0.2667 | 0.2659 | 0.5405 | 0.5013 | 0.7384 |
| DAPO | 0.6935 | 0.9100 | 0.2878 | 0.5257 | 0.4133 | 0.8750 | 0.0854 | 0.3667 | 0.0490 | 0.3000 | 0.0385 | 0.2667 | 0.2612 | 0.5407 | 0.4953 | 0.7328 |
| REINFORCE++ | 0.6877 | 0.9040 | 0.2911 | 0.5184 | 0.4016 | 0.8250 | 0.0823 | 0.3000 | 0.0521 | 0.3667 | 0.0354 | 0.2667 | 0.2584 | 0.5301 | 0.4924 | 0.7251 |
| OPTS-TTPO | 0.7114 | 0.9220 | 0.2920 | 0.5404 | 0.4328 | 0.8000 | 0.1063 | 0.4333 | 0.0479 | 0.3000 | 0.0521 | 0.2667 | 0.2738 | 0.5437 | 0.5085 | 0.7428 |
| Qwen3-1.7B | ||||||||||||||||
| PPO | 0.7994 | 0.9480 | 0.3427 | 0.5257 | 0.5938 | 0.9250 | 0.2000 | 0.4667 | 0.1708 | 0.4000 | 0.1083 | 0.3333 | 0.3692 | 0.5998 | 0.5887 | 0.7650 |
| DAPO | 0.8061 | 0.9280 | 0.3448 | 0.5221 | 0.5555 | 0.8750 | 0.1854 | 0.4000 | 0.1708 | 0.3000 | 0.1042 | 0.3000 | 0.3611 | 0.5542 | 0.5908 | 0.7439 |
| REINFORCE++ | 0.7919 | 0.9400 | 0.3455 | 0.5368 | 0.5367 | 0.8500 | 0.1885 | 0.3667 | 0.1500 | 0.3667 | 0.0948 | 0.3333 | 0.3512 | 0.5656 | 0.5813 | 0.7561 |
| OPTS-TTPO | 0.8271 | 0.9600 | 0.3532 | 0.5809 | 0.6281 | 0.9500 | 0.2354 | 0.4333 | 0.2031 | 0.3667 | 0.1333 | 0.3667 | 0.3967 | 0.6096 | 0.6119 | 0.7882 |
| Qwen3-8B-Base | ||||||||||||||||
| PPO | 0.8305 | 0.9360 | 0.4169 | 0.5699 | 0.6492 | 0.8500 | 0.1948 | 0.5000 | 0.1615 | 0.3000 | 0.1302 | 0.3333 | 0.3972 | 0.5815 | 0.6311 | 0.7661 |
| DAPO | 0.8076 | 0.9460 | 0.3804 | 0.5368 | 0.5984 | 0.8250 | 0.1896 | 0.5000 | 0.1573 | 0.3667 | 0.1385 | 0.3000 | 0.3786 | 0.5791 | 0.6051 | 0.7616 |
| REINFORCE++ | 0.8250 | 0.9360 | 0.4164 | 0.5478 | 0.6156 | 0.8750 | 0.1802 | 0.6000 | 0.1500 | 0.3333 | 0.1333 | 0.3333 | 0.3868 | 0.6042 | 0.6256 | 0.7650 |
| OPTS-TTPO | 0.8514 | 0.9540 | 0.4241 | 0.5993 | 0.6055 | 0.9250 | 0.2031 | 0.4667 | 0.1813 | 0.3333 | 0.1458 | 0.3667 | 0.4019 | 0.6075 | 0.6443 | 0.7894 |
| Qwen3-8B | ||||||||||||||||
| PPO | 0.8799 | 0.9700 | 0.4323 | 0.5588 | 0.7094 | 0.9250 | 0.3531 | 0.5667 | 0.2615 | 0.5333 | 0.2594 | 0.5333 | 0.4826 | 0.6812 | 0.6786 | 0.8016 |
| DAPO | 0.8859 | 0.9740 | 0.4493 | 0.5735 | 0.7633 | 0.9250 | 0.3208 | 0.6000 | 0.2656 | 0.4000 | 0.2667 | 0.5333 | 0.4919 | 0.6676 | 0.6888 | 0.8049 |
| REINFORCE++ | 0.8749 | 0.9680 | 0.4323 | 0.5551 | 0.7164 | 0.9250 | 0.2938 | 0.5333 | 0.2406 | 0.4000 | 0.2073 | 0.5000 | 0.4609 | 0.6469 | 0.6718 | 0.7927 |
| OPTS-TTPO | 0.8825 | 0.9740 | 0.4519 | 0.5699 | 0.7586 | 0.9500 | 0.3365 | 0.6667 | 0.2781 | 0.5667 | 0.2594 | 0.5333 | 0.4945 | 0.7101 | 0.6882 | 0.8126 |
ranking except for avg@32 on Qwen3-8B, where DAPO scores 0.6888 and OPTS-TTPO scores 0.6882.
Takeaway 4. Across matched budgets, OPTS-TTPO improves tail returns on all five MuJoCo tasks, posts a 34–22–1 win–loss–tie record against PPO on Atari-57 under the last-100-log mean-return metric, and improves micro-averaged avg@32 and pass@32 over PPO across all four Qwen3 models.
5 Conclusion
We study how tree search can improve finite-sample policy-gradient learning by increasing high-return trajectory coverage. We first make tree trajectories usable for learning: branch aggregation yields TTPG, TreeGAE, and TTPO, and the branch-aggregation experiment shows that TTPG stays near the unbranched reference as suffixes are added, whereas naive aggregation accumulates bias. We then use performance-difference-guided OPTS to allocate a finite search budget. Exact-value experiments show improvements in both expected -return and true return with every adjacent budget increase, while learned-critic experiments show the same aggregate trend. At matched test-time budgets, reward-guided OPTS improves correct-answer coverage and value-guided OPTS improves majority-vote accuracy over independent sampling. At matched branch counts, coverage-bias diagnostics show that OPTS + TTPG trades a modest bias increase for greater coverage relative to Fixed-branch + TTPG; max backup adds additional prefix credit, while mean backup averages sampled suffixes in stochastic environments. Across domains, OPTS-TTPO improves tail returns on all five MuJoCo tasks, posts a 34–22–1 win–loss–tie record against PPO on Atari-57 under the last-100-log mean-return metric, and improves micro-averaged avg@32 and pass@32 over PPO across all four Qwen3 models at matched budgets. However, the theory bounds the bias from posterior-dependent expansion, rather than eliminating it, while the monotone-improvement guarantee is limited to deterministic dynamics with exact values. Future work includes variance reduction under prefix-measurable sampling and self-distillation from successful OPTS trajectories.
References
[1] Richard S Sutton, David McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. Advances in neural information processing systems, 12, 1999. 1, 16
[2] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. 1, 8, 20
[3] Cameron B Browne, Edward Powley, Daniel Whitehouse, Simon M Lucas, Peter I Cowling, Philipp Rohlfshagen, Stephen Tavener, Diego Perez, Spyridon Samothrakis, and Simon Colton. A survey of monte carlo tree search methods. IEEE Transactions on Computational Intelligence and AI in games, 4(1):1–43, 2012. 1, 3
[4] Rujie Zhong, Duohan Zhang, Lukas Sch"afer, Stefano Albrecht, and Josiah Hanna. Robust on-policy sampling for data-efficient policy evaluation in reinforcement learning. In Advances in Neural Information Processing Systems, volume 35, 2022. URL https://proceedings.neurips.cc/paper_files/paper/2022/hash/f2dbede0879b9d04ceb30f1b8b476b27-Abstract-Conference.html. 2
[5] Nicholas E. Corrado and Josiah P. Hanna. On-policy policy gradient reinforcement learning without on-policy sampling. arXiv preprint arXiv:2311.08290, 2023. URL https://arxiv.org/abs/2311.08290.2
[6] Saad Mohamad and Giovanni Montana. Adaptive experience selection for policy gradient. arXiv preprint arXiv:2002.06946, 2020. URL https://arxiv.org/abs/2002.06946. 2
[7] Adrien Ecoffet, Joost Huizinga, Joel Lehman, Kenneth O. Stanley, and Jeff Clune. First return, then explore. Nature, 590:580–586, 2021. doi: 10.1038/s41586-020-03157-9. URL https://www.nature.com/articles/s41586-020-03157-9. 2
[8] Junhyuk Oh, Yijie Guo, Satinder Singh, and Honglak Lee. Self-imitation learning. In Proceedings of the 35th International Conference on Machine Learning, 2018. URL https://proceedings.mlr.press/v80/oh18b.html. 2
[9] Bradley Brown, Jordan Juravsky, Ryan Ehrlich, Ronald Clark, Quoc V. Le, Christopher Ré, and Azalia Mirhoseini. Large language monkeys: Scaling inference compute with repeated sampling. arXiv preprint arXiv:2407.21787, 2024. URL https://arxiv.org/abs/2407.21787. 2
[10] Hieu Trung Nguyen, Bao Nguyen, Wenao Ma, Yuzhi Zhao, Ruifeng She, and Viet Anh Nguyen. Adaptive rollout allocation for online reinforcement learning with verifiable rewards. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2602.01601. 2
[11] Baizhou Huang and Xiaojun Wan. Pros: Towards compute-efficient rlvr via rollout prefix reuse. In International Conference on Learning Representations, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/4badb55ba9c18bccb9d4146be328a948-Abstract-Conference.html.
[12] Heming Zou, Qi Wang, Yun Qu, Yuhang Jiang, Lizhou Cai, Yixiu Mao, Ru Peng, Xin Xu, Weijie Liu, Kai Yang, Saiyong Yang, and Xiangyang Ji. Trace: A unified rollout budget allocation framework for efficient agentic reinforcement learning. arXiv preprint arXiv:2606.11119, 2026. URL https://arxiv.org/abs/2606.11119. 2
[13] Levente Kocsis and Csaba Szepesvári. Bandit based monte-carlo planning. In European conference on machine learning, pages 282–293. Springer, 2006. 3
[14] David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016. 3
[15] David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. nature, 550(7676):354–359, 2017. 3
[16] David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, et al. A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science, 362(6419):1140–1144, 2018.
[17] Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, et al. Mastering atari, go, chess and shogi by planning with a learned model. Nature, 588(7839):604–609, 2020.
[18] Thomas Anthony, Zheng Tian, and David Barber. Thinking fast and slow with deep learning and tree search. Advances in neural information processing systems, 30, 2017.
[19] Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Mohammadamin Barekatain, Simon Schmitt, and David Silver. Learning and planning in complex action spaces. In International Conference on Machine Learning, pages 4476–4486. PMLR, 2021.
[20] Ivo Danihelka, Arthur Guez, Julian Schrittwieser, and David Silver. Policy improvement by planning with gumbel. In International Conference on Learning Representations, 2022.
[21] Jean-Bastien Grill, Florent Altché, Yunhao Tang, Thomas Hubert, Michal Valko, Ioannis Antonoglou, and Remi Munos. Monte-Carlo tree search as regularized policy optimization. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 3769–3778. PMLR, 2020. URL https://proceedings.mlr.press/v119/grill20a.html.
[22] Xidong Feng, Ziyu Wan, Muning Wen, Stephen Marcus McAleer, Ying Wen, Weinan Zhang, and Jun Wang. Alphazero-like tree-search can guide large language model decoding and training. arXiv preprint arXiv:2309.17179, 2023. 3
[23] Lara Scavuzzo, Feng Chen, Didier Chetelat, Maxime Gasse, Andrea Lodi, Neil Yorke-Smith, and Karen Aardal. Learning to branch with tree MDPs. In Advances in Neural Information Processing Systems, volume 35, 2022. URL https://proceedings.neurips.cc/paper_files/paper/2022/hash/756d74cd58592849c904421e3b2ec7a4-Abstract-Conference.html. 3
[24] Amirhossein Kazemnejad, Milad Aghajohari, Eva Portelance, Alessandro Sordoni, Siva Reddy, Aaron Courville, and Nicolas Le Roux. VinePPO: Refining credit assignment in RL training of LLMs. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 29557–29590. PMLR, 2025. URL https://proceedings.mlr.press/v267/kazemnejad25a.html.
[25] Bowei He, Yankai Chen, Xiaokun Zhang, and Xue Liu. Branching policy optimization: Sandbox-native language agent reinforcement learning. arXiv preprint arXiv:2607.14171, 2026. URL https://arxiv.org/abs/2607.14171. 3
[26] Zhenyu Hou, Ziniu Hu, Yujiang Li, Rui Lu, Jie Tang, and Yuxiao Dong. Treerl: Llm reinforcement learning with on-policy tree search. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12355–12369, 2025. 3
[27] Yiran Guo, Lijie Xu, Jie Liu, Dan Ye, and Shuang Qiu. Segment policy optimization: Effective segment-level credit assignment in RL for large language models. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/a6536243037d1e32c20de85137d478da-Abstract-Conference.html.
[28] Zhicheng Yang, Zhijiang Guo, Yinya Huang, Xiaodan Liang, Yiwei Wang, and Jing Tang. Treerpo: Tree relative policy optimization. arXiv preprint arXiv:2506.05183, 2025.
[29] Yizhi Li, Qingshui Gu, Zhoufutu Wen, Ziniu Li, Tianshun Xing, Shuyue Guo, Tianyu Zheng, Xin Zhou, Xingwei Qu, Wangchunshu Zhou, et al. Treepo: Bridging the gap of policy optimization and efficacy and inference efficiency with heuristic tree-based modeling. arXiv preprint arXiv:2508.17445, 2025.
[30] Yuxiang Ji, Ziyu Ma, Yong Wang, Guanhua Chen, Xiangxiang Chu, and Liaoni Wu. Tree search for LLM agent reinforcement learning. In International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=ZpQwAFhU13.
[31] Zheng Ding and Weirui Ye. TreeGRPO: Tree-advantage GRPO for online RL post-training of diffusion models. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=3rZdp4TmUb. 3
[32] Guanting Dong, Hangyu Mao, Kai Ma, Licheng Bao, Yifei Chen, Zhongyuan Wang, Zhongxia Chen, Jiazhen Du, Huiyang Wang, Fuzheng Zhang, et al. Agentic reinforced policy optimization. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2507.19849. 3
[33] Shangyu Xing, Siyuan Wang, Chenyuan Yang, Xin-Yu Dai, and Xiang Ren. Lookahead tree-based rollouts for enhanced trajectory-level exploration in reinforcement learning with verifiable rewards. In International Conference on Learning Representations, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/355d36f5f0922d050d9b6eaa3511d301-Abstract-Conference.html.
[34] Zefang Zong, Dingwei Chen, Yang Li, Qi Yi, Bo Zhou, Chengming Li, Bo Qian, Peng Chen, and Jie Jiang. AT PO: Agentic turn-based policy optimization via tree search. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 24120–24143. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.acl-long.1106. URL https://aclanthology.org/2026.acl-long.1106/.
[35] Jinyang Wu, Shuo Yang, Yuhao Shen, Shuai Zhang, Zhengqi Wen, and Jianhua Tao. SPARK: Strategic policy-aware exploration via dynamic branching for long-horizon agentic learning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 23981–24004. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.acl-long.1100. URL https://aclanthology.org/2026.acl-long.1100/.
[36] Yijun Zhang, Fan Xu, Jiaxin Ding, Yule Xie, Shiqing Gao, Xin Ding, Haoxiang Zhang, Luoyi Fu, and Xinbing Wang. Information gain-based rollout policy optimization: An adaptive tree-structured rollout approach for multi-turn LLM agents. arXiv preprint arXiv:2607.06223, 2026. URL https://arxiv.org/abs/2607.06223.
[37] Tobias Graf and Marco Platzner. Adaptive playouts for online learning of policies during Monte Carlo tree search. Theoretical Computer Science, 644:53–62, 2016. doi: 10.1016/j.tcs.2016.06.029. URL https://doi.org/10.1016/j.tcs.2016.06.029.
[38] Shangtong Zhang, Hao Chen, and Hengshuai Yao. ACE: An actor ensemble algorithm for continuous control with tree search. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 5789–5796, 2019. doi: 10.1609/aaai.v33i01.33015789. URL https://ojs.aaai.org/index.php/AAAI/article/view/4526.
[39] Gregory Farquhar, Tim Rocktäschel, Maximilian Igl, and Shimon Whiteson. TreeQN and ATreeC: Differentiable tree-structured models for deep reinforcement learning. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=H1dh6Ax0Z.
[40] Tetsuro Morimura, Kazuhiro Ota, Kenshi Abe, and Peinan Zhang. Policy gradient algorithms with Monte Carlo tree learning for non-Markov decision processes. Reinforcement Learning Journal, 3:1351–1376, 2024. URL https://rlj.cs.umass.edu/2024/papers/Paper168.html.
[41] Gal Dalal, Assaf Hallak, Gugan Thoppe, Shie Mannor, and Gal Chechik. Policy gradient with tree expansion. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 12229–12255. PMLR, 2025. URL https://proceedings.mlr.press/v267/dalal25a.html.
[42] Dennis J. N. J. Soemers, Éric Piette, Matthew Stephenson, and Cameron Browne. Learning policies from self-play with policy gradients and MCTS value estimates. In 2019 IEEE Conference on Games (CoG), pages 1–8. IEEE, 2019. doi: 10.1109/CIG.2019.8848037. URL https://doi.org/10.1109/CIG.2019.8848037.
[43] Wanxin Tian, Shijie Zhang, Kevin Zhang, Xiaowei Chi, Chunkai Fan, Junyu Lu, Yulin Luo, Qiang Zhou, Yiming Zhao, Ning Liu, et al. Seea-r1: Tree-structured reinforcement fine-tuning for self-evolving embodied agents. arXiv preprint arXiv:2506.21669, 2025. 3
[44] Sham Kakade and John Langford. Approximately optimal approximate reinforcement learning. In Proceedings of the Nineteenth International Conference on Machine Learning, pages 267–274, 2002. URL https://people.eecs.berkeley.edu/~pabbeel/cs287-fa09/readings/KakadeLangford-icml2002.pdf. 4, 21
[45] John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International conference on machine learning, pages 1889–1897. PMLR, 2015. 4, 21
[46] Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171, 2022. 6
[47] Shengyi Huang, Rousslan Fernand Julien Dossa, Chang Ye, Jeff Braga, Dipam Chakraborty, Kinal Mehta, and JoÃGo GM AraÚjo. Cleanrl: High-quality single-file implementations of deep reinforcement learning algorithms. Journal of Machine Learning Research, 23(274):1–18, 2022. 8
[48] Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ international conference on intelligent robots and systems, pages 5026–5033. IEEE, 2012. 8
[49] Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of artificial intelligence research, 47:253–279, 2013. 8
[50] Marlos C Machado, Marc G Bellemare, Erik Talvitie, Joel Veness, Matthew Hausknecht, and Michael Bowling. Revisiting the arcade learning environment: Evaluation protocols and open problems for general agents. Journal of Artificial Intelligence Research, 61:523–562, 2018. 8
[51] Rishabh Agarwal, Max Schwarzer, Pablo Samuel Castro, Aaron Courville, and Marc G Bellemare. Deep reinforcement learning at the edge of the statistical precipice. Advances in Neural Information Processing Systems, 34:29304–29320, 2021. 8
[52] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z. F. Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu, Bing Xue, Bingxuan Wang, Bochao Wu, Bei Feng, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chong Ruan, Damai Dai, Deli Chen, Dongjie Ji, Erhang Li, Fangyun Lin, Fucong Dai, Fuli Luo, Guangbo Hao, Guanting Chen, Guowei Li, H. Zhang, Hanwei Xu, Honghui Ding, Huazuo Gao, Hui Qu, Hui Li, Jianzhong Guo, Jiashi Li, Jingchang Chen, Jingyang Yuan, Jinhao Tu, Junjie Qiu, Junlong Li, J. L. Cai, Jiaqi Ni, Jian Liang, Jin Chen, Kai Dong, Kai Hu, Kaichao You, Kaige Gao, Kang Guan, Kexin Huang, Kuai Yu, Lean Wang, Lecong Zhang, Liang Zhao, Litong Wang, Liyue Zhang, Lei Xu, Leyi Xia, Mingchuan Zhang, Minghua Zhang, Minghui Tang, Mingxu Zhou, Meng Li, Miaojun Wang, Mingming Li, Ning Tian, Panpan Huang, Peng Zhang, Qiancheng Wang, Qinyu Chen, Qiushi Du, Ruiqi Ge, Ruisong Zhang, Ruizhe Pan, Runji Wang, R. J. Chen, R. L. Jin, Ruyi Chen, Shanghao Lu, Shangyan Zhou, Shanhuang Chen, Shengfeng Ye, Shiyu Wang, Shuiping Yu, Shunfeng Zhou, Shuting Pan, S. S. Li, Shuang Zhou, Shaoqing Wu, Tao Yun, Tian Pei, Tianyu Sun, T. Wang, Wangding Zeng, Wen Liu, Wenfeng Liang, Wenjun Gao, Wenqin Yu, Wentao Zhang, W. L. Xiao, Wei An, Xiaodong Liu, Xiaohan Wang, Xiaokang Chen, Xiaotao Nie, Xin Cheng, Xin Liu, Xin Xie, Xingchao Liu, Xinyu Yang, Xinyuan Li, Xuecheng Su, Xuheng Lin, X. Q. Li, Xiangyue Jin, Xiaojin Shen, Xiaosha Chen, Xiaowen Sun, Xiaoxiang Wang, Xinnan Song, Xinyi Zhou, Xianzu Wang, Xinxia Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Yang Zhang, Yanhong Xu, Yao Li, Yao Zhao, Yaofeng Sun, Yaohui Wang, Yi Yu, Yichao Zhang, Yifan Shi, Yiliang Xiong, Ying He, Yishi Piao, Yisong Wang, Yixuan Tan, Yiyang Ma, Yiyuan Liu, Yongqiang Guo, Yuan Ou, Yuduan Wang, Yue Gong, Yuheng Zou, Yujia He, Yunfan Xiong, Yuxiang Luo, Yuxiang You, Yuxuan Liu, Yuyang Zhou, Y. X. Zhu, Yanping Huang, Yaohui Li, Yi Zheng, Yuchen Zhu, Yunxian Ma, Ying Tang, Yukun Zha, Yuting Yan, Z. Z. Ren, Zehui Ren, Zhangli Sha, Zhe Fu, Zhean Xu, Zhenda Xie, Zhengyan Zhang, Zhewen Hao, Zhicheng Ma, Zhigang Yan, Zhiyu Wu, Zihui Gu, Zijia Zhu, Zijun Liu, Zilin Li, Ziwei Xie, Ziyang Song, Zizheng Pan, Zhen Huang, Zhipeng Xu, Zhongyu Zhang, and Zhen Zhang. Deepseek-r1 incentivizes reasoning in llms through reinforcement learning. Nature, 645(8081):633–638, September 2025. ISSN 1476-4687. doi:10.1038/s41586-025-09422-z. URL http://dx.doi.org/10.1038/s41586-025-09422-z. 8
[53] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. 8
[54] Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. Hybridflow: A flexible and efficient rlhf framework. In Proceedings of the Twentieth European Conference on Computer Systems, pages 1279–1297, 2025. 8
[55] Philipp Moritz, Robert Nishihara, Stephanie Wang, Alexey Tumanov, Richard Liaw, Eric Liang, Melih Elibol, Zongheng Yang, William Paul, Michael I Jordan, et al. Ray: A distributed framework for emerging {AI} applications. In 13th USENIX symposium on operating systems design and implementation (OSDI 18), pages 561–577, 2018. 8
[56] Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, et al. Dapo: An open-source llm reinforcement learning system at scale. arXiv preprint arXiv:2503.14476, 2025. 8
[57] Jian Hu, Jason Klein Liu, Haotian Xu, and Wei Shen. Reinforce++: Stabilizing critic-free policy optimization with global advantage normalization. arXiv preprint arXiv:2501.03262, 2025. 8
[58] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. URL https://arxiv.org/abs/2402.03300, 2(3):5, 2024. 8
[59] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021. 8
[60] Yifan Zhang and Team Math-AI. American invitational mathematics examination (AIME) 2025, 2025. URL https://huggingface.co/datasets/math-ai/aime25. 8
[61] John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438, 2015. 16
Table of Contents
A Tree Trajectory Policy Optimization 16
A.1 Standard Chain Policy Gradient and Generalized Advantage Estimation 16
A.2 On-Policy Tree Trajectories 17
A.3 Branch Aggregation Lemma 17
A.4 Applying the Branch Aggregation Lemma to Tree Trajectories 19
A.5 PPO-Style Tree Trajectory Policy Optimization 20
B On-Policy Parallel Tree Search 21
B.1 Performance-Difference Estimation 21
B.2 Budget Alignment and Length Penalty Across Domains 22
B.3 On-Policy Parallel Tree Search 22
B.4 Max-Backup TreeGAE and Search-Budget Improvement 23
C OPTS-TTPO: Search-Enhanced Policy Gradients 27
C.1 Posterior Max Backup as Prefix Credit 27
C.2 Controlling the Search-Induced Gradient Bias 28
C.3 OPTS-TTPO Training Procedure 31
D Experimental Setup 31
D.1 Tree-Gradient Estimation: Setup and Protocol 31
D.2 OPTS Search and Test-Time Scaling 32
D.3 Coverage-Bias and Prefix-Credit Mechanism Protocol 33
D.4 Cross-Domain Policy Learning 33
D.5 Optimization Hyperparameters 34
D.6 Simulator State Restoration 34
D.7 Training-Evaluation Overlap Audit 35
D.8 LLM Prompt and Chat Template 35
D.9 LLM Reasoning as a Markov Decision Process 36
E Rollout Scaling Across Individual Benchmarks 36
F Search-Budget Improvement of OPTS 36
G Rebranching Position: Performance-Difference versus Random and Midpoint Selection 37
H MuJoCo Hyper-Parameter Grid: Length-Penalty Exponent and Search Count 38
I Full Atari-57 Learning Curves 38
J Backup-Rule Comparison on Sticky-Action Atari 40
K Per-Checkpoint LLM Evaluation Curves 41
L Wall-Clock Composition of OPTS-TTPO 42
A Tree Trajectory Policy Optimization
This section derives Tree Trajectory Policy Optimization (TTPO) from the standard chain-trajectory policy gradient. We first define a general branch aggregation rule for chain statistics, and then instantiate its direct and recursive forms as the Tree Trajectory Policy Gradient (TTPG) and Tree-based Generalized Advantage Estimation (TreeGAE).
A.1 Standard Chain Policy Gradient and Generalized Advantage Estimation
Consider a finite-horizon discounted Markov decision process
and a differentiable stochastic policy . The time index is included in the state. A chain trajectory is written as , where , , , and . We set and pad an earlier terminal state by zero-reward absorbing transitions when necessary. The discounted objective and suffix return are
Let and . The likelihood-ratio identity gives
(A.2)
For any state-dependent baseline , . Taking yields the standard chain policy gradient [1]:
For any value function , define the temporal-difference residual
Generalized Advantage Estimation (GAE) [61] is the discounted chain sum of TD residuals,
When , the first TD residual satisfies . For every , on-policy action sampling and the Markov property give
Consequently,
A.2 On-Policy Tree Trajectories
An on-policy tree trajectory consists of a root state and a finite indexed set of transition occurrences. The index identifies the root-state occurrence. Starting from , the construction recursively samples outgoing transitions and extends their successor occurrences to the horizon; suffixes sharing a state occurrence share the prefix ending there. A transition from a parent state occurrence to a child state occurrence is written as . The transition set satisfies the following conditions. First, rooted connectivity requires every transition to have a unique path from : its source is either or the successor-state occurrence of exactly one preceding transition. Second, every transition is generated by the current policy and the environment,
When the parent–child indices are not needed, we index transition occurrences by and denote their source state, action, reward, and successor state by , respectively. The successor state is also the source state of each child transition . The depth of is , and means .
Here, on-policy refers to the conditional generation in Equation A.8. Because every new suffix is sampled from the current policy, tree search introduces no separate behavior policy and requires no additional action-distribution importance correction at data collection. This local property does not imply that the random tree has the same state-visitation distribution as a policy chain. Selecting a previously visited state for rebranching is a decision made by an external algorithm rather than an action generated by the policy; states preferred by the branching rule therefore receive more suffix samples in the tree. The Branch Aggregation Lemma below gives the conditions under which a branch-weighted additive statistic on such a tree recovers the expectation of its chain-trajectory counterpart.
A.3 Branch Aggregation Lemma
The policy gradient and GAE are expectations of discounted sums along chain trajectories, and a tree changes how often each part of a chain is observed. Section 3.1 illustrates this with three suffixes sampled at one depth of a chain: naive summation counts the suffix three times relative to the prefix, and averaging the three suffixes restores the chain proportions. The lemma generalizes this correction to arbitrary trees: it gives the weights under which tree sums recover the chain expectation, and states the conditions on how branches may be chosen for the correction to hold.
Let be any integrable scalar- or vector-valued function of a transition and let be a scalar. The chain statistic of interest is
Its on-policy target is .
Let denote the sigma-field of all information available upon reaching , before sampling its outgoing transitions. Write for its child-index set and for a local branch weight. In the generic transition notation , the corresponding information before sampling is denoted by .
Conditions for recovering the chain expectation.
-
Conditional on-policy sampling. Given , each outgoing transition is sampled according to Equation A.8.
-
Measurable, normalized branch weights. The finite local-weight family is -measurable and satisfies
The child set and its local weights may be random and prefix-dependent, but they must be -measurable, that is, determined before the corresponding outgoing transitions are sampled. Conditional on-policy sampling alone is therefore insufficient for Equation A.16.
Additional on-policy suffixes may be sampled from selected state occurrences and share their existing prefixes. Further branching may occur along the resulting suffixes, while unbranched segments retain the ordinary chain structure. The local contribution of a transition is still , and a shared prefix appears once in the tree. Along a branch, the available information satisfies .
The global branch weight is computed recursively as
Thus is the product of the local weights along the unique path from to . We next define the branch-weighted tree statistic by direct summation over all transitions and by recursive aggregation from the leaves to the root.
Direct aggregation. The direct branch-weighted tree sum is
Recursive aggregation. Let denote the aggregated suffix beginning at the state occurrence . Starting from the leaves, define
where when . At the root, define
Lemma 1 (Branch aggregation). For every realized tree, the two aggregation forms satisfy
Under the recovery conditions above, both forms recover the expectation of the original chain statistic:
Proof. Part I: Direct–recursive equivalence.
Root layer. Equations A.11 and A.13 give
(A.17)
One-layer expansion. For every , expanding the depth- remainder once gives
(A.18)
Full expansion. Applying Equation A.18 successively to Equation A.17, and using at , yields
(A.19)
Part II: Recovery of the chain expectation
Chain suffix target. Let be an on-policy chain suffix from through the remaining horizon, and let denote its remaining chain sum with the local discount starting from ; at the terminal state this sum is zero. Define
One-step chain recursion. Equation A.8 and the tower property give, for every ,
Base case. At ,
Induction step. Assuming the same identity at the children of , Equations A.13 and A.21 give
(A.23)
Root expectation. Finally, and the tower property give
(A.24)
Together with Equation A.19, this proves Equation A.16.
A.4 Applying the Branch Aggregation Lemma to Tree Trajectories
The tree generator in this subsection satisfies the chain-expectation recovery conditions in Appendix A.3; in particular, its transitions are conditionally sampled from and its branch weights are fixed from prefix information before the corresponding outgoing transitions are sampled.
Tree Trajectory Policy Gradient (TTPG). The branching decisions and weights are held fixed under differentiation. Set and
in the direct aggregation formula. Applying Lemma 1 and Equation A.3 gives
Thus TTPG is the direct-summation instance of branch aggregation.
Tree-based Generalized Advantage Estimation (TreeGAE). For a transition , define
Set and in recursive aggregation. The resulting TreeGAE recursion is
with the recursive term set to zero beyond depth .
Applying Lemma 1 to the transition subtree beginning at shows that TreeGAE and chain GAE have the same conditional suffix expectation under the same value function. For , Equation A.7 and the Markov property give
By Equation A.28 and the -measurability of ,
(A.29)
Summing over the tree and applying the tower property yields
A.5 PPO-Style Tree Trajectory Policy Optimization
In practice, as in PPO, we omit the outer state-visitation discount by setting in the actor and critic objectives and the normalization statistics below. The discount used in return estimation and TreeGAE remains unchanged.
Let be the policy used to sample the actions in the on-policy tree and define the per-node probability ratio
For a minibatch of sampled trees, let be the number of transitions it contains, and define the branch-weighted empirical average by
Search changes how rollout suffixes share prefixes and therefore how many transition occurrences are stored in a minibatch. Following the per-transition averaging used in PPO implementations, we divide the branch-weighted actor and critic sums by , so that the raw number of stored transitions does not directly scale the update. This is a practical loss normalization rather than part of the chain-expectation identity in Lemma 1. With the tree and its branch weights held fixed, the clipped TTPO actor objective extends the PPO surrogate [2] to action-level gradient aggregation:
where is fixed when optimizing . At , , and the derivative of either clipped branch is . Hence
Thus maximizing gives the PPO-style clipped counterpart of TTPG under the practical convention above. For value estimation, let denote the critic parameters used to construct the fixed target, define , and define the clipped value prediction
The corresponding branch-weighted value objective is
The actor objective is maximized and the value objective is minimized.
Branch-weighted advantage normalization. Whitening serves a different purpose and therefore uses the total branch mass to normalize the branch weights. Under the conditions of Lemma 1, the resulting weighted statistics are consistent for the corresponding moments of the chain-transition distribution; using instead would leave the branch weights unnormalized and allow branch multiplicity to distort these moments. As in PPO, whitening with finite-batch statistics remains an approximation. Define the weighted advantage mean and degrees-of-freedom-corrected variance by
(A.37)
The normalized advantage is
When advantage normalization is enabled, replaces in Equation A.33.
Scope and transition to adaptive search. Unlike the tree generators covered above, OPTS, introduced in the next section, selects expansion states using outcomes already observed in the tree. Its resulting child sets and local weights therefore need not be -measurable and can be correlated with the suffix statistics they aggregate. Consequently, the conditional-expectation step in Equation A.23 does not directly extend to OPTS trees, and Lemma 1 alone does not establish chain-expectation recovery for the adaptive search distribution. Appendix C separates this posterior selection effect from the additional max-backup prefix-credit term and bounds the resulting gradient bias.
B On-Policy Parallel Tree Search
This section derives a performance-difference estimate for rebranching by accumulating policy-relative local action improvements, aligns the estimate with the domain's search-budget unit, and uses it to define On-Policy Parallel Tree Search (OPTS). This is the budget-allocation layer of the method.
B.1 Performance-Difference Estimation
Let be the policy used to resample a suffix, and let be an arbitrary behavior policy. Starting from , and the environment generate , where is terminal and .
Performance-Difference Estimate. We define the performance-difference estimate at on as
Each term is the local expected improvement from replacing by a fresh action from and following thereafter. The estimate has two properties:
- Expected performance improvement. The performance difference lemma [44, 45] gives
Thus estimates the expected return improvement from switching from to at . In particular, when , Equation B.2 becomes
Before observing the reference suffix, retaining it and independently resampling from the same policy have equal expected value.
- Improvement in deterministic environments. When the environment is deterministic, , and Equation B.1 telescopes to
The first term is the expected return of a new suffix sampled from , and the second is the return of the observed reference suffix. Their difference is the expected improvement from rebranching at .
Rebranching state selection. The rebranching state is the admissible state on the observed path with the largest performance-difference estimate:
TreeGAE estimation. In practice, TreeGAE advantages replace , giving the TreeGAE-estimated performance difference:
B.2 Budget Alignment and Length Penalty Across Domains
The search budget is measured in rollouts for LLMs and in transitions for Atari and MuJoCo. Accordingly, we use the unpenalized estimate for LLMs and a suffix-length-penalized estimate for Atari and MuJoCo:
At , this recovers the original performance-difference estimate, while gives the average discounted local improvement along the suffix. Values balance total improvement against suffix length. Specific domain settings are given in Appendix D.
B.3 On-Policy Parallel Tree Search
A greedy path starts at the root and repeatedly follows until reaching a leaf. The OPTS portion of Figure 1 illustrates the search process, and Algorithm 1 gives the batch-level OPTS procedure. It backs up Equation B.6 along each greedy reference path and applies Equation B.7 before selecting the rebranching position.
Selected suffixes in Algorithm 1 are sampled from at the selected states, while fresh root trajectories that fill unused batch slots are sampled from ; both are generated in one batched rollout. Thus adaptive search requires no separate action-distribution importance correction. The selected state, however, is a function of the observed tree through the backed-up advantages and performance-difference estimates. Consequently, the induced tree distribution generally violates the prefix-measurability condition of Lemma 1. Uniform branch weights still account for branch multiplicity, but they do not by themselves remove this posterior selection effect; Appendix C.2 bounds the resulting gradient bias.
Algorithm 1 On-Policy Parallel Tree Search (OPTS)
Require: Policy , environment , initial distribution , value function , batch size , batch runs , per-tree search budget , budget exponent , baseline
1: ,
2:
3: , ,
4: TREEGAEBACKUP()
5: for do
6: for all active trees with in parallel do
7:
8:
9:
10: end for
11:
12: ,
13:
14: ,
15: ,
16: TREEGAEBACKUP()
17: end for
18: return
Here indexes new trees, and retains at most states.
Tree-conditioned greedy path. For a fixed root , couple the search trees from one OPTS run as , where is the number of completed rebranching expansions. Let be the retained root-to-leaf paths of . OPTS only attaches new suffixes and retains all existing paths; after termination, let subsequent trees remain unchanged. Hence, for ,
At , contains the initial path and . Once the tree is realized, its backed-up scores determine the greedy path
Greedy path policy. For a realized tree , the greedy path policy executes the actions recorded on while the executed history matches a prefix of that path, and follows after the first deviation.
Induced search policy. Across OPTS runs, is random under . Let denote the trajectory generated by executing the greedy path policy from . Marginalizing this execution over the latent search-tree randomness defines the induced, generally history-dependent search policy :
Thus is conditioned on one realized tree, and is its marginal execution behavior across OPTS trees.
B.4 Max-Backup TreeGAE and Search-Budget Improvement
In deterministic environments, OPTS uses max-backup TreeGAE throughout search. For , specialize Equation A.27 with
Let and hold it fixed, giving
The greedy path follows a maximizing child at each visited state.
For a path , define
For any policy , let
At zero search, the only retained path is the original rollout, so .
Theorem 1 (Monotone Improvement of the Search Objective). In the deterministic environment above with the fixed exact value function , consider any search with nested path sets (Equation B.8) and max-backup greedy selection, and let be its induced policy as in Equation B.10. If is integrable, then for every and ,
The first inequality is strict if .
Proof. Part I: Path optimality.
Fix a search tree and consider its retained suffix paths. We identify the max-backup values with their maximal discounted TD sums by backward induction.
Base case. At a leaf transition , with ,
Induction step. Let and assume the identity holds at every child . Partitioning the suffixes by their first child and using gives
Root conclusion. The greedy path attains each recursive maximum. Induction from the leaves to the root therefore yields
Thus .
Part II: Budget monotonicity.
Equations B.8 and B.15 give
Taking expectations over the initial state and search tree, Equation B.10 yields
With , the Bellman equation gives
For strictness,
□
Theorem 2 (Monotone Improvement under OPTS). In a deterministic environment with the fixed exact value function , assume integrable returns, baseline , independent complete on-policy suffix rollouts, and suffix-closed admissibility ( admissible admissible for ). Retain the incumbent on max-backup ties. Then, for , , and ,
Proof. Part I: Incumbent return bound.
Fix , and let be the transition leaving the selected state on , with . Write for the estimates on this path in Equation B.6, with . Along the greedy path, Equation B.11 gives
The selection rule gives
For , suffix closure and maximality imply
Combining Equations B.18–B.19 yields
At the final transition,
Part II: Fresh-suffix return bound
For the fresh on-policy suffix , use primes for its sampled quantities and let be the pre-action information. Let be its chain GAE from Equation A.5, under the same . On-policy sampling and the Bellman equation give, for every ,
For , we prove by backward induction that, for every threshold ,
Base case. At the final transition,
Induction step. Assume Equation B.22 holds at for every threshold. Subtracting the GAE recursion from the return recursion gives
Given , the first TD residual is known and
The induction hypothesis and Equation B.21 therefore yield
Taking completes the induction.
Initial-state conclusion. Equations B.21–B.22 give
At , and the later TD residuals have zero conditional contribution, so
Part III: Budget monotonicity
The new suffix is selected when , with the greedy prefix unchanged. Conditional on , independence of the fresh rollout and Equations B.20 and B.23 give
(B.24)
Terminated runs contribute zero increment. The tower property yields
Iterating from proves Equation B.17. For strictness at an expansion ,
At , OPTS selects the greedy- path; at , it selects the largest-return path. Intermediate values trade off preserving the best complete return already found against selecting high- states from which subsequent rebranching can improve it.
C OPTS-TTPO: Search-Enhanced Policy Gradients
The Branch Aggregation Lemma is the foundation for learning from prefix-measurable trees, and the performance-difference estimate allocates rollout budget. OPTS deliberately departs from the lemma's sampling condition by using observed suffixes to decide where to expand and, under max backup, which discovered suffix to propagate. Each new suffix remains conditionally sampled from the current policy, but the posterior decisions change the induced tree distribution. This section explains the structure contributed by that posterior information and bounds the resulting gradient bias.
We use uniform local branch weights , with given by Equation A.11, to account for branch multiplicity. For a fixed state and action sequence , deterministic dynamics uniquely determine the suffix return ; replaying the same sequence therefore reproduces its return. In this setting, we use max-backup TreeGAE, the backup rule under which Appendix B establishes the search-improvement guarantees. Under stochastic dynamics, need not be uniquely determined even after conditioning on the same action sequence. Maximizing a finite set of backed-up suffix scores can then select both suffix quality and environmental noise, causing high-variance return distributions to be favored over suffixes with higher conditional expected returns. We therefore use mean-backup TreeGAE to average sampled suffixes and reduce this max-selection effect while retaining the coverage gained from branching. Adaptive expansion affects both variants; max backup contributes the additional prefix-credit term analyzed below.
C.1 Posterior Max Backup as Prefix Credit
Fix a tree sampled from , a critic , and a common . Using this critic, compute by Equation B.11 and by Equation A.27 with the uniform weights above. Let and denote their TTPG directions, evaluated at :
with defined analogously. The tree, critic, weights, and backed-up marks are held fixed during this actor update.
At a transition x with children, define the best-minus-average suffix gap
and set at a leaf. Write when lies on the root-to-u path, including itself.
Theorem 3 (Posterior Prefix Reinforcement). For every such tree, define the frozen-tree surrogate
Then
Consequently, at , their directional derivatives of this surrogate satisfy
Proof. Part I: Propagation of the suffix gap. Subtracting the two backup recursions gives
Expanding to the leaves and using the product definition of yields
Part II: Credit assigned to the prefix. Substitute Equation C.7 into the difference of the TTPG sums and exchange the ancestor–descendant sums:
(C.8)
This is the gradient of Equation C.3. Taking its inner product with that gradient proves Equation C.5.
What posterior max backup contributes. In a deterministic environment with , Equation B.15 identifies each max-backup mark with the best retained suffix -return relative to its source-state value. Thus measures the best-minus-average -return gap among the retained child suffixes. Max backup passes this relative gain to the actions leading to the branch point. At , the inner sum in Equation C.3 is the log-likelihood of the action prefix through ; for , the additional credit decays with the distance to that branch point. At , both backups reduce to the local TD residual.
Equation C.5 quantifies the additional first-order change in this weighted prefix objective under a max-backup update. It explains how a discovered suffix can influence upstream learning before the current policy reliably reproduces that suffix. Subsequent on-policy rollouts and downstream updates determine how this credit is translated into realized return.
The identity is pathwise, so it also holds after averaging the two directions over the same OPTS tree distribution. Adaptive expansion determines which suffixes are available; posterior max backup determines how their relative values are propagated. We account for both effects below.
C.2 Controlling the Search-Induced Gradient Bias
Draw an initial trajectory and let be its random number of OPTS expansions. Allocation and stopping may depend on all observed search outcomes. Evaluate and on the resulting tree , and write . The mean-backup direction contains the adaptive tree-selection effect; the difference isolates the additional prefix-credit contribution of posterior max backup. Let be the chain-GAE policy-gradient sum with the same critic and discount, and define . This initial-chain bias vanishes with exact advantages. For chain GAE, exact likewise gives
by the chain policy-gradient and GAE identities.
Suppose , and . The TD residual satisfies
For either tree backup,
Recursing from the leaves over at most steps gives the uniform absolute bound for chain GAE and both tree backups:
With , the normalized branch weights have total mass one at each depth, so every corresponding tree or chain direction has norm at most .
Let
Here is the population fraction of root trees receiving at least one search expansion, and bounds the expected total path weight assigned to paths other than the initial trajectory. The extra population-gradient contribution of max backup is measured by
Proposition 2 (Search-Induced Gradient Bias Bound). Under the preceding conditions,
(C.12)
where the backup contribution satisfies
Proof. Part I: Adaptive sampling and branch weighting. For each retained path , let . Expanding the mean recursion gives the pathwise identity
This uses the direct–recursive aggregation identity from Lemma 1. Adding one child to a branch point with children on the initial path multiplies its existing local weight by . Expansions elsewhere leave that path's weight unchanged. Hence and
(C.15)
The initial trajectory retains its on-policy marginal law. By the triangle inequality and ,
Part II: Posterior max backup. Equation C.4 separates the two contributions exactly:
By the triangle inequality and Part I,
which gives the second alternative in Equation C.12. Using Equation C.8 and the nonnegative coefficients,
which proves Equation C.13.
Part III: A uniform cap. On , the max-backup direction equals the initial chain direction. Consequently,
which proves the first alternative.
Dependence on the search budget. Both search contributions vanish on unexpanded trees. Since ,
A node with one child has , and each expansion adds one suffix. Thus
The unit branch mass at each depth also gives
Combining these bounds with Equation C.13,
Thus the searched-tree fraction scales both contributions, the expansion cap bounds the number of posterior decisions, and the suffix gaps quantify the additional credit actually introduced by max backup. Normalized branch weights keep the total gradient scale bounded as the tree grows. At , the bound reduces to , and exact values recover the unbiased chain policy gradient.
C.3 OPTS-TTPO Training Procedure
Algorithm 2 OPTS-TTPO training step
Require: , baseline
1: by Algorithm 1
2: Set and compute by Equation A.11
3: Construct TTPO losses using the TreeGAE advantages in and branch weights by Section 3.1
4: Update the critic with and the actor with
D Experimental Setup
We describe the protocols in the same order as the main text. Shared optimization details, data-overlap auditing, prompt formatting, and the language-model MDP formulation follow these experiment-specific settings.
D.1 Tree-Gradient Estimation: Setup and Protocol
For the gradient-aggregation experiment in Section 4.1, we freeze a step-400 Qwen3-1.7B PPO actor and use 16,384 training prompts. The estimator side contains eight midpoint-branch tree groups with additional suffixes; the reference side contains 32 independently sampled chain groups. Both sides use global token-level aggregation. The reference gradient, tree construction, and metrics are described below.
Reference gradient. We freeze the step-400 Qwen3-1.7B PPO checkpoint and evaluate all gradients on the 16,384-prompt training set. Returns are binary verifier outcomes, with and no learned baseline. For a collection of chain responses, define
(D.1) where ranges over valid response-token transitions. We independently sample 32 chain groups, each containing one response per prompt, and form the reference over their union as . This reference is finite; reported bias is deviation from , not population bias.
Tree gradients. We independently sample eight tree groups, each containing one tree per prompt. Each tree branches at the midpoint of its backbone response, retains the original suffix, and samples 15 additional on-policy suffixes. The settings use nested subsets of the first additional suffixes. Within a tree, let be the binary return of suffix . The shared-prefix target is the branch mean , while every token on suffix uses .
For , let for NaivePG and for TTPG. Under the single uniform branch point used here, on the shared prefix and on every suffix. Writing for the assigned prefix or suffix target of and for all valid response-token occurrences in group , we accumulate
Every consecutive groups form one non-overlapping block and one globally normalized estimate
Thus each estimate merges group numerators and token-weight masses before division.
Metrics. For each , , and , write and . We report
D.2 OPTS Search and Test-Time Scaling
Exact-value experiment. We construct 32 fixed environment-policy configurations (seeds 0–31). Each environment is a depth-4 deterministic binary tree with 15 nonterminal states and 16 terminal states. Intermediate rewards are zero; rewards on terminal transitions are a random permutation of . At each nonterminal state, the right-action probability is drawn independently and uniformly from , with the complementary probability assigned to the left action. Reward permutations and policy probabilities use separate random streams. The policy remains fixed, and its exact is computed recursively with .
Both guidance modes use max-backup TreeGAE, , a zero search baseline, and . Reward-guided OPTS uses full advantages including the terminal reward. Value-guided OPTS truncates advantage computation before the terminal transition and bootstraps with exact at the last nonterminal state, equivalently setting the final TD residual to zero. Both modes sample complete on-policy suffixes; only the advantage computation is truncated. Each search round selects the largest performance-difference estimate on the current greedy path and samples one new suffix. Search stops if no estimate exceeds zero; max-backup ties retain the incumbent path, and ties between candidate positions select the earliest position.
We enumerate all possible initial trajectories and subsequent suffix samples, weighting them by their policy probabilities to obtain exact expectations for every budget . Both modes are evaluated using the full-reward and true return along their guidance-greedy paths. For each mode and metric, the monotonicity check comprises comparisons between adjacent budgets. Figure 3 (top) plots improvements relative to ; curves and shaded bands show the mean and one sample standard deviation across the 32 configurations.
Learned-critic experiment. For the search-budget experiment in Section 4.2, we freeze a step-400 Qwen3-1.7B OPTS-TTPO actor and critic, use 902 held-out prompts with 32 trees per prompt, and vary with . Reward-guided and value-guided search reuse the same root-response texts. We report the full verifier-reward and terminal verifier return along the guidance-greedy paths, relative to .
Matched-budget test-time scaling. For matched rollout-budget test-time scaling, we evaluate fixed at budgets , corresponding to rollouts. A fresh root rollout and a suffix rollout from a branch point each count as one rollout. Every search round contains 902 rollouts, with unused rebranching slots filled by fresh initial trees. Reward-guided OPTS is compared with i.i.d. pass@k; value-guided OPTS uses the learned value function and truncated GAE and returns the majority answer among value-greedy tree responses, with i.i.d. self-consistency (cons@k) as its baseline. OPTS and i.i.d. baselines use temperature 1.0, top-p = 0.95, and no top-k truncation.
D.3 Coverage–Bias and Prefix-Credit Mechanism Protocol
This protocol produces the two panels in Section 4.3. We freeze the step-400 Qwen3-1.7B OPTS-TTPO actor-critic checkpoint; it is distinct from the PPO checkpoint used for the branch-aggregation experiment. We run the experiment on 16,384 training prompts. The fixed-branch method branches at response token 128 and skips responses shorter than 128 tokens; the other method runs OPTS.
Matched coverage and bias comparison. For the OPTS side, we retain eight trees per prompt and record the search snapshots , with . OPTS selects the rebranching trees using its performance-difference rule. The fixed controls branch at response token 128. At every prompt and search round, each fixed control receives exactly the number of branches selected by OPTS for that prompt and round; its fixed-position trees are sampled uniformly without replacement and do not use their own rewards for allocation. The plotted methods are Fixed + TTPG, Fixed + NaivePG, and OPTS + TTPG (the OPTS max-backup snapshot). We use theory aggregation and recompute the gradient coefficients from direct returns with , so panel (a) isolates the coverage–bias relation rather than learned-critic error. The horizontal coordinate is the relative bias difference from ; the vertical coordinate is the prompt-coverage gain in percentage points.
Prefix-credit comparison. Using the same OPTS trees and snapshots, we reconstruct max- and mean-backup return advantages with V = 0 and compare their difference at shared prefixes. Panel (b) reports token-weighted mean extra credit, grouped by the distance in tokens to the first downstream branch, for . Solid curves use and dashed curves use . Thus the panel measures the credit introduced by max backup on the searched trees; it does not estimate a separate critic effect.
D.4 Cross-Domain Policy Learning
MuJoCo. The suite contains Hopper-v4, Walker2d-v4, HalfCheetah-v4, Ant-v4, and Humanoid-v4. PPO and OPTS-TTPO use one million environment steps and ten random seeds per task. OPTS-TTPO uses max-backup TreeGAE and action-level performance-difference selection with .
Atari-57. We use NoFrameskip variants with sticky actions ( per emulated frame), agent frame skip 4, frame max-pooling, grayscale observations, four-frame stacking, reward clipping, and up to 30 no-ops on reset. CleanRL-style PPO uses a CNN actor-critic. Each method is trained for 10M environment steps with eight parallel environments, 128-step rollouts, and three random seeds per game. OPTS-TTPO reuses , uses mean-backup TreeGAE, and selects states with the action-level performance-difference estimate. We summarize each run by the mean return over all logged points and over the final 100 logged points; IQM is computed over the 57 games and three seeds after human normalization, and task wins compare the three-seed mean within each game.
LLM RLVR. We train four Qwen3 models with VerRL for 400 steps on math12k and the competition subset of NuminaMath-1.5-RL-Verifiable (16K prompts), comparing OPTS-TTPO with PPO, DAPO, and REINFORCE++ at 4,096 completed rollouts per update. OPTS-TTPO uses eight rounds of 512 trajectories. At each selection step, caps the fraction of established trees that may enter search. All four models use the same maximum search count for OPTS-TTPO training. Training uses actor/critic learning rates , max-backup TreeGAE with , and the zero baseline. The answer verifier assigns reward 1 to a verified correct final answer and 0 otherwise; intermediate response-token rewards are zero, and the terminal response token receives this verifier reward, which TreeGAE propagates to preceding tokens. Evaluation uses MATH500 (the math12k test split), MinervaMath, AMC23, AIME24, AIME25, and AIME26, containing 500, 272, 40, 30, 30, and 30 problems. The main table reports both equal-weight Macro Average and question-pooled Micro Average; final comparisons use step 400 and 32 independent responses per prompt, sampled at temperature 1.0 and top-, with top- (no truncation) and a maximum response length of 2,048 tokens.
D.5 Optimization Hyperparameters
Within each control domain, PPO and OPTS-TTPO use the same optimizer and update settings; they differ only in tree construction, advantage backup, and branch weighting. Table D.1 lists the complete shared settings.
Table D.1: Optimization hyperparameters shared by PPO and OPTS-TTPO in the control experiments.
| Setting | MuJoCo | Atari-57 |
|---|---|---|
| Optimizer | Adam, | Adam, |
| Learning rate | , linearly annealed to 0 | , linearly annealed to 0 |
| Rollout batch | transitions | transitions |
| Minibatches / update epochs | ||
| Discount / GAE parameter | ||
| Policy clip / clipped value loss | ||
| Entropy / value-loss coefficient | ||
| Advantage normalization / gradient norm | ||
| Independent training seeds |
All LLM methods use AdamW with , , weight decay 0.1, actor learning rate , ten warmup steps followed by a constant learning rate, gradient clipping at 1.0, one policy-optimization epoch per update, zero entropy coefficient, and no KL penalty in either the reward or loss. Training rollouts use temperature 1.0, top-, no top- truncation, and a maximum response length of 2,048 tokens. Table D.2 gives the method-specific settings.
Table D.2: Method-specific hyperparameters for LLM RLVR.
| Method | Method-specific settings |
|---|---|
| PPO | 4,096 prompts and rollouts per update; GAE with and ; learned critic with learning rate and value clip 0.5; symmetric policy clip 0.2; token-level loss aggregation. |
| DAPO | 512 prompts with 8 responses each; group-relative advantages and no critic; asymmetric policy clip (0.2, 0.28) with dual-clip constant 10; token-level loss aggregation; overlong-response buffer of 1,024 tokens with penalty factor 1.0. |
| REINFORCE++ | 512 prompts with 8 responses each; per-prompt mean reward baseline followed by global advantage whitening, with no critic; symmetric policy clip 0.2; token-level loss aggregation. |
| OPTS-TTPO | 4,096 rollouts collected over the search rounds specified in Appendix D; TreeGAE with a learned critic at learning rate ; symmetric policy clip 0.2; branch-weighted token-level loss aggregation. |
D.6 Simulator State Restoration
OPTS-TTPO uses simulator snapshot-and-restore access to sample new suffixes from visited states, while PPO collects ordinary forward rollouts. Interaction budgets count newly generated transitions, including branch transitions; restoring a snapshot does not itself advance the environment or count as an interaction.
MuJoCo. We snapshot joint positions, velocities, simulation time, auxiliary simulator fields, and derived quantities used by observations. Snapshots also preserve the environment random-number-generator state, elapsed episode steps, episode statistics, observation/reward normalization statistics, and the discounted-return accumulator. Restoration reinstates the physical state, calls mj_forward, and restores the saved derived quantities and wrapper state. Each environment is restored independently to the selected state and its cached observation before new actions are sampled from the current policy.
Atari. We use ALE's cloneSystemState and restoreSystemState to save and restore emulator state, including the sticky-action random-number-generator state. Snapshots also preserve frame-stack and max-pooling buffers, life-loss bookkeeping, elapsed-step and episode-statistics counters, and the random state used for reset no-ops. Thus a restored branch resumes the saved environment random stream, while actions are newly sampled from the current policy. Environments maintain separate snapshots, with batched policy inference. After a terminal or truncated trajectory, a selected branch restores its snapshot and observation; otherwise, the environment follows the standard wrapped reset, including episodic-life handling. Each update collects 128 new transitions per environment, bootstrapping nonterminal rollout boundaries with the critic. Tree records are rebuilt after each policy update; unfinished environment trajectories continue, but their carried-over initial segments are excluded from branching.
D.7 Training–Evaluation Overlap Audit
Before constructing the 16,384-prompt LLM training split, we audit the union of the math12k and NuminaMath-1.5-RL-Verifiable training data against all 902 problems in MATH500, MinervaMath, AMC23, and AIME24-26. For each example, we extract the user problem, remove all whitespace, and convert it to lowercase. We remove every training example whose normalized problem exactly matches any normalized evaluation problem, as well as duplicate normalized problems within the merged training pool. We then apply the 1,024-token prompt-length filter, shuffle the remaining pool, and retain 16,384 prompts. The resulting training split has zero exact normalized matches with the six evaluation sets. This audit detects exact problem reuse up to whitespace and letter case; it does not treat paraphrases as matches.
D.8 LLM Prompt and Chat Template
All LLM training and evaluation examples use the same system prompt:
Instruction Prompt for Mathematical Reasoning
You are a math problem solver. For each problem, think through it step by step within <think> </think> tags, then provide your final answer using \boxed{}.
Requirements:
- Show your complete reasoning process inside <think> tags.
- Provide your final answer inside \boxed{}.
Example: User: If , what is x? Assistant: <think> </think> The answer is \boxed{5}.
For every dataset, the original problem text is inserted without an additional task-specific instruction using the following message structure:
[ {"role": "system", "content": SYSTEM_PROMPT}, {"role": "user", "content": PROBLEM} ]
We do not supply a custom Jinja template. VeRL applies the chat template distributed with the corresponding Qwen3 checkpoint with add_generation_prompt=True; thus the two messages are serialized with the checkpoint's system, user, and assistant role delimiters, followed by the assistant generation prefix. Qwen3 thinking mode is retained: evaluation sets enable_thinking=True explicitly, while training uses the checkpoint template's default thinking behavior. The same message construction and tokenizer template are used for all four training methods and all six evaluation sets.
D.9 LLM Reasoning as a Markov Decision Process
The initial state is a problem prompt. At generation step , the state contains the prompt and the generated response prefix, and the action is the next response token:
The transition appends to the prefix deterministically. An episode ends at an end-of-sequence token or the response-length limit. Intermediate rewards are zero; the final response token receives the answer-verification score. The critic estimates the remaining return from each prefix, and TreeGAE propagates the terminal reward through the sampled suffixes. Its regression target is , as in Section 3.1.
Rebranching at retains the prompt and response prefix and samples a new suffix from . Thus each transition occurrence corresponds to a response-token occurrence, and multiple suffixes share their sampled prefix. OPTS selects rebranching positions using the backed-up scores; TTPO aggregates the resulting token contributions using the branch weights .
E Rollout Scaling Across Individual Benchmarks
Reward-Guided OPTS

Value-Guided OPTS

Rollout budget k
- ○ - IID baseline - - OPTS ( )
Figure E.1: Rollout scaling of OPTS across individual reasoning benchmarks. Top: reward-guided OPTS versus i.i.d. pass@k. Bottom: value-guided OPTS versus i.i.d. self-consistency. Each column reports one benchmark under matched rollout budgets at fixed .
F Search-Budget Improvement of OPTS
Theorem 2 assumes a fixed exact value function; this experiment tests the trend with a learned critic. We fix the step-400 Qwen3-1.7B OPTS-TTPO policy and critic, set , and vary with 32 trees per prompt on 902 held-out prompts. Reward- and value-guided search reuse the same root-response texts. We report the greedy-path verifier -return and selected-terminal return , each relative to . Figure F.1 gives all four quantities by benchmark. Reward-guided curves increase throughout; value-guided peaks before on AIME25 and MinervaMath, so the exact-value guarantee need not hold with an approximate critic. Micro averages nevertheless increase over all five budgets, by for reward guidance and for value guidance in . The reward-guided gain also depends on rebranching position (Appendix G).

Maximum OPTS search rounds
Figure F.1: Learned-critic search-budget results by benchmark. Rows report reward-guided , reward-guided , value-guided , and value-guided , where each difference is relative to . Columns show the six reasoning benchmarks.
G Rebranching Position: Performance-Difference versus Random and Midpoint Selection
OPTS always rebranches by the performance-difference estimate, so we test whether the position it picks matters. Using the step-400 Qwen3-1.7B OPTS-TTPO policy and critic, 902 held-out prompts, and 32 trees per prompt, we run OPTS under three rebranching rules: performance-difference selection, a uniformly random position on the same greedy path, and the fixed midpoint of that path. The two control rules keep the per-round tree selection of OPTS, so the number of rebranchings per round is matched; only the node position changes. Figure G.1 reports the greedy-terminal Avg@32 as the search budget grows. Performance-difference selection is best on five of the six benchmarks at every budget above zero, and its margin widens with ; on AIME25 random selection is marginally higher.

Maximum OPTS search rounds
Figure G.1: Rebranching position matters. Avg@32 versus the maximum number of OPTS search rounds for performance-difference, uniformly random, and fixed-midpoint rebranching on the same trees and budgets.
H MuJoCo Hyper-Parameter Grid: Length-Penalty Exponent and Search Count
We sweep and on Hopper-v4 and Humanoid-v4, the smallest- and largest-action-space tasks in the five-task suite. The remaining OPTS-TTPO settings are unchanged: 1M steps, 10 seeds per cell, 88 cells per task, and max-backup TreeGAE. Figure H.1 reports full-training and tail returns plus a cross-task summary that min-max normalizes each grid before averaging. The main-text setting (black outline) is best under both metrics and is fixed for the remaining tasks; the heatmaps show the complete grid.

Figure H.1: grid on the MuJoCo development tasks. Top: full-training mean return; bottom: tail return. Black outline: the selected configuration (0.6, 1); white dashed outline: the best cell of each panel. The right-most column averages the min-max-normalized grids of Hopper-v4 and Humanoid-v4.
I Full Atari-57 Learning Curves
Each panel corresponds to one Atari game, the horizontal axis is the number of environment interaction steps, and the vertical axis is the raw mean return for that game. Both methods are trained under the sticky-action protocol, and OPTS-TTPO uses mean-backup TreeGAE, the stochastic-environment setting, with and as in the main text. Different random seeds of the same algorithm are shown as thin curves with the same color, with smoothing used only for visualization.
Because reward scales differ substantially across Atari games, Figure I.1 is intended for within-task comparison and for inspecting where gains or regressions occur. The aggregate cross-task conclusion is therefore based on the human-normalized IQM and task-level win counts reported in the main text rather than on visually aggregating these raw-return curves.

Environment steps
Figure I.1: Full Atari-57 learning curves for PPO and OPTS-TTPO. Each panel shows one game; curves are smoothed raw mean returns for different random seeds.
J Backup-Rule Comparison on Sticky-Action Atari
We compare mean- and max-backup OPTS-TTPO at the same under the main-text sticky-action protocol: 57 games, three seeds, and ten million interaction steps per run. For each algorithm, we first average the three seed curves pointwise, then average all logged points or the final 100 points. Win/loss/tie counts compare these game-level means using an absolute tie tolerance of ; the per-game tables show the same values rounded to two decimals.
Table J.1: Backup-rule comparisons at fixed hyperparameters.
| Metric | Comparison | Wins | Losses | Ties |
|---|---|---|---|---|
| Full training | Max vs. Mean | 19 | 22 | 16 |
| Full training | Max vs. PPO | 27 | 30 | 0 |
| Full training | Mean vs. PPO | 31 | 26 | 0 |
| Tail | Max vs. Mean | 18 | 22 | 17 |
| Tail | Max vs. PPO | 34 | 22 | 1 |
| Tail | Mean vs. PPO | 34 | 22 | 1 |
Mean backup has a slight edge in game-level wins against max backup, while both beat PPO on 34 games under the tail metric. These results do not establish universal superiority of either backup rule or isolate environmental stochasticity as a causal factor.
Table J.2: Per-game seed-mean returns (1), shown to two decimals. Full: all logged points; Tail: final 100 points. Win counts use unrounded values.
| Game | Full | Tail | ||||
|---|---|---|---|---|---|---|
| PPO | Mean | Max | PPO | Mean | Max | |
| ALE_Surround-v5 | -2.83 | -2.94 | -2.94 | -1.14 | -0.91 | -0.91 |
| AlienNoFrameskip-v4 | 989.13 | 947.58 | 945.15 | 1186.07 | 1236.76 | 1372.65 |
| AmidarNoFrameskip-v4 | 173.34 | 192.09 | 191.86 | 246.73 | 301.20 | 307.77 |
| AssaultNoFrameskip-v4 | 922.34 | 967.38 | 968.90 | 1073.07 | 1278.37 | 1208.08 |
| AsterixNoFrameskip-v4 | 1553.26 | 1671.41 | 1690.02 | 2051.14 | 2223.03 | 2194.67 |
| AsteroidsNoFrameskip-v4 | 1031.89 | 1045.94 | 1042.91 | 1077.44 | 1081.97 | 1105.55 |
| AtlantisNoFrameskip-v4 | 30513.96 | 30637.19 | 28223.74 | 40791.67 | 32212.33 | 27254.17 |
| BankHeistNoFrameskip-v4 | 310.09 | 288.34 | 221.75 | 430.11 | 437.08 | 406.26 |
| BattleZoneNoFrameskip-v4 | 8426.72 | 9203.13 | 9694.18 | 10452.50 | 10219.44 | 11091.39 |
| BeamRiderNoFrameskip-v4 | 487.94 | 451.52 | 451.52 | 704.01 | 663.40 | 663.40 |
| BerzerkNoFrameskip-v4 | 688.99 | 612.03 | 618.03 | 836.57 | 714.46 | 735.34 |
| BowlingNoFrameskip-v4 | 14.40 | 12.27 | 12.39 | 18.25 | 16.85 | 17.46 |
| BoxingNoFrameskip-v4 | 33.90 | 35.09 | 35.09 | 51.22 | 54.24 | 54.24 |
| BreakoutNoFrameskip-v4 | 55.06 | 58.26 | 54.77 | 120.19 | 125.61 | 115.80 |
| CentipedeNoFrameskip-v4 | 2818.38 | 2761.23 | 2806.74 | 3237.38 | 3071.08 | 3212.12 |
| ChopperCommandNoFrameskip-v4 | 2229.34 | 2249.77 | 2135.29 | 3819.40 | 3684.47 | 3281.21 |
| CrazyClimberNoFrameskip-v4 | 21412.02 | 20278.52 | 20278.52 | 23151.00 | 23777.56 | 23777.56 |
| DefenderNoFrameskip-v4 | 8376.84 | 8961.33 | 8783.60 | 10542.53 | 12488.08 | 12195.61 |
| DemonAttackNoFrameskip-v4 | 1276.39 | 1302.78 | 1314.93 | 2044.33 | 1925.20 | 2188.04 |
| DoubleDunkNoFrameskip-v4 | -0.81 | -0.70 | -0.70 | -0.05 | -0.06 | -0.06 |
| EnduroNoFrameskip-v4 | 26.72 | 22.69 | 22.69 | 40.72 | 33.14 | 33.14 |
| FishingDerbyNoFrameskip-v4 | -16.08 | -12.51 | -12.51 | 5.97 | 14.45 | 14.45 |
| FreewayNoFrameskip-v4 | 3.52 | 3.24 | 3.24 | 5.96 | 5.88 | 5.88 |
| FrostbiteNoFrameskip-v4 | 231.70 | 231.77 | 237.73 | 250.58 | 249.40 | 255.50 |
| GopherNoFrameskip-v4 | 1122.37 | 1075.35 | 904.68 | 1912.06 | 1894.34 | 1332.87 |
| GravitarNoFrameskip-v4 | 397.21 | 376.87 | 336.78 | 642.40 | 617.09 | 518.12 |
| HeroNoFrameskip-v4 | 8702.10 | 8840.72 | 9149.41 | 11663.23 | 12233.24 | 12438.86 |
| IceHockeyNoFrameskip-v4 | -1.54 | -1.60 | -1.58 | -1.38 | -1.28 | -1.19 |
| JamesbondNoFrameskip-v4 | 223.91 | 229.30 | 234.10 | 248.14 | 267.07 | 263.86 |
Table J.3: Per-game seed-mean returns (2), shown to two decimals. Full: all logged points; Tail: final 100 points. Win counts use unrounded values.
| Game | PPO | Full Mean | Max | PPO | Tail Mean | Max |
|---|---|---|---|---|---|---|
| KangarooNoFrameskip-v4 | 1229.65 | 1612.89 | 1587.39 | 1802.94 | 2458.78 | 2444.39 |
| KrullNoFrameskip-v4 | 3762.75 | 3802.40 | 3776.63 | 4173.87 | 4482.65 | 4402.41 |
| KungFuMasterNoFrameskip-v4 | 6102.91 | 5726.26 | 5726.26 | 5609.22 | 6604.17 | 6604.17 |
| MontezumaRevengeNoFrameskip-v4 | 0.21 | 0.06 | 0.48 | 0.00 | 0.17 | 0.00 |
| MsPacmanNoFrameskip-v4 | 1185.86 | 1131.68 | 1184.35 | 1471.88 | 1464.83 | 1551.24 |
| NameThisGameNoFrameskip-v4 | 1160.37 | 1182.86 | 1182.86 | 1337.90 | 1352.00 | 1352.00 |
| PhoenixNoFrameskip-v4 | 2744.98 | 2826.81 | 2768.06 | 3813.27 | 3939.31 | 3836.27 |
| PitfallNoFrameskip-v4 | -3.08 | -3.89 | -4.91 | 0.00 | 0.00 | -0.48 |
| PongNoFrameskip-v4 | 1.54 | 0.58 | 0.58 | 4.61 | 3.50 | 3.50 |
| PrivateEyeNoFrameskip-v4 | 2.80 | 6.12 | 6.11 | 4.67 | 12.20 | 12.20 |
| QbertNoFrameskip-v4 | 4894.80 | 5279.52 | 4903.30 | 6714.89 | 7282.50 | 7130.39 |
| RiverraidNoFrameskip-v4 | 4081.11 | 3991.97 | 4060.80 | 4840.25 | 5520.78 | 4899.51 |
| RoadRunnerNoFrameskip-v4 | 17287.81 | 8471.32 | 20939.21 | 28086.25 | 9731.23 | 33341.33 |
| RobotankNoFrameskip-v4 | 2.23 | 2.02 | 2.02 | 3.56 | 2.88 | 2.88 |
| SeaquestNoFrameskip-v4 | 498.59 | 526.78 | 364.72 | 582.07 | 709.10 | 399.03 |
| SkiingNoFrameskip-v4 | -6673.30 | -4877.35 | -4877.35 | -6523.64 | -4600.00 | -4600.00 |
| SolarisNoFrameskip-v4 | 304.76 | 308.64 | 308.64 | 293.27 | 295.07 | 295.07 |
| SpaceInvadersNoFrameskip-v4 | 442.97 | 430.26 | 424.46 | 606.18 | 568.85 | 496.05 |
| StarGunnerNoFrameskip-v4 | 7459.37 | 7351.37 | 7403.09 | 11215.28 | 11361.83 | 11826.67 |
| TennisNoFrameskip-v4 | -1.17 | -1.73 | -1.73 | -0.14 | -0.15 | -0.15 |
| TimePilotNoFrameskip-v4 | 2206.19 | 1999.81 | 2059.30 | 2904.39 | 2557.28 | 2662.74 |
| TutankhamNoFrameskip-v4 | 46.56 | 48.76 | 44.14 | 37.73 | 40.55 | 48.30 |
| UpNDownNoFrameskip-v4 | 6777.72 | 7977.87 | 6655.13 | 9677.93 | 11131.87 | 8754.43 |
| VentureNoFrameskip-v4 | 1.71 | 3.62 | 3.62 | 0.00 | 16.50 | 16.50 |
| VideoPinballNoFrameskip-v4 | 9998.85 | 9542.93 | 9625.38 | 17789.33 | 15498.07 | 15813.72 |
| WizardOfWorNoFrameskip-v4 | 1602.55 | 1657.13 | 1644.41 | 2541.53 | 2613.94 | 2636.61 |
| YarsRevengeNoFrameskip-v4 | 7644.99 | 10684.72 | 8326.65 | 8370.44 | 15992.55 | 11214.26 |
| ZaxxonNoFrameskip-v4 | 1087.67 | 1727.66 | 1744.45 | 2367.19 | 3139.61 | 3122.94 |
K Per-Checkpoint LLM Evaluation Curves
The four Qwen3-1.7B methods are evaluated every 20 steps from 20 to 400 using the final-checkpoint protocol: 32 responses per prompt on the 902-prompt set, scored by the same verifier. OPTS-TTPO uses the main-text configuration with max-backup TreeGAE and . It matches critic-free baselines on avg@32 for most of training and pulls ahead in the second half, especially on AIME24–26; its pass@32 advantage appears early and persists except on AIME24.
---- PPO ---- DAPO ...... REINFORCE++ —— OPTS-TTPO

Figure K.1: Qwen3-1.7B per-checkpoint evaluation across six reasoning benchmarks. Each column shows one benchmark, with avg@32 above pass@32; all 20 checkpoints of every method are scored with the same verifier. Curves show a three-point moving average that retains the step-20 and step-400 endpoints.
L Wall-Clock Composition of OPTS-TTPO
Table L.1 reports the internal runtime composition recorded in the Qwen3-1.7B OPTS-TTPO training logs for Section 4.4. Rollout generation accounts for 43.7% of each step, critic forwards and updates for 34.0%, and actor updates for 16.5%. The explicitly timed path refresh, branch selection, and TreeGAE backup account for 0.7%; beyond these operations, OPTS also makes the rollout rounds serial and performs critic forwards after each round. All timings are per training step, summing repeated operations over all rollout rounds.
Table L.1: Wall-clock composition of an OPTS-TTPO step (Qwen3-1.7B, , eight H200 GPUs).
| Stage of one training step | Seconds | Share |
|---|---|---|
| Rollout generation (vLLM, all rounds) | 348.1 | 43.7% |
| Critic update | 214.4 | 26.9% |
| Actor update | 131.4 | 16.5% |
| Critic value forwards (all rounds) | 56.5 | 7.1% |
| Old log-probabilities | 39.2 | 4.9% |
| Search module: path refresh + selection | 3.2 | 0.4% |
| Search module: TreeGAE backup | 2.7 | 0.3% |
| Reward, final tree processing, other | 0.5 | 0.1% |
| Total | 796.0 | 100% |