TRACE: A Unified Rollout Budget Allocation Framework for Efficient Agentic Reinforcement Learning

Heming Zou, Qi Wang, Yun Qu, Yuhang Jiang, Lizhou Cai, Yixiu Mao, Ru Peng, Xin Xu, Weijie Liu, Kai Yang, Saiyong Yang, Xiangyang JiarXiv 2026

TL;DR

Reinforcement learning with verifiable rewards (RLVR) is a powerful paradigm for training large language models, but it is severely bottlenecked by the high computational cost of generating long, multi-turn rollouts. TRACE (Tree Rollout Allocation for Contrastive Exploration) optimizes this process by dynamically allocating a fixed sampling budget to the prompt roots and intermediate turns most likely to produce a mix of successful and failed outcomes. This adaptive, tree-structured sampling maximizes the learning signal, boosting accuracy across agentic benchmarks by up to 2.8 points without increasing the total sampling cost.

What Problem Does This Paper Address?

RLVR uses automated, verifiable feedback (like code execution outputs or exact string matches) to shape reasoning and tool-use behaviors in LLMs. However, most scalable training pipelines rely strictly on outcome-only rewards—a single binary success/failure label delivered at the very end of a long trajectory. This introduces two major inefficiencies:

  1. Prompt-level stagnation: Overly easy or excessively difficult prompts yield low-variance feedback (either all successes or all failures), offering no contrastive signal to help the model learn.
  2. Trajectory-level sparsity: In multi-turn agentic workflows (e.g., ReAct-style thought-action-observation loops), a single terminal reward fails to pinpoint exactly which intermediate decision led to the final outcome.

While previous methods attempted to filter prompts or allocate more rollouts to harder tasks, they treated rollouts as flat, atomic trajectories. They completely ignored turn-level variations within the same rollout, wasting valuable compute on dead-end paths or already-perfect trajectories.

Figure 1: TRACE redirects a fixed rollout budget toward contrast-rich roots and prefixes, converting scalable outcome rewards into denser mixed-reward contrast and implicit stepwise preference pairs than uniform allocation.

Methods

TRACE reframes flat rollout collection into an adaptive, tree-structured allocation problem. It treats both prompt roots and intermediate turns as "anchors" where a fixed sampling budget can be strategically deployed.

  • Adaptive Tree Rollouts: Instead of sampling independent flat paths, TRACE builds a tree by branching out from promising intermediate prefix nodes.
  • Shared Value Predictor: A lightweight critic model ($\tilde{V}_\psi$, implemented as a Qwen3-0.6B model) is trained online to estimate the conditional success probability of any given prefix history.
  • Two-Stage Allocation Solver:
  • Global Root Allocation: Evaluates a large candidate pool of prompts and uses dynamic programming to decide which prompts to skip and how many bare rollouts to assign to active ones.
  • Local Prefix Expansion: Once initial rollouts are generated, TRACE identifies intermediate turns where generating alternative ("counterfactual") continuations is highly likely to flip the observed reward outcome.
Local Prefix Expansion (Stage 2)

By focusing budget on anchors with intermediate success probabilities, TRACE maximizes mixed-reward contrast (generating both 0s and 1s under the same context), providing dense preference pairs for tree-aware policy optimizers like TreeRPO or Tree-GRPO.

Datasets

The authors evaluated TRACE across three distinct multi-turn agentic tasks:

  • Mathematical Reasoning: Trained on the DeepScaler corpus (40k competition-level problems with a Python interpreter). Evaluated in-distribution on AIME24, AMC23, MATH500, MinervaMath, OlympiadBench, and out-of-distribution on MMLU-Pro, ARC-c, GPQA-diamond.
  • Multi-Hop QA: Trained on HotpotQA using a local E5 retrieval server over Wikipedia. Evaluated on HotpotQA validation, 2WikiMultiHopQA, MuSiQue, and Bamboogle.
  • Function Calling: Evaluated on the multi-turn split of the Berkeley Function Calling Leaderboard (BFCL v4), covering base, long-context, missing-function, and missing-parameter scenarios.

Key Insights and Ideas

  • Unifying Prompt Selection and Branching: TRACE elegantly demonstrates that prompt filtering, rollout-count allocation, and prefix branching are mathematically identical: they are all budget allocation decisions over tree nodes aimed at maximizing Bernoulli variance $V_t^\pi(1-V_t^\pi)$.
  • Martingale View of Contrast: The paper mathematically proves that the remaining contrast potential under a prefix equals its conditional success variance. Branching at these high-variance points forces the model to discover exactly where a trajectory went right or wrong.
  • System-Aware Factorization: Instead of a globally synchronized tree search that causes worker idle time (stragglers), TRACE executes prefix expansion locally per prompt. This allows parallel workers to immediately process continuations without waiting for the entire batch to finish the first stage.
Figure 2: Contrastive-allocation diagnostics. Using rollout results collected over several steps with Qwen3-8B under the Multi-Hop QA (HotpotQA) tree-sampling setting, panel (a) shows that many prompt-root and prefix anchors have empirical success rate ˆp near 0 or 1, where outcome contrast is scarce. Panel (b) measures each anchor’s pair contrast as ˆph(1 −ˆph); the x-axis is the fraction of rollout budget assigned to the top-ranked anchors, and the y-axis is the fraction of total pair contrast ∑h ˆph(1 −ˆph) covered by those anchors, compared with uniform allocation. Panel (c) evaluates the same prefix-conditioned predictor at different observed prefix depths, showing lower group-success MSE at deeper depths and more reliable prefix-conditioned allocation.

Key Results

  • Accuracy Boost: TRACE consistently outperformed standard GRPO, Prompt Curriculum Learning (PCL), and random tree allocation (TreePO). For instance, it improved Qwen3-14B Multi-Hop QA average accuracy by 2.8 points under an identical sampling budget.
  • Higher Effective Ratio: TRACE dramatically increased the proportion of training batches containing useful contrastive feedback. On the DeepScaler math benchmark, it raised the average effective ratio from 26.8% (GRPO) to 60.6% (TRACE) for Qwen3-8B.
  • Negligible Overhead: Profiling showed that policy updates and LLM rollouts dominate training time, while TRACE's predictor scoring and updates accounted for less than 3.2% of total wall-clock time.
  • Cross-Architecture Portability: TRACE's benefits successfully transferred to other model families, improving Llama-3.2-3B-Instruct by 3.1 accuracy points over random tree allocation on Multi-Hop QA.

Limitations and Future Work

  • Dependency on Verifiable Rewards: TRACE relies heavily on binary, automatically checkable outcomes. Applying it to open-ended tasks without clear terminal verification (like creative writing or general chat) remains an open challenge.
  • Non-Stationary Predictor Targets: Because the policy model constantly improves, the value predictor faces a non-stationary target distribution (the stability-plasticity dilemma). The authors note that integrating advanced continual learning or parameter-efficient fine-tuning (PEFT) techniques could further stabilize predictor training.

Summary updated

BibTeX
@misc{zou2026trace,
  author = {Heming Zou and Qi Wang and Yun Qu and Yuhang Jiang and Lizhou Cai and Yixiu Mao and Ru Peng and Xin Xu and Weijie Liu and Kai Yang and Saiyong Yang and Xiangyang Ji},
  title = {{TRACE: A Unified Rollout Budget Allocation Framework for Efficient Agentic Reinforcement Learning}},
  year = {2026},
  eprint = {2606.11119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.11119},
}
Figure