Skip to content
ImagineWorld

PS-PPO: Prefix-Sampling PPO for Critic-Free RLHF

node_idnode-paper_arxiv-2606.29758_ps-ppo-prefix-sampling-ppo-for-critic-free-rlhf
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2606.29758
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the value-estimation field, the work builds prefix-sampling PPO for critic-free RLHF, estimating value from sampled continuations of prefixes instead of a learned critic network — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titlePS-PPO: Prefix-Sampling PPO for Critic-Free RLHF
paper_authorsDoo Hwan Hwang, Kee-Eung Kim
arxiv_id2606.29758
arxiv_urlhttps://arxiv.org/abs/2606.29758
arxiv_categories{"primary":"cs.LG","secondary":["cs.AI"]}
arxiv_v2
arxiv_submitted_at2026-06-29
arxiv_updated_at2026-07-27
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:10:36Z
local graph

PS-PPO: Prefix-Sampling PPO for Critic-Free RLHF

Section titled “PS-PPO: Prefix-Sampling PPO for Critic-Free RLHF”

Authors: Doo Hwan Hwang, Kee-Eung Kim

arxiv: 2606.29758

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


Reinforcement Learning from Human Feedback (RLHF) for Large Language Models increasingly relies on critic-free methods as a practical alternative to actor–critic training. Despite their simplicity, existing critic-free approaches propagate a trajectory-level learning signal uniformly across all tokens in a trajectory. This requires full-trajectory policy updates for every rollout, leading to substantial optimization cost for long reasoning traces, even though intermediate prefixes often contain enough information to largely determine the final outcome. We propose Prefix-Sampling Proximal Policy Optimization (PS-PPO), a compute-efficient critic-free method for RLHF that exploits this temporal redundancy. PS-PPO introduces a prompt-conditioned cutoff distribution and samples a cutoff timestep for each trajectory. During the update pass, PS-PPO backpropagates only through the sampled prefix of each trajectory and applies an importance-weighting correction so that the resulting truncated gradient estimator remains unbiased with respect to the full-trajectory objective. Experiments on mathematical reasoning and RLHF benchmarks show that PS-PPO achieves large reductions in training compute and peak GPU memory, while maintaining accuracy comparable to strong critic-free baselines.

Machine Learning, ICML

As Large Language Models (LLMs) are increasingly deployed for complex reasoning and decision-making tasks, the quality of a generated response is determined not merely by linguistic fluency, but by its alignment with human preferences and task objectives (Radford et al., 2019; Brown et al., 2020; Anil et al., 2023; Wang et al., 2024; Jaech et al., 2024). Since such objectives are difficult to encode directly in a token-level likelihood objective, Reinforcement Learning from Human Feedback (RLHF) has become a standard method for aligning model behavior with desired outcomes (Ouyang et al., 2022; Wang et al., 2024). In practice, RLHF typically assigns a single scalar reward after a full completion is generated. This delayed feedback provides little information about which parts of a long trajectory were responsible for success or failure, making temporal credit assignment a central challenge (Arjona-Medina et al., 2019; Harutyunyan et al., 2019; Li et al., 2025).

Figure 1 : Prefix-conditioned success rate on AIME 2024 and MATH-500 versus prefix progress, where prefix progress denotes the percentage of the full completion length. We estimate the success rate using Qwen2.5-Math-7B with 32 suffix rollouts per prefix. The success rate often stabilizes well before the end of the full completion.

A classic remedy is to introduce a critic network to estimate token-level value functions and provide the value estimates to support policy-gradient optimization, such as Proximal Policy Optimization (PPO) (Schulman et al., 2017). However, training a critic at LLM scale incurs substantial compute and memory overhead and is often a major source of optimization instability (Shao et al., 2024; Hao et al., 2025; Kazemnejad et al., 2025). These limitations have motivated critic-free alternatives such as GRPO (Shao et al., 2024) and RLOO (Ahmadian et al., 2024), which avoid explicit value learning by estimating advantages from multiple trajectories sampled per prompt. However, they commonly broadcast the reward signal uniformly across all timesteps (Lambert, 2024), requiring full-trajectory updates that lead to substantial compute cost for long reasoning traces.

Our motivation for addressing this full-trajectory bottleneck comes from the observation that, in many reasoning tasks, intermediate prefixes already contain substantial information about the final outcome. For example, in step-by-step mathematical reasoning, early decisions such as the choice of decomposition or intermediate derivation often strongly constrain whether the final answer can be correct. Later tokens may still be useful, especially when a model revises or corrects its earlier reasoning. However, our late-recovery analysis in Appendix A suggests that such cases are not the dominant pattern in the reasoning traces we study. We empirically support this observation by analyzing success rates conditioned on intermediate prefixes, as shown in Figure 1. Across tasks, prefix-conditioned success rates often saturate before the end of the completion, indicating that intermediate prefixes can be highly predictive of the final outcome. Building on this observation, we propose Prefix-Sampling Proximal Policy Optimization (PS-PPO), a compute-efficient critic-free method. PS-PPO defines a prompt-dependent cutoff distribution of timesteps from a prefix uncertainty signal, retaining only the prefix up to the sampled cutoff during the policy gradient update. To correct the randomness introduced by truncation, we derive a reweighted estimator whose expectation over cutoff sampling recovers the corresponding full critic-free broadcast update.

Our main contributions are as follows:

  • •

    We propose PS-PPO, a compute-efficient critic-free method that samples a prompt-dependent cutoff and computationally truncates forward and backward computation beyond the cutoff.

  • •

    We derive an inclusion-probability reweighted estimator that corrects for stochastic truncation and recovers the full broadcast update in expectation over cutoff sampling, without additional rollouts or auxiliary models.

  • •

    We demonstrate that PS-PPO reduces training-time compute and peak GPU memory while maintaining accuracy relative to strong critic-free baselines on mathematical reasoning and RLHF benchmarks.

Post-training of pretrained LLMs is typically conducted via Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL) (Grattafiori et al., 2024; Trung et al., 2024). While SFT relies on imitating static datasets provided by humans, RL offers a distinct advantage by optimizing for reward maximization. This approach reduces the dependency on extensive ground-truth demonstrations and encourages the model to explore diverse solution paths beyond the training data distribution (Shao et al., 2024; Jaech et al., 2024). This capability has established a new paradigm for reasoning models, enabling them to solve complex problems through broad exploration.

2.2 Critic-Free Policy Optimization in LLMs

Section titled “2.2 Critic-Free Policy Optimization in LLMs”

Standard RLHF pipelines commonly employ actor–critic algorithms to optimize a policy with respect to scalar rewards produced by a reward model. While effective, scaling actor–critic training to large language models often requires substantial memory and compute, and the resulting updates can be sensitive to value estimation accuracy, potentially affecting training stability (Gao et al., 2024).

Motivated by these challenges, critic-free alternatives such as RLOO (Ahmadian et al., 2024), GRPO (Shao et al., 2024), Dr.GRPO (Liu et al., 2025), and DAPO (Yu et al., 2025) have been proposed. In these methods, the parameterized value network is removed and advantages are computed from multiple samples generated for the same prompt. They broadcast a single trajectory-level learning signal across all tokens, which requires backpropagating through the entire completion. This makes the update increasingly expensive as completions grow longer, motivating token-selective policy optimization.

To mitigate the inefficiency of full-sequence updates, recent work has explored token-selective policy optimization by applying learning signals only to a selected subset of tokens. Wang et al. (2025) identify a small fraction of high-entropy tokens in chain-of-thought trajectories as decision points and restrict policy updates to those positions. S-GRPO (Lee and Tong, 2025) keeps a heuristically chosen fixed prefix and subsamples the remaining suffix tokens using Bernoulli sampling. PPPO (Sun et al., 2025) updates only prefix tokens by progressively increasing the prefix length according to a predefined schedule during training, and evaluates each prefix by sampling multiple continuations conditioned on that prefix and aggregating their rewards. These methods are commonly implemented via gradient masking, which can yield limited computational savings when forward and backward passes are still executed over the full sequence. In contrast, PS-PPO avoids fixed or heuristic token-selection rules by deriving a prompt-dependent cutoff distribution in a principled way. It then samples a cutoff position from this distribution and backpropagates only through the sampled prefix, directly reducing backpropagation cost.

Policy optimization (Ouyang et al., 2022) is a primary framework for the post-training of language model policies. The objective is to generate a completion oo that maximizes the expected reward R(x,o)R(x,o) given a prompt xx from a query distribution p_Qp\_{Q}. Formally, let o=[o_1,…,o_T]o=[o\_{1},\ldots,o\_{T}] represent a sequence of length TT, where each token o_to\_{t} belongs to the vocabulary V\mathcal{V}. We define the prefix state at timestep tt as s_t=[x,o_1,…,o_t−1]s\_{t}=[x,o\_{1},\ldots,o\_{t-1}] and the suffix tokens after timestep tt as o_>t=[o_t+1,…,o_T]o\_{>t}=[o\_{t+1},\ldots,o\_{T}].

To optimize the policy π_θ\pi\_{\theta}, we adopt the standard PPO training objective:

J_PPO(θ)=E_x∼p_Q,o∼π_θ_old(⋅∣x)\displaystyle\mathcal{J}\_{\text{PPO}}(\theta)=\mathbb{E}\_{\begin{subarray}{c}x\sim p\_{Q},o\sim\pi\_{\theta\_{\mathrm{old}}}(\cdot\mid x)\end{subarray}}
------------
[∑_t=1Tmin⁡(ρ_t(θ) A^_t, clip(ρ_t(θ),1−ϵ,1+ϵ)A^_t)]\displaystyle\left[\sum\_{t=1}^{T}\min\left(\rho\_{t}(\theta)\ \hat{A}\_{t},\,\mathrm{clip}(\rho\_{t}(\theta),1-\epsilon,1+\epsilon)\hat{A}\_{t}\right)\right]

where ρ_t(θ)=π_θ(o_t∣s_t)π_θ_old(o_t∣s_t)\rho\_{t}(\theta)=\frac{\pi\_{\theta}(o\_{t}\mid s\_{t})}{\pi\_{\theta\_{\mathrm{old}}}(o\_{t}\mid s\_{t})} is the per-timestep importance weight, A^_t\hat{A}\_{t} is the estimated advantage at timestep tt, and ϵ\epsilon is the clipping range. The advantage A_tπA\_{t}^{\pi} quantifies the relative benefit of selecting token o_to\_{t} compared to the expected reward at the current state s_ts\_{t}. It is formally defined as:

A_tπ=Q_tπ−V_tπ,A\_{t}^{\pi}=Q\_{t}^{\pi}-V\_{t}^{\pi},

where Q_tπ:=E_π[R∣s_t,o_t]Q\_{t}^{\pi}:=\mathbb{E}\_{\pi}[R\mid s\_{t},o\_{t}] is the action-value function and V_tπ:=E_π[R∣s_t]V\_{t}^{\pi}:=\mathbb{E}\_{\pi}[R\mid s\_{t}] is the state-value function. In the context of RLHF, rather than using per-token value estimates, it is common to use a broadcast advantage estimator:

A^_t  =  R(x,o)−b(x),\hat{A}\_{t}\;=\;R(x,o)-b(x),

which is shared across all timesteps within a completion (Shao et al., 2024). Here, the baseline b(x)b(x) is typically estimated as the mean reward over multiple completions sampled for the same prompt xx.

While the broadcast advantage estimator assigns the same scalar weight A^_t\hat{A}\_{t} to every token in the completion oo, this does not imply that all timesteps are equally informative about the final outcome. As illustrated in Figure 1, many trajectories become highly predictive before the completion ends, suggesting that full-sequence updates in Eq. (1) can spend substantial computation and memory on suffix tokens with redundant marginal learning signal. Importantly, later tokens may still matter in self-correcting traces; PS-PPO therefore uses stochastic truncation rather than deterministically discarding all suffix tokens.

To enhance computational efficiency, we propose a completion truncation method based on prefix sampling. However, applying a fixed truncation length across all completions introduces significant bias; a fixed timestep tt does not ensure that the advantage of the discarded suffix o_>to\_{>t} is truly near zero for every prompt-completion pair.

Cutting off completions and performing gradient updates only for truncated prefixes introduce bias. In this section, we introduce a reweighting scheme that ensures the expected update for prefixes matches that of a full-sequence update.

We begin by assuming that the minimum prefix length HH required for policy optimization is a random variable governed by a survival function, which is in turn determined by a non-increasing sequence of cutoff probabilities.

1≥ξ_1≥ξ_2≥⋯≥ξ_T>0.1\geq\xi\_{1}\geq\xi\_{2}\geq\cdots\geq\xi\_{T}>0.

The quantity ξ_t\xi\_{t} denotes the probability that the tt-th token o_to\_{t} is retained during training, or the probability that the effective truncation point HH is at least tt (i.e., Pr⁡ ⁣(H≥t ∣ x)=ξ_t\Pr\!\big(H\geq t\,\big|\,x\big)=\xi\_{t}). Under this framework, we backpropagate gradients only through the prefix tokens o_to\_{t} where t≤Ht\leq H, E_x,o∼π_θ,H[∑_t=1HA^_t∇_θlog⁡π_θ(o_t∣s_t)].\mathbb{E}\_{x,o\sim\pi\_{\theta},H}[\sum\_{t=1}^{H}\hat{A}\_{t}\nabla\_{\theta}\log\pi\_{\theta}(o\_{t}|s\_{t})]. However, simply truncating the summation at HH results in a biased estimator of the full update. To construct an unbiased estimator, we must reweight the gradients. First, let us define the per-timestep policy gradient for completion o(k)o^{(k)} at timestep tt over the group KK assuming the use of the GRPO method:

g_t(k)(θ)  ≔  A^_t(k) ∇_θlog⁡π_θ ⁣(o_t(k)∣s_t(k)).g\_{t}^{(k)}(\theta)\;\coloneqq\;\hat{A}\_{t}^{(k)}\,\nabla\_{\theta}\log\pi\_{\theta}\!\big(o\_{t}^{(k)}\mid s\_{t}^{(k)}\big).

The full update direction for prompt xx is then

G(θ)  ≔  1K∑_k=1K∑_t=1Tg_t(k)(θ).G(\theta)\;\coloneqq\;\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{T}g\_{t}^{(k)}(\theta).(2)

Given sampled cutoffs {H(k)}_k=1K\{H^{(k)}\}\_{k=1}^{K}, we form the truncated yet unbiased estimator via reweighting the gradients,

G^(θ)  ≔  1K∑_k=1K∑_t=1H(k)1ξ_t g_t(k)(θ).\widehat{G}(\theta)\;\coloneqq\;\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{H^{(k)}}\frac{1}{\xi\_{t}}\,g\_{t}^{(k)}(\theta).(3)

However, this reweighting introduces extra variance (see Appendix B for the derivation).

Our goal is to choose a cutoff distribution ξ_1:T\xi\_{1:T} that minimizes the additional update variance induced by the importance sampling weights, subject to a gradient update compute budget BB. The optimization problem is formulated as:

min⁡_ξ_1:TE[tr ⁣(Cov_H(G^(θ)∣x))]\displaystyle\min\_{\xi\_{1:T}}\mathbb{E}\left[\mathrm{tr}\!\Big(\mathrm{Cov}\_{H}\big(\widehat{G}(\theta)\mid x\big)\Big)\right]
------------
s.t.∑_t=1Tt (ξ_t−ξ_t+1)=B,ξ_T+1≔0,\displaystyle\text{s.t.}\quad\sum\_{t=1}^{T}t\,\bigl(\xi\_{t}-\xi\_{t+1}\bigr)=B,\quad\xi\_{T+1}\coloneqq 0,
------------
1≥ξ_1≥⋯≥ξ_T>0.\displaystyle 1\geq\xi\_{1}\geq\cdots\geq\xi\_{T}>0.

The budget BB constrains the expected length of prefixes for which we perform gradient updates, ∑_t=1Tt (ξ_t−ξ_t+1)\sum\_{t=1}^{T}t\,\bigl(\xi\_{t}-\xi\_{t+1}\bigr), where ξ_T+1≔0\xi\_{T+1}\coloneqq 0 for notational simplicity.

For tractability, we use a timestep-wise trace surrogate of the exact cutoff-induced variance. The exact expansion contains cross-timestep covariance terms due to autoregressive dependence, but including them would couple the cutoff probabilities across timesteps and obscure a timestep-wise allocation of the update budget. We therefore retain the diagonal trace terms as a tractable surrogate, yielding the following approximation (derivation in Appendix C):

E ⁣[tr ⁣(Cov_H(G^(θ)∣x))]  ≈  1K∑_t=1Tw_tθ(x)(1ξ_t−1).\mathbb{E}\!\left[\mathrm{tr}\!\Big(\mathrm{Cov}\_{H}\big(\widehat{G}(\theta)\mid x\big)\Big)\right]\;\approx\;\frac{1}{K}\sum\_{t=1}^{T}w\_{t}^{\theta}(x)\Big(\frac{1}{\xi\_{t}}-1\Big).(4)

where wθ_t(x)w^{\theta}\_{t}(x) is defined by

wθ_t(x)\displaystyle w^{\theta}\_{t}(x)$\displaystyle\coloneqq\mathbb{E}!\left[\left|g_{t}(\theta)\right|^{2},\middle,x\right]$
------------
$\displaystyle=\mathbb{E}!\left[\hat{A}_{t}^{2},\big|\nabla_{\theta}\log\pi_{\theta}(o_{t}\mid s_{t})\big|^{2},\middle,x\right].$

Minimizing (4) with respect to ξ_1:T\xi\_{1:T} is equivalent to solving

min⁡_ξ_1:T    ∑_t=1Twθ_t(x)ξ_t.\min\_{\xi\_{1:T}}\;\;\sum\_{t=1}^{T}\frac{w^{\theta}\_{t}(x)}{\xi\_{t}}.(5)

To compute Eq. (5), we must estimate the weights wθ_t(x)w^{\theta}\_{t}(x). However, wθ_t(x)w^{\theta}\_{t}(x) involves the score-norm factor ∥∇_θlog⁡π_θ(o_t∣s_t)∥2\|\nabla\_{\theta}\log\pi\_{\theta}(o\_{t}\mid s\_{t})\|^{2}, and computing it exactly would require full backward passes, offsetting the compute savings from truncation. We therefore construct a forward-only proxy from the model’s output head.

Forward-only proxy of wθ_t(x)w^{\theta}\_{t}(x).

Section titled “Forward-only proxy of wθ_t(x)w^{\theta}\_{t}(x)wθ_t(x).”

The score gradient ∇_θlog⁡π_θ(o_t∣s_t)\nabla\_{\theta}\log\pi\_{\theta}(o\_{t}\mid s\_{t}) requires a full backpropagation pass through the entire network. However, for computing the cutoff probabilities, we do not need the exact score norm at every timestep. Rather, we need a tractable signal that captures the relative update importance of different timesteps. We therefore use the gradient at the output head, ∇_θ_outlog⁡π_θ(o_t∣s_t)\nabla\_{\theta\_{\mathrm{out}}}\log\pi\_{\theta}(o\_{t}\mid s\_{t}), as a forward-computable proxy for the score-norm factor in w_tθ(x)w\_{t}^{\theta}(x):

∥∇_θlog⁡π_θ(o_t∣s_t)∥2≈∥∇_θ_outlog⁡π_θ(o_t∣s_t)∥2.\|\nabla\_{\theta}\log\pi\_{\theta}(o\_{t}\mid s\_{t})\|^{2}\approx\|\nabla\_{\theta\_{\mathrm{out}}}\log\pi\_{\theta}(o\_{t}\mid s\_{t})\|^{2}.

This approximation is motivated by our empirical finding that the output-head score norm is strongly correlated with the full-parameter score norm across timesteps; the correlation analysis is reported in Appendix H.

For a standard softmax head in the last layer, the norm ∥∇_θ_outlog⁡π_θ(o_t∣s_t)∥2\|\nabla\_{\theta\_{\mathrm{out}}}\log\pi\_{\theta}(o\_{t}\mid s\_{t})\|^{2} has the following closed-form expression using only forward-pass activations:

γ_t(s_t,o_t)  ≔  ∥h_t∥_22(1−2π_θ_old(o_t∣s_t)+∥π_θ_old(⋅∣s_t)∥_22).\gamma\_{t}(s\_{t},o\_{t})\;\coloneqq\;\|h\_{t}\|\_{2}^{2}\Bigl(1-2\pi\_{\theta\_{\mathrm{old}}}(o\_{t}\mid s\_{t})+\|\pi\_{\theta\_{\mathrm{old}}}(\cdot\mid s\_{t})\|\_{2}^{2}\Bigr).(6)

See Appendix D for the derivation. We then define the proxy-based weights as

$$\tilde{w}_{t}(x);\coloneqq;\mathbb{E}!\left[\hat{A}_{t}^{2},\gamma_{t}(s_{t},o_{t}),\middle,x\right].$$

Both approximations are used only to compute the cutoff probabilities ξ_1:T\xi\_{1:T}. They do not affect the unbiasedness of the truncated estimator itself.

In critic-free methods, the advantage is broadcast within a completion, so A^_t=A^=R−b(x)\hat{A}\_{t}=\hat{A}=R-b(x) for all tt in that completion. Using the law of total expectation over the prefix state s_ts\_{t} and a mean-field approximation, we obtain

$\displaystyle\tilde{w}_{t}(x)!\coloneqq\mathbb{E}!\left[(R-b(x))^{2},\gamma_{t}(s_{t},o_{t}),\middle,x\right]$
------------
$\displaystyle\approx!\mathbb{E}_{s_{t}\mid x}!\left[\mathbb{E}!\left[(R-b(x))^{2},\middle,s_{t}\right]\right]!\cdot!\underbrace{\mathbb{E}_{s_{t}

To estimate E_s_t∣x[(R−b(x))2∣s_t]E\_{s\_{t}|x}[(R-b(x))^{2}|s\_{t}], we consider the upper bound of reward variance Var(R∣s_t)\mathrm{Var}(R\mid s\_{t}). This is because the baseline b(x)b(x) is typically close to the expected reward E[R∣s_t]\mathbb{E}[R|s\_{t}], resulting in near-zero bias. For binary rewards, we use the following reward-uncertainty proxy:

u_t(x):=12−12∥p(x)πˉ_G(⋅∣t,x)−(1−p(x))πˉ_B(⋅∣t,x)∥_1,u\_{t}(x):=\frac{1}{2}-\frac{1}{2}\left\|p(x)\bar{\pi}\_{G}(\cdot\mid t,x)-(1-p(x))\bar{\pi}\_{B}(\cdot\mid t,x)\right\|\_{1},

where p(x)=Pr⁡(R=1∣x)p(x)=\Pr(R=1\mid x), and πˉ_G\bar{\pi}\_{G} and πˉ_B\bar{\pi}\_{B} denote the state-averaged next-token distributions over successful and unsuccessful rollouts, respectively. Appendix E shows that E[Var(R∣S_t)∣x]≤u_t(x)\mathbb{E}[\mathrm{Var}(R\mid S\_{t})\mid x]\leq u\_{t}(x). Therefore, we use the reward uncertainty at each timestep tt for the advantage when optimizing the cutoff distribution ξ_1:T\xi\_{1:T}.

Consequently, we solve the following convex optimization problem:

\displaystyle\arg\min\_{\xi\_{1:T}}\∑_t=1Tγˉ_t(x,t)u_t(x)ξ_t\displaystyle\sum\_{t=1}^{T}\frac{\bar{\gamma}\_{t}(x,t)u\_{t}(x)}{\xi\_{t}}(8)
------------
s.t.∑_t=1Tt (ξ_t−ξ_t+1)=B,ξ_T+1≔0,\displaystyle\sum\_{t=1}^{T}t\,\bigl(\xi\_{t}-\xi\_{t+1}\bigr)=B,\quad\xi\_{T+1}\coloneqq 0,
------------
1≥ξ_1≥⋯≥ξ_T>0.\displaystyle 1\geq\xi\_{1}\geq\cdots\geq\xi\_{T}>0.

The uncertainty term u_t(x)u\_{t}(x) measures the residual uncertainty of the terminal reward after observing the prefix state s_ts\_{t}. When u_t(x)u\_{t}(x) is small, the prefix already makes the final reward largely predictable, so the corresponding timestep can be sampled less frequently. Conversely, large u_t(x)u\_{t}(x) indicates that the terminal outcome remains uncertain, so skipping that timestep would induce larger variance. The design objective therefore assigns larger inclusion probabilities to timesteps with larger γˉ_t(x,t)u_t(x)\bar{\gamma}\_{t}(x,t)u\_{t}(x), while allowing predictable regions to be truncated more aggressively under the compute budget. This yields shorter sampled prefixes once the reward becomes sufficiently predictable, without changing the full-sequence update in expectation.

Directly optimizing Eq. (8) is challenging due to the monotonicity constraint. To address this within this convex problem, we employ the Pooling Adjacent Violations (PAV) algorithm (Brummer and du Preez, 2013), which returns the optimal monotone solution. We begin by solving the Lagrangian relaxation of the problem Eq. (8) without the monotonicity constraint, yielding the closed-form solution:

ξ_t=B⋅γˉ_t(x,t)u_t(x)∑_j=1Tγˉ_j(x,j)u_j(x).\xi\_{t}=B\cdot\frac{\sqrt{\bar{\gamma}\_{t}(x,t)u\_{t}(x)}}{\sum\_{j=1}^{T}\sqrt{\bar{\gamma}\_{j}(x,j)u\_{j}(x)}}.

We then apply the PAV algorithm to these initial values to obtain the final monotone optimum ξ⋆_1:T\xi^{\star}\_{1:T}. The complete derivation and the details of the pooling procedure are provided in Appendix F.

Using the optimized ξ⋆_1:T\xi^{\star}\_{1:T}, we independently sample a cutoff H(k)H^{(k)} for each completion k∈{1,…,K}k\in\{1,\ldots,K\}. We then construct an importance-weighted truncated update by reweighting each retained timestep by 1/ξ_t⋆1/\xi\_{t}^{\star}:

G^PS-PPO(θ)  ≔  1K∑_k=1K∑_t=1H(k)1ξ_t⋆ g_t(k)(θ).\widehat{G}^{\mathrm{PS\text{-}PPO}}(\theta)\;\coloneqq\;\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{H^{(k)}}\frac{1}{\xi\_{t}^{\star}}\,g\_{t}^{(k)}(\theta).(9)

The full procedure is summarized in Algorithm 1.

Algorithm 1 Prefix-Sampling PPO (PS-PPO)

Require: policy model π_θ\pi\_{\theta}; prompt distribution p_Qp\_{Q}; reward function R(⋅,⋅)R(\cdot,\cdot); max training steps NN; old-policy refresh period FF; group size KK; max completion length TT; budget BB.

1:  Initialize policy parameters θ\theta, and set θ_old←θ\theta\_{\mathrm{old}}\leftarrow\theta.

2:  for iteration n=1n=1 to NN do

3:   Sample a prompt x∼p_Qx\sim p\_{Q}.

4:   Sample KK completions {τ(i)}_i=1K\{\tau^{(i)}\}\_{i=1}^{K} from π_θ_old(⋅∣x)\pi\_{\theta\_{\mathrm{old}}}(\cdot\mid x).

5:   Compute terminal rewards {R(i)}_i=1K\{R^{(i)}\}\_{i=1}^{K}.

6:   Compute critic-free advantages {A^(i)}_i=1K\{\hat{A}^{(i)}\}\_{i=1}^{K} using the within-prompt baseline.

7:   Compute per-timestep proxies {u_t(x), γˉ_t(x,t)}_t=1T\{u\_{t}(x),\,\bar{\gamma}\_{t}(x,t)\}\_{t=1}^{T} from {(τ(i),R(i))}_i=1K\{(\tau^{(i)},R^{(i)})\}\_{i=1}^{K}.

8:   Set cutoff weights w_t(x)←γˉ_t(x,t)u_t(x)w\_{t}(x)\leftarrow{\bar{\gamma}\_{t}(x,t)u}\_{t}(x) for t=1,…,Tt=1,\dots,T.

9:   Compute monotone cutoff probabilities ξ_1:T\xi\_{1:T} by solving the budgeted design problem with constraints.

10:   Sample cutoffs {H(i)}_i=1K\{H^{(i)}\}\_{i=1}^{K} from the cutoff distribution induced by ξ_1:T\xi\_{1:T}.

11:   During the update pass, backpropagate only through tokens t≤H(i)t\leq H^{(i)} and reweight token losses by 1/ξ_t1/\xi\_{t}.

12:   Update θ\theta using PPO with the truncated, reweighted gradient estimator in Eq. (9).

13:   if n mod F=0n\bmod F=0 then

14:    θ_old←θ\theta\_{\mathrm{old}}\leftarrow\theta.

15:   end if

16:  end for

17:  return optimized policy model π_θ\pi\_{\theta}.

We evaluate our method on a diverse set of math reasoning benchmarks. Our goal is to assess whether the proposed approach yields consistent gains over strong critic-free baselines in terms of task performance and efficiency. We further conduct a sensitivity analysis over key hyperparameters to characterize robustness.

For training on mathematical reasoning, we train on MATH (Hendrycks et al., 2021), excluding Level 1 and Level 2 problems, and use Llama-3.1-8B-Instruct11 1 https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct and Qwen2.5-Math-7B22 2 https://huggingface.co/Qwen/Qwen2.5-Math-7B (Yang et al., 2024) as backbone models. Prompts are designed to elicit step-by-step derivations via an explicit instruction, and we optimize the policy with a binary reward based on final-answer correctness. We also evaluate performance on challenging benchmarks: MATH500 (Hendrycks et al., 2021), AMC 2023 (Li et al., 2024), Minerva Math (Lewkowycz et al., 2022), CollegeMath (Tang et al., 2024), and AIME 2024/2025 (Art of Problem Solving, 2026).

Although our main experiments focus on mathematical reasoning, PS-PPO is not tied to binary correctness rewards. The stochastic truncation estimator preserves the corresponding full-sequence update in expectation, so the same update principle applies to RLHF settings with general terminal rewards. We therefore include continuous-reward text-generation experiments in Appendix G, where PS-PPO reduces training time and memory while maintaining competitive reward performance.

(a)

Table 1: Training-time breakdown per training step excluding rollout/generation. Values are mean±\pmstd over training steps. PS-PPO substantially reduces training time per step primarily by lowering the forward/backward cost, even after accounting for the overhead of computing ξ_1:T(x)\xi\_{1:T}(x).

MethodTraining-time breakdown (s)Total training time (s)
Computing ξ_1:T\xi\_{1:T}ForwardBackwardOther
PS-PPO (Optimized, B=128)0.43±0.020.43\pm 0.020.32±0.040.32\pm 0.041.01±0.141.01\pm 0.140.01±0.010.01\pm 0.011.77±0.021.77\pm 0.02
S-GRPOn/a0.82±0.070.82\pm 0.071.81±0.101.81\pm 0.100.03±0.020.03\pm 0.022.66±0.012.66\pm 0.01
DAPOn/a1.11±0.041.11\pm 0.042.10±0.132.10\pm 0.130.02±0.010.02\pm 0.013.23±0.013.23\pm 0.01
DAPO (with forking tokens)n/a1.12±0.021.12\pm 0.022.12±0.112.12\pm 0.110.01±0.010.01\pm 0.013.25±0.013.25\pm 0.01

We compare PS-PPO against representative critic-free RLHF baselines and methods that aim to reduce the cost of policy updates. We include GRPO (Shao et al., 2024), Dr.GRPO (Liu et al., 2025), DAPO (Yu et al., 2025), and RLOO (Ahmadian et al., 2024), which backpropagate through the full generated completion.

We also compare to a fixed-prefix baseline that always backpropagates through a predetermined prefix length LL, as well as update-efficient baselines including DAPO with forking tokens (Wang et al., 2025) and S-GRPO (Lee and Tong, 2025).

To isolate the effect of the cutoff distribution, we evaluate PS-PPO variants that differ only in the cutoff-sampling distribution : (i) PS-PPO (Uniform), which samples the cutoff uniformly over timesteps; (ii) PS-PPO (Time Prior), which sets ξ_t=exp⁡(−λ(t−1))\xi\_{t}=\exp(-\lambda(t-1)) with λ≥0\lambda\geq 0 controlling how strongly the cutoff favors earlier timesteps; (iii) PS-PPO (Heuristic), which first computes an unconstrained sequence of cutoff probabilities ξ_1:T{\xi}\_{1:T}, and then enforces the required prefix monotonicity via a simple post-processing: ξ_1=ξ_1\xi\_{1}=\xi\_{1} and ξ_t←min⁡(ξ_t−1,ξ_t)\xi\_{t}\leftarrow\min(\xi\_{t-1},\xi\_{t}) for t=2,…,Tt=2,\ldots,T, without optimizing the monotone cutoff objective; (iv) PS-PPO (Optimized), which optimizes the cutoff distribution under the prefix monotonicity and compute-budget constraints.

Table 2: Pass@1 accuracy (%) on mathematical reasoning benchmarks. All methods use the same number of training steps and the same number of rollouts per prompt (KK). Under this fixed rollout, PS-PPO attains competitive accuracy relative to strong critic-free baselines with improved training-time efficiency (Fig. 2, Table 1). Values are averaged over three independent runs. (Bold: best, underlined: second best).

Base modelMethodMATH500AMC23CollegeMathMinervaMathAIME24AIME25
Llama-3.1 8B-InstructBase43.225.030.125.73.30.0
GRPO45.230.032.127.96.60.0
Dr.GRPO46.027.532.828.36.63.3
RLOO45.227.532.126.16.60.0
DAPO46.832.534.229.410.03.3
DAPO (with forking tokens)47.032.533.429.210.03.3
S-GRPO46.230.833.028.610.03.3
Fixed Length (L=512L{=}512)45.527.532.226.76.60.0
PS-PPO (Uniform)45.827.832.627.06.61.1
PS-PPO (Time-Prior)45.627.632.526.96.61.1
PS-PPO (Heuristic)45.928.032.727.16.61.1
PS-PPO (Optimized, B=128B{=}128)47.632.533.529.210.03.3
Qwen-2.5 Math-7BBase82.552.521.527.66.66.7
GRPO83.955.823.729.413.310.0
Dr.GRPO83.557.523.629.813.310.0
RLOO83.655.022.728.710.06.7
DAPO85.257.524.230.516.710.0
DAPO (with forking tokens)85.158.325.030.116.710.0
S-GRPO84.756.722.829.016.710.0
Fixed Length (L=512L{=}512)83.355.023.428.310.08.9
PS-PPO (Uniform)83.655.823.728.713.39.0
PS-PPO (Time-Prior)84.655.623.727.810.06.7
PS-PPO (Heuristic)83.756.022.727.913.310.0
PS-PPO (optimized, B=128B{=}128)85.058.523.930.116.713.3

Table 3: Scaling with maximum completion length. Training time per step excludes rollout/generation and measures the update stage. Accuracy is pass@1. Avg. is averaged over MATH500, AIME24, and AIME25.

T_max⁡T\_{\max}MethodTime/stepMATH500AIME24AIME25Avg.
1024PS-PPO1.77±0.021.77\pm 0.0285.016.713.338.3\mathbf{38.3}
S-GRPO2.66±0.012.66\pm 0.0184.716.710.037.1
DAPO3.23±0.013.23\pm 0.0185.216.710.037.3‾\underline{37.3}
2048PS-PPO2.02±0.032.02\pm 0.0386.223.316.742.1\mathbf{42.1}
S-GRPO4.03±0.034.03\pm 0.0385.620.013.339.6‾\underline{39.6}
DAPO4.93±0.034.93\pm 0.0386.423.316.742.1\mathbf{42.1}
4096PS-PPO2.39±0.042.39\pm 0.0486.423.316.742.1‾\underline{42.1}
S-GRPO6.70±0.046.70\pm 0.0485.820.013.339.7
DAPO7.78±0.047.78\pm 0.0486.623.316.742.2\mathbf{42.2}

We evaluate PS-PPO on mathematical reasoning benchmarks, asking whether it can reduce training time (excluding rollout/generation, which is shared across methods) while matching strong critic-free baselines. We use a backpropagation budget of B=128B{=}128, where BB denotes the expected number of prefix tokens included in the gradient update. This setting yielded the best accuracy–training-time trade-off in our sweep, and ablations over BB are reported in Sec. 4.2. All methods use the same rollout (group size KK) and the same number of training steps.

Table 2 shows that PS-PPO (Optimized) achieves accuracy comparable to strong critic-free baselines. Importantly, this competitive performance is attained alongside improved computational efficiency: as shown in Fig. 2 and Table 1, PS-PPO reaches high rewards faster while reducing training time and peak GPU memory usage. The savings primarily come from lower forward/backward cost. Although PS-PPO incurs additional overhead to compute the cutoff probabilities ξ_1:T(x)\xi\_{1:T}(x) for truncation, this cost is outweighed by the savings from shorter backpropagated prefixes, yielding a 33%–45% reduction in training time per step relative to the baselines. Peak GPU memory also decreases because truncation reduces stored activations, reducing peak memory by 15%–17% relative to the non-truncated baselines.

In contrast, masking-only baselines (S-GRPO; DAPO with forking tokens) reduce the number of loss-included tokens (i.e., tokens with non-zero loss after masking; Fig. 2(d)), but do not necessarily reduce the dominant forward/backward cost because computation is still performed over the full sequence length. Accordingly, these baselines yield only modest reductions in training time per step and peak memory, whereas PS-PPO achieves larger savings by truncating the gradient-update computation itself.

PS-PPO reduces update computation by backpropagating only through sampled prefixes, so its efficiency advantage is expected to become more pronounced as the maximum completion length grows. To test this, we vary the maximum completion length T_max⁡∈{1024,2048,4096}T\_{\max}\in\{1024,2048,4096\} and compare PS-PPO with S-GRPO and DAPO under the same rollout and training-step budget. As shown in Table 3, PS-PPO maintains accuracy comparable to DAPO while becoming increasingly faster as T_max⁡T\_{\max} grows. At T_max⁡=4096T\_{\max}=4096, PS-PPO achieves 2.8×2.8\times speedup over S-GRPO and 3.3×3.3\times speedup over DAPO in update-stage training time per step. These results show that the computational benefit of prefix sampling becomes more pronounced in the long-completion regime targeted by PS-PPO.

Understanding the effect of cutoff strategy.

Section titled “Understanding the effect of cutoff strategy.”

To isolate the impact of the cutoff strategy, we compare PS-PPO variants under a fixed backpropagation budget. We train all models with a maximum completion length of T=1024T{=}1024. Under the uniform-cutoff strategy, the cutoff length HH is sampled uniformly over timesteps, yielding an expected retained prefix length of E[H]=T/2=512\mathbb{E}[H]=T/2=512. We therefore set the backpropagation budget to B=512B{=}512 so that all strategies are compared under the same expected backpropagated length.

Figure 3 plots reward versus wall-clock time. PS-PPO (Optimized) and PS-PPO (Heuristic) incur additional per-step overhead to compute the cutoff probabilities ξ_1:T(x)\xi\_{1:T}(x), yet they reach the reward plateau substantially earlier than the baselines. This indicates that the improvement is not solely due to reduced per-step cost, but to allocating the same backpropagation budget to more informative parts of each completion, improving time-to-reward. Since the time-prior baseline does not yield clear gains over uniform cutoff, simply favoring earlier timesteps is not sufficient for effective learning.

In contrast, fixed-length truncation has low per-step overhead but can be misaligned with where useful learning signal occurs: for some prompts it truncates informative suffix tokens, while for others it propagates through uninformative suffix tokens, leading to inefficient updates. Uniform truncation exhibits the complementary issue: without guidance on which tokens to keep, some updates are cut too aggressively and discard learning signal, whereas others retain long, low-utility suffixes that increase computation with limited benefit. Overall, our optimized cutoff distribution offsets its modest overhead by extracting more learning signal per unit wall-clock time, resulting in faster training progress.

(a)

The budget BB controls the expected cutoff length, which directly determines how many tokens are included in the forward and backward passes during each update. We parameterize the cutoff distribution by ξ_t(x)≔Pr⁡(H≥t∣x)\xi\_{t}(x)\coloneqq\Pr(H\geq t\mid x), so that E[H∣x]=∑_t=1Tξ_t(x)=B\mathbb{E}[H\mid x]=\sum\_{t=1}^{T}\xi\_{t}(x)=B. To study its effect, we sweep B∈{64,128,256,512}B\in\{64,128,256,512\}. Table 4 reports pass@1 on our evaluation and the training-time per step.

We observe two coupled effects as BB varies. With smaller budgets, truncation becomes more aggressive, which reduces training compute but also shortens the backpropagated prefix and can remove informative parts of the trajectory from the update. At the same time, smaller BB increases the magnitude of the truncation correction, leading to a higher variance gradient estimator. As BB increases, longer prefixes are retained and the correction weakens, yielding more stable optimization. However, beyond a moderate budget, accuracy gains saturate while training time continues to grow as more tokens participate in forward and backward computation. Overall, these results highlight BB as a trade-off parameter between computational savings and statistical efficiency, motivating our default choice of B=128B=128.

Table 4: Effect of the update budget BB in PS-PPO (pass@1 accuracy, %). All runs use the same number of training steps and rollouts per step. All values are averaged over three independent runs.

BenchmarkBudget BB
64128256512
MATH50082.985.085.185.0
AMC2354.258.557.857.5
CollegeMath22.023.924.724.2
MinervaMath28.030.130.430.1
AIME2410.016.716.716.7
AIME256.713.310.013.3
Avg.34.037.937.537.8
Training-time / step (sec)1.151.772.012.56

Table 5: Effect of the number of rollouts KK in PS-PPO (pass@1 accuracy, %). All runs use the same number of training steps and the same update setting (BB=128). Training time per step excludes rollout/generation. All values are averaged over three independent runs.

Benchmark#Rollouts per step KK
24816
MATH50082.884.085.085.2
AMC2355.057.558.558.1
CollegeMath22.023.023.924.1
MinervaMath28.729.830.130.5
AIME2410.013.316.720.0
AIME256.710.013.313.3
Avg.34.236.337.938.5
Training time / step (sec)1.141.431.772.24

We ablate the number of rollouts per prompt K∈{2,4,8,16}K\in\{2,4,8,16\} while keeping other settings fixed. In critic-free methods, the broadcast advantage takes the form A^(k)=R(k)−Rˉ\hat{A}^{(k)}=R^{(k)}-\bar{R} with Rˉ=1K∑_j=1KR(j)\bar{R}=\frac{1}{K}\sum\_{j=1}^{K}R^{(j)}. When all rollouts for a prompt are either correct or incorrect, A^(k)=0\hat{A}^{(k)}=0 for all kk, yielding no learning signal for that prompt. As KK increases, such degenerate cases may become less frequent, which can make training updates more stable.

This effect can be more pronounced in PS-PPO, since cutoff selection relies on a per-timestep uncertainty signal. Specifically, we use a lightweight prompt-conditioned signal u^_t(x)\hat{u}\_{t}(x) as an upper-bound proxy for Var(R∣s_t)\mathrm{Var}(R\mid s\_{t}) when constructing the cutoff distribution. Estimating u^_t(x)\hat{u}\_{t}(x) requires observing reward variability among rollouts that share similar prefixes: with small KK, outcomes are often degenerate or too sparse, causing u^_t(x)\hat{u}\_{t}(x) to be noisy or nearly flat across tt, in which case the resulting cutoff distribution tends toward a conservative, near-uniform behavior. As KK increases, mixed outcomes tend to appear more often and the estimate of u^_t(x)\hat{u}\_{t}(x) becomes more reliable, which yields a more informative cutoff distribution.

Empirically, increasing KK improves final performance but also increases training time per step, since more sampled completions induce additional training-time computation (forward/backward). In our main experiments, we use K=8K{=}8 as a practical trade-off: it achieves performance comparable to K=16K{=}16 while incurring substantially lower per-step training cost.

In this paper, we presented PS-PPO (Prefix-Sampling PPO), a framework that reduces the training cost of critic-free RLHF, where policy updates typically require backpropagation through long reasoning traces. PS-PPO derives an optimized prompt-conditioned cutoff distribution by formulating its design as a convex optimization problem, which minimizes a variance surrogate of the truncated gradient estimator under a training-budget constraint. It then samples a cutoff during training and applies an inclusion-probability correction, so that the truncated update matches the full-sequence objective in expectation while requiring substantially less computation.

Empirically, PS-PPO achieves accuracy comparable to strong critic-free baselines across mathematical reasoning benchmarks while substantially reducing training time and peak GPU memory usage. These results suggest that, in many long reasoning traces, intermediate prefixes already contain substantial information about the final outcome. By allocating update computation through stochastic prefix sampling while preserving the full-sequence update in expectation, PS-PPO offers a scalable path to aligning large language models under substantially reduced resource requirements.

This work was supported by Institute for Information & Communications Technology Planning & Evaluation (IITP), funded by Korea government(MSIT), through the Information Technology Research Center (ITRC) program and other projects (No. RS-2022-II220311, Development of Goal-Oriented Reinforcement Learning Techniques for Contact-Rich Robotic Manipulation of Everyday Objects; No.RS-2024-00343989, Enhancing the Ethics of Data Characteristics and Generation AI Models for Social and Ethical Learning;  No.RS-2024-00457882, AI Research Hub Project; No.RS-2020-II200940, Foundations of Safe Reinforcement Learning and Its Applications to Natural Language Processing; No.RS-2019-II190075, Artificial Intelligence Graduate School Program (KAIST); IITP-2026-RS-2024-00436857).

This work improves the computational efficiency of RLHF for large language models by reducing policy-update computation and peak memory. This may make post-training long-reasoning models more accessible to academic and resource-constrained groups and reduce the hardware requirements and overall cost of repeated training experiments. However, more efficient post-training may also accelerate the development of capable generative models, which can produce misleading, unsafe, biased, or harmful content if trained or deployed without appropriate safeguards. PS-PPO is an optimization method and does not by itself determine the behavior or safety properties of the resulting model. Its broader impact therefore depends on the reward specification, training data, deployment context, and safety evaluations used in conjunction with the method.

  • Ahmadian et al. (2024) A. Ahmadian, C. Cremer, M. Gallé, M. Fadaee, J. Kreutzer, O. Pietquin, A. Üstün, and S. Hooker Back to basics: revisiting REINFORCE-style optimization for learning from human feedback in LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, External Links: Link, Document Cited by: §1, §2.2, §4.
  • Anil et al. (2023) R. Anil, A. M. Dai, O. Firat, M. Johnson, D. Lepikhin, A. Passos, S. Shakeri, E. Taropa, P. Bailey, Z. Chen, et al. PaLM-2 technical report. External Links: 2305.10403 Cited by: §1.
  • Arjona-Medina et al. (2019) J. A. Arjona-Medina, M. Gillhofer, M. Widrich, T. Unterthiner, J. Brandstetter, and S. Hochreiter RUDDER: return decomposition for delayed rewards. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §1.
  • Art of Problem Solving (2026) Art of Problem Solving AIME problems and solutions. Note: Accessed: 2026-01-04 Cited by: §4.
  • Bai et al. (2022) Y. Bai, A. Jones, K. Ndousse, A. Askell, A. Chen, N. DasSarma, D. Drain, S. Fort, D. Ganguli, T. Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. External Links: 2204.05862 Cited by: Appendix G.
  • Brown et al. (2020) T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. Language models are few-shot learners. In Advances in Neural Information Processing Systems, Cited by: §1.
  • Brummer and du Preez (2013) N. Brummer and J. du Preez The PAV algorithm optimizes binary proper scoring rules. External Links: 1304.2331, Link Cited by: §3.3.
  • Gao et al. (2024) Z. Gao, J. D. Chang, W. Zhan, O. Oertell, G. Swamy, K. Brantley, T. Joachims, D. Bagnell, J. D. Lee, and W. Sun REBEL: reinforcement learning via regressing relative rewards. In Advances in Neural Information Processing Systems, Cited by: §2.2.
  • Grattafiori et al. (2024) A. Grattafiori, A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur, A. Schelten, A. Vaughan, et al. The Llama 3 herd of models. External Links: 2407.21783 Cited by: §2.1.
  • Hao et al. (2025) Y. Hao, L. Dong, X. Wu, S. Huang, Z. Chi, and F. Wei On-policy RL with optimal reward baseline. CoRR abs/2505.23585. External Links: Link Cited by: §1.
  • Harutyunyan et al. (2019) A. Harutyunyan, W. Dabney, T. Mesnard, N. Heess, M. G. Azar, B. Piot, H. van Hasselt, S. Singh, G. Wayne, D. Precup, and R. Munos Hindsight credit assignment. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §1.
  • Hendrycks et al. (2021) D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, and J. Steinhardt Measuring mathematical problem solving with the MATH dataset. In NeurIPS Datasets and Benchmarks Track, Cited by: §4.
  • Jaech et al. (2024) A. Jaech, A. Kalai, A. Lerer, A. Richardson, A. El-Kishky, A. Low, A. Helyar, A. Madry, A. Beutel, A. Carney, et al. OpenAI o1 system card. OpenAI. Cited by: §1, §2.1.
  • Kazemnejad et al. (2025) A. Kazemnejad, M. Aghajohari, E. Portelance, A. Sordoni, S. Reddy, A. Courville, and N. L. Roux VinePPO: refining credit assignment in RL training of LLMs. In Forty-second International Conference on Machine Learning, External Links: Link Cited by: §1.
  • Lambert (2024) N. Lambert Reinforcement learning from human feedback. Note: Draft/online book Cited by: §1.
  • Lee and Tong (2025) A. Lee and H. Tong Token-efficient RL for LLM reasoning. External Links: Link Cited by: §2.3, §4.
  • Lewkowycz et al. (2022) A. Lewkowycz, A. Andreassen, D. Dohan, E. Dyer, H. Michalewski, V. Ramasesh, A. Slone, C. Anil, I. Schlag, T. Gutman-Solo, Y. Wu, B. Neyshabur, G. Gur-Ari, and V. Misra Solving quantitative reasoning problems with language models. In Advances in Neural Information Processing Systems, Cited by: §4.
  • Li et al. (2024) J. Li, E. Beeching, L. Tunstall, B. Lipkin, R. Soletskyi, S. Huang, K. Rasul, L. Yu, A. Q. Jiang, Z. Shen, et al. NuminaMath: the largest public dataset in AI4Maths with 860k pairs of competition math problems and solutions. Cited by: §4.
  • Li et al. (2025) J. Li, L. Li, T. Chang, K. Kuang, L. Chen, J. Zhou, and C. Yang RED: unleashing token-level rewards from holistic feedback via reward redistribution. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, Cited by: §1.
  • Liu et al. (2025) Z. Liu, C. Chen, W. Li, P. Qi, T. Pang, C. Du, W. S. Lee, and M. Lin Understanding R1-Zero-like training: a critical perspective. External Links: 2503.20783 Cited by: §2.2, §4.
  • Maas et al. (2011) A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Cited by: Appendix G.
  • Ouyang et al. (2022) L. Ouyang, J. Wu, X. Jiang, D. Almeida, C. Wainwright, P. Mishkin, C. Zhang, S. Agarwal, K. Slama, A. Ray, et al. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, Cited by: §1, §3.1.
  • Radford et al. (2019) A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, I. Sutskever, et al. Language models are unsupervised multitask learners. OpenAI. Cited by: §1.
  • Schulman et al. (2017) J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov Proximal policy optimization algorithms. External Links: 1707.06347 Cited by: §1.
  • Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, Y. Wu, et al. DeepSeekMath: pushing the limits of mathematical reasoning in open language models. External Links: 2402.03300 Cited by: §1, §2.1, §2.2, §3.1, §4.
  • Sun et al. (2025) Y. Sun, Z. Zhao, Y. Wei, Y. Zhang, and C. Gong Well begun, half done: reinforcement learning with prefix optimization for LLM reasoning. arXiv preprint arXiv:2512.15274. Cited by: §2.3.
  • Tang et al. (2024) Z. Tang, X. Zhang, B. Wang, and F. Wei MathScale: scaling instruction tuning for mathematical reasoning. In International Conference on Machine Learning, Cited by: §4.
  • Trung et al. (2024) L. Trung, X. Zhang, Z. Jie, P. Sun, X. Jin, and H. Li ReFT: reasoning with reinforced fine-tuning. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, Cited by: §2.1.
  • Wang et al. (2024) P. Wang, L. Li, Z. Shao, R. Xu, D. Dai, Y. Li, D. Chen, Y. Wu, and Z. Sui Math-Shepherd: verify and reinforce LLMs step-by-step without human annotations. In Association for Computational Linguistics, External Links: Link Cited by: §1.
  • Wang et al. (2025) S. Wang, L. Yu, C. Gao, C. Zheng, S. Liu, R. Lu, K. Dang, X. Chen, J. Yang, Z. Zhang, Y. Liu, A. Yang, A. Zhao, Y. Yue, S. Song, B. Yu, G. Huang, and J. Lin Beyond the 80/20 rule: high-entropy minority tokens drive effective reinforcement learning for LLM reasoning. CoRR abs/2506.01939. External Links: Link Cited by: §2.3, §4.
  • Yang et al. (2024) A. Yang, B. Zhang, B. Hui, B. Gao, B. Yu, C. Li, D. Liu, J. Tu, J. Zhou, J. Lin, et al. Qwen2.5-Math technical report: toward mathematical expert model via self-improvement. External Links: 2409.12122 Cited by: §4.
  • Yu et al. (2025) Q. Yu, Z. Zhang, R. Zhu, Y. Yuan, X. Zuo, Y. Yue, T. Fan, G. Liu, L. Liu, X. Liu, H. Lin, Z. Lin, B. Ma, G. Sheng, Y. Tong, C. Zhang, M. Zhang, W. Zhang, H. Zhu, J. Zhu, J. Chen, J. Chen, C. Wang, H. Yu, W. Dai, Y. Song, X. Wei, H. Zhou, J. Liu, W. Ma, Y. Zhang, L. Yan, M. Qiao, Y. Wu, and M. Wang DAPO: an open-source LLM reinforcement learning system at scale. CoRR abs/2503.14476. External Links: Link Cited by: §2.2, §4.

We further examine whether final correctness often depends on information that appears only late in the completion. For each MATH-500 problem, we first generate a full greedy completion with a maximum generation length of 4096 tokens. We then take the 50% and 75% prefixes of that completion and sample 32 suffix rollouts from each prefix. Let p_rp\_{r} denote the prefix-conditioned success rate at prefix ratio rr.

We report two statistics. The first is prefix sufficiency, defined as the fraction of problems for which p_r≥0.8p\_{r}\geq 0.8. The second is late recovery, defined as the fraction of finally correct completions whose prefix-conditioned success rate is still below 0.80.8 at that prefix:

Pr⁡(p_r<0.8∣final correct).\Pr(p\_{r}<0.8\mid\text{final correct}).

Table 6: Prefix sufficiency and late recovery on MATH-500. Each p_rp\_{r} is estimated from 32 suffix rollouts conditioned on the rr-prefix of a greedy completion.

Model% problems p_0.5≥0.8p\_{0.5}\geq 0.8% problems p_0.75≥0.8p\_{0.75}\geq 0.8Late recovery @ 50% Pr⁡(p_0.5<0.8∣correct)\Pr(p\_{0.5}<0.8\mid\mathrm{correct})Late recovery @ 75% Pr⁡(p_0.75<0.8∣correct)\Pr(p\_{0.75}<0.8\mid\mathrm{correct})
Qwen2.5-Math-7B73.482.216.97.1
DeepSeek-R1-Distill-Qwen-7B74.284.418.98.6

Table 6 shows that a large fraction of problems already have highly predictive prefixes well before the end of the completion. At the 75% prefix, only 7.1% of finally correct Qwen2.5-Math-7B completions and 8.6% of finally correct DeepSeek-R1-Distill-Qwen-7B completions still have p_0.75<0.8p\_{0.75}<0.8. Equivalently, 92.9% and 91.4% of finally correct completions already have p_0.75≥0.8p\_{0.75}\geq 0.8, respectively. These results suggest that late correction can occur, but a large fraction of finally correct completions already have highly predictive prefixes before the end of the trajectory.

Appendix B Unbiasedness of the Truncated, Reweighted Estimator

Section titled “Appendix B Unbiasedness of the Truncated, Reweighted Estimator”

We justify that the truncated estimator in Eq. (9) preserves the expected (full) update under the cutoff randomness. Fix a prompt xx and the KK sampled trajectories, and denote by g_t(k)(θ)g\_{t}^{(k)}(\theta) the per-timestep gradient contribution at timestep tt for trajectory kk that would appear in the full update

G(θ)  ≔  1K∑_k=1K∑_t=1Tg_t(k)(θ).G(\theta)\;\coloneqq\;\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{T}g\_{t}^{(k)}(\theta).(10)

Define the inclusion probability

ξ_t  ≔  P ⁣(H(k)≥t∣x)∈(0,1],\xi\_{t}\;\coloneqq\;\mathbb{P}\!\left(H^{(k)}\geq t\mid x\right)\in(0,1],(11)

and introduce the inclusion indicator I_t(k)≔1{t≤H(k)}I\_{t}^{(k)}\coloneqq\mathbf{1}\{t\leq H^{(k)}\}. Then the truncated estimator can be written as

G^(θ)=1K∑_k=1K∑_t=1TI_t(k)ξ_t g_t(k)(θ),\widehat{G}(\theta)=\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{T}\frac{I\_{t}^{(k)}}{\xi\_{t}}\,g\_{t}^{(k)}(\theta),(12)

where we may sum to TT by noting that I_t(k)=0I\_{t}^{(k)}=0 for t>H(k)t>H^{(k)}. By construction, E[I_t(k)∣x]=P(H(k)≥t∣x)=ξ_t\mathbb{E}[I\_{t}^{(k)}\mid x]=\mathbb{P}(H^{(k)}\geq t\mid x)=\xi\_{t}. Moreover, conditional on xx and the sampled trajectories, g_t(k)(θ)g\_{t}^{(k)}(\theta) is fixed and the only remaining randomness is due to the cutoff H(k)H^{(k)}. Therefore,

E ⁣[G^(θ)∣x,o_1:k]\displaystyle\mathbb{E}\!\left[\widehat{G}(\theta)\mid x,o\_{1:k}\right]$\displaystyle=\frac{1}{K}\sum_{k=1}^{K}\sum_{t=1}^{T}\mathbb{E}!\left[\frac{I_{t}^{(k)}}{\xi_{t}},g_{t}^{(k)}(\theta),\middle,x,o_{1:k}\right]$
---------------
=1K∑_k=1K∑_t=1Tg_t(k)(θ)ξ_t E ⁣[I_t(k)∣x]\displaystyle=\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{T}\frac{g\_{t}^{(k)}(\theta)}{\xi\_{t}}\,\mathbb{E}\!\left[I\_{t}^{(k)}\mid x\right](14)
---------------
=1K∑_k=1K∑_t=1Tg_t(k)(θ)ξ_t ξ_t\displaystyle=\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{T}\frac{g\_{t}^{(k)}(\theta)}{\xi\_{t}}\,\xi\_{t}(15)
---------------
=1K∑_k=1K∑_t=1Tg_t(k)(θ)=G(θ).\displaystyle=\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{T}g\_{t}^{(k)}(\theta)=G(\theta).(16)

Finally, taking expectation over trajectory sampling yields

E_τ,H ⁣[G^(θ)∣x]=E_τ ⁣[G(θ)∣x],\mathbb{E}\_{\tau,H}\!\left[\widehat{G}(\theta)\mid x\right]=\mathbb{E}\_{\tau}\!\left[G(\theta)\mid x\right],

so the cutoff randomness does not change the expected full-sequence update.

Fix a prompt xx and omit the dependence on xx in {ξ_t}_t=1T\{\xi\_{t}\}\_{t=1}^{T} for readability. For each completion k∈{1,…,K}k\in\{1,\ldots,K\}, let g_t(k)(θ)∈Rdg\_{t}^{(k)}(\theta)\in\mathbb{R}^{d} denote the (pre-clipping) PPO contribution at timestep tt. We sample an independent cutoff length H(k)H^{(k)} with survival probabilities ξ_t≔Pr⁡(H(k)≥t∣x)\xi\_{t}\coloneqq\Pr(H^{(k)}\geq t\mid x). The cutoff-based (reweighted) update estimator can be written as

G^(θ)  =  1K∑_k=1K∑_t=1T1{H(k)≥t}ξ_t g_t(k)(θ).\widehat{G}(\theta)\;=\;\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{T}\frac{\mathbf{1}\{H^{(k)}\geq t\}}{\xi\_{t}}\,g\_{t}^{(k)}(\theta).

In this appendix, Var_H(⋅∣x)\mathrm{Var}\_{H}(\cdot\mid x) denotes variance over the cutoff variables {H(k)}_k=1K\{H^{(k)}\}\_{k=1}^{K} only (conditioning on the realized rollouts), and we measure update variability using the trace/diagonal surrogate Var_H(G^∣x)≡tr(Cov_H(G^∣x))=E_H[∥G^−E_H[G^]∥2∣x]\mathrm{Var}\_{H}(\widehat{G}\mid x)\equiv\mathrm{tr}(\mathrm{Cov}\_{H}(\widehat{G}\mid x))=\mathbb{E}\_{H}[\|\widehat{G}-\mathbb{E}\_{H}[\widehat{G}]\|^{2}\mid x].

Since E_H[1{H(k)≥t}∣x]=ξ_t\mathbb{E}\_{H}[\mathbf{1}\{H^{(k)}\geq t\}\mid x]=\xi\_{t}, we have E_H[1{H(k)≥t}/ξ_t∣x]=1\mathbb{E}\_{H}[\mathbf{1}\{H^{(k)}\geq t\}/\xi\_{t}\mid x]=1, hence

G^(θ)−E_H[G^(θ)∣x]=1K∑_k=1K∑_t=1T(1{H(k)≥t}ξ_t−1) g_t(k)(θ).\widehat{G}(\theta)-\mathbb{E}\_{H}[\widehat{G}(\theta)\mid x]=\frac{1}{K}\sum\_{k=1}^{K}\sum\_{t=1}^{T}\Big(\frac{\mathbf{1}\{H^{(k)}\geq t\}}{\xi\_{t}}-1\Big)\,g\_{t}^{(k)}(\theta).

Because cutoffs are sampled independently across kk, cross-completion covariances vanish under Var_H(⋅∣x)\mathrm{Var}\_{H}(\cdot\mid x), and thus

$$\mathrm{Var}_{H}(\widehat{G}(\theta)\mid x)=\frac{1}{K},\mathbb{E}_{H}!\left[\left|\sum_{t=1}^{T}\Big(\frac{\mathbf{1}{H\geq t}}{\xi_{t}}-1\Big),g_{t}(\theta)\right|^{2}\middlex\right],$$

where (H,g_t)(H,g\_{t}) denotes a generic completion (dropping the superscript kk). Expanding the squared norm yields diagonal terms and cross-timestep inner products; under the diagonal/trace surrogate we ignore the cross-timestep covariances and keep only the diagonal terms:

$$\mathrm{Var}_{H}(\widehat{G}(\theta)\mid x);\approx;\frac{1}{K}\sum_{t=1}^{T}\mathbb{E}_{H}!\left[\Big(\frac{\mathbf{1}{H\geq t}}{\xi_{t}}-1\Big)^{2}\middlex\right]\big|g_{t}(\theta)\big|^{2}.$$

For each tt, since Pr⁡(H≥t∣x)=ξ_t\Pr(H\geq t\mid x)=\xi\_{t},

$$\mathbb{E}_{H}!\left[\Big(\frac{\mathbf{1}{H\geq t}}{\xi_{t}}-1\Big)^{2}\middlex\right]=\xi_{t}\Big(\frac{1}{\xi_{t}}-1\Big)^{2}+(1-\xi_{t})\cdot 1=\frac{1}{\xi_{t}}-1.$$

Substituting gives

Var_H(G^(θ)∣x)  ≈  1K∑_t=1T(1ξ_t−1)∥g_t(θ)∥2.\mathrm{Var}\_{H}(\widehat{G}(\theta)\mid x)\;\approx\;\frac{1}{K}\sum\_{t=1}^{T}\Big(\frac{1}{\xi\_{t}}-1\Big)\big\|g\_{t}(\theta)\big\|^{2}.

Finally, taking expectation over rollouts conditioned on xx and defining w_t(x)≔E[∥g_t(k)(θ)∥2∣x]w\_{t}(x)\coloneqq\mathbb{E}[\|g\_{t}^{(k)}(\theta)\|^{2}\mid x] yields

E ⁣[Var_H(G^(θ)∣x)]  ≈  1K∑_t=1Tw_t(x)(1ξ_t−1),\mathbb{E}\!\left[\mathrm{Var}\_{H}(\widehat{G}(\theta)\mid x)\right]\;\approx\;\frac{1}{K}\sum\_{t=1}^{T}w\_{t}(x)\Big(\frac{1}{\xi\_{t}}-1\Big),

which is Eq. (4).

We derive a forward-only proxy for the per-token score-norm factor that avoids additional backward passes. For an autoregressive LM with a softmax output head at step tt,

z_t=Wh_t+b,p_t=softmax(z_t),o_t∼p_t,z\_{t}=Wh\_{t}+b,\qquad p\_{t}=\mathrm{softmax}(z\_{t}),\qquad o\_{t}\sim p\_{t},

where h_th\_{t} is the last-layer hidden state (available from the forward pass) and W,bW,b are the output-head parameters.

For the sampled token o_to\_{t}, the score with respect to the output-head parameters admits a closed form:

∇_Wlog⁡p_t(o_t)=(e_o_t−p_t) h_t⊤,∇_blog⁡p_t(o_t)=e_o_t−p_t.\nabla\_{W}\log p\_{t}(o\_{t})=(e\_{o\_{t}}-p\_{t})\,h\_{t}^{\top},\qquad\nabla\_{b}\log p\_{t}(o\_{t})=e\_{o\_{t}}-p\_{t}.

Consequently,

∥∇_Wlog⁡p_t(o_t)∥_F2=∥h_t∥_22 ∥e_o_t−p_t∥_22,∥∇_blog⁡p_t(o_t)∥_22=∥e_o_t−p_t∥_22,\big\|\nabla\_{W}\log p\_{t}(o\_{t})\big\|\_{F}^{2}=\|h\_{t}\|\_{2}^{2}\,\|e\_{o\_{t}}-p\_{t}\|\_{2}^{2},\qquad\big\|\nabla\_{b}\log p\_{t}(o\_{t})\big\|\_{2}^{2}=\|e\_{o\_{t}}-p\_{t}\|\_{2}^{2},

and the probability-only term satisfies

∥e_o_t−p_t∥_22=1−2p_t(o_t)+∥p_t∥_22.\|e\_{o\_{t}}-p\_{t}\|\_{2}^{2}=1-2p\_{t}(o\_{t})+\|p\_{t}\|\_{2}^{2}.

Thus, the output-head contribution to the score norm is determined entirely by forward-pass quantities (h_t,p_t)(h\_{t},p\_{t}).

In the main text, we use the following proxy (corresponding to the weight-matrix contribution):

γ_t  ≔  ∥h_t∥_22(1−2p_t(o_t)+∥p_t∥_22).\gamma\_{t}\;\coloneqq\;\|h\_{t}\|\_{2}^{2}\Bigl(1-2p\_{t}(o\_{t})+\|p\_{t}\|\_{2}^{2}\Bigr).

Since (W,b)(W,b) is a subset of all parameters, the full score norm satisfies

∥∇_θlog⁡π_θ(o_t∣s_t)∥_22  ≥  ∥∇_W,blog⁡p_t(o_t)∥_22,\big\|\nabla\_{\theta}\log\pi\_{\theta}(o\_{t}\mid s\_{t})\big\|\_{2}^{2}\;\geq\;\big\|\nabla\_{W,b}\log p\_{t}(o\_{t})\big\|\_{2}^{2},

because squared norms decompose additively across parameter blocks. Finally, we incorporate this proxy into the timestep weights by defining

$$\tilde{w}_{t}(x)\coloneqq\mathbb{E}!\left[\hat{A}_{t}^{2},\gamma_{t},\middle,x\right],$$

where the expectation is over on-policy rollouts generated by π_θ_old(⋅∣x)\pi\_{\theta\_{\mathrm{old}}}(\cdot\mid x).

A practical concern is that ∥p_t∥_22=∑_ip_t,i2\|p\_{t}\|\_{2}^{2}=\sum\_{i}p\_{t,i}^{2} appears to require the full vocabulary distribution. Let z_t∈R∣V∣z\_{t}\in\mathbb{R}^{|V|} be the logits and define two log-sum-exp reductions:

ℓ_1≔log⁡∑_iez_t,i,ℓ_2≔log⁡∑_ie2z_t,i.\ell\_{1}\coloneqq\log\sum\_{i}e^{z\_{t,i}},\qquad\ell\_{2}\coloneqq\log\sum\_{i}e^{2z\_{t,i}}.

Then

∥p_t∥_22=∑_i(ez_t,i∑_jez_t,j)2=∑_ie2z_t,i(∑_jez_t,j)2=exp⁡(ℓ_2−2ℓ_1).\|p\_{t}\|\_{2}^{2}=\sum\_{i}\left(\frac{e^{z\_{t,i}}}{\sum\_{j}e^{z\_{t,j}}}\right)^{2}=\frac{\sum\_{i}e^{2z\_{t,i}}}{\left(\sum\_{j}e^{z\_{t,j}}\right)^{2}}=\exp(\ell\_{2}-2\ell\_{1}).

Moreover, p_t(o_t)=exp⁡(z_t,o_t−ℓ_1)p\_{t}(o\_{t})=\exp(z\_{t,o\_{t}}-\ell\_{1}) is already available when computing the token log-probability. Therefore, γ_t\gamma\_{t} can be computed using only forward activations (h_th\_{t}) and two scalar reductions (ℓ_1,ℓ_2\ell\_{1},\ell\_{2}), without any additional backward passes.

Appendix E Derivation of the Reward-Uncertainty Upper Bound

Section titled “Appendix E Derivation of the Reward-Uncertainty Upper Bound”

We derive the reward-uncertainty proxy used in Eq. (7). Consider a binary terminal reward R∈{0,1}R\in\{0,1\}. For a prompt xx, let S_tS\_{t} denote the random prefix state at timestep tt, and define

p_t(s_t)≔Pr⁡(R=1∣S_t=s_t),p(x)≔Pr⁡(R=1∣x).p\_{t}(s\_{t})\coloneqq\Pr(R=1\mid S\_{t}=s\_{t}),\qquad p(x)\coloneqq\Pr(R=1\mid x).

Since RR is Bernoulli conditioned on S_t=s_tS\_{t}=s\_{t},

Var(R∣S_t=s_t)=p_t(s_t)(1−p_t(s_t))≤min⁡{p_t(s_t),1−p_t(s_t)}.\mathrm{Var}(R\mid S\_{t}=s\_{t})=p\_{t}(s\_{t})(1-p\_{t}(s\_{t}))\leq\min\{p\_{t}(s\_{t}),1-p\_{t}(s\_{t})\}.(17)

Using

$$\min{a,b}=\frac{1}{2}(a+b-a-b

with a=p_t(s_t)a=p\_{t}(s\_{t}) and b=1−p_t(s_t)b=1-p\_{t}(s\_{t}), we obtain

$$\min{p_{t}(s_{t}),1-p_{t}(s_{t})}=\frac{1}{2}-\frac{1}{2}2p_{t}(s_{t})-1.$$

Taking expectation over S_t∣xS\_{t}\mid x gives

$$\mathbb{E}!\left[\mathrm{Var}(R\mid S_{t})\mid x\right]\leq\frac{1}{2}-\frac{1}{2}\mathbb{E}!\left[2p_{t}(S_{t})-1\mid x\right].$$

We now rewrite the absolute-value term. Since

2p_t(s_t)−1=Pr⁡(R=1∣S_t=s_t)−Pr⁡(R=0∣S_t=s_t),2p\_{t}(s\_{t})-1=\Pr(R=1\mid S\_{t}=s\_{t})-\Pr(R=0\mid S\_{t}=s\_{t}),

we have

$\displaystyle\mathbb{E}!\left[2p_{t}(S_{t})-1\mid x\right]$
------------
$\displaystyle=\sum_{s_{t}}\left\Pr(s_{t},R=1\mid x)-\Pr(s_{t},R=0\mid x)\right

Substituting Eq. (20) into Eq. (19) yields

E ⁣[Var(R∣S_t)∣x]≤12−12∥Pr⁡(S_t,R=1∣x)−Pr⁡(S_t,R=0∣x)∥_1.\mathbb{E}\!\left[\mathrm{Var}(R\mid S\_{t})\mid x\right]\leq\frac{1}{2}-\frac{1}{2}\left\|\Pr(S\_{t},R=1\mid x)-\Pr(S\_{t},R=0\mid x)\right\|\_{1}.(21)

The state distribution in Eq. (21) is not directly convenient to estimate during training. We therefore map prefix states to their next-token predictive distributions under the old policy. Define

ϕ_t(s_t)≔Pr⁡(S_t=s_t,R=1∣x)−Pr⁡(S_t=s_t,R=0∣x).\phi\_{t}(s\_{t})\coloneqq\Pr(S\_{t}=s\_{t},R=1\mid x)-\Pr(S\_{t}=s\_{t},R=0\mid x).(22)

Because ∑_o_t∈Vπ_θ_old(o_t∣s_t)=1\sum\_{o\_{t}\in\mathcal{V}}\pi\_{\theta\_{\mathrm{old}}}(o\_{t}\mid s\_{t})=1, the triangle inequality gives

$\displaystyle\sum_{s_{t}}\phi_{t}(s_{t})$
------------
$\displaystyle\geq\sum_{o_{t}\in\mathcal{V}}\left\sum_{s_{t}}\phi_{t}(s_{t})\pi_{\theta_{\mathrm{old}}}(o_{t}\mid s_{t})\right

Combining Eq. (21) and Eq. (23) gives the looser but token-distribution-based upper bound

$$\mathbb{E}!\left[\mathrm{Var}(R\mid S_{t})\mid x\right]\leq\frac{1}{2}-\frac{1}{2}\sum_{o_{t}\in\mathcal{V}}\left\sum_{s_{t}}\phi_{t}(s_{t})\pi_{\theta_{\mathrm{old}}}(o_{t}\mid s_{t})\right.$$

Next define the state-averaged next-token distributions over successful and unsuccessful rollouts:

πˉ_G(⋅∣t,x)≔E ⁣[π_θ_old(⋅∣S_t)∣x,R=1],\bar{\pi}\_{G}(\cdot\mid t,x)\coloneqq\mathbb{E}\!\left[\pi\_{\theta\_{\mathrm{old}}}(\cdot\mid S\_{t})\mid x,R=1\right],
πˉ_B(⋅∣t,x)≔E ⁣[π_θ_old(⋅∣S_t)∣x,R=0].\bar{\pi}\_{B}(\cdot\mid t,x)\coloneqq\mathbb{E}\!\left[\pi\_{\theta\_{\mathrm{old}}}(\cdot\mid S\_{t})\mid x,R=0\right].

Using Pr⁡(S_t=s_t,R=r∣x)=Pr⁡(R=r∣x)Pr⁡(S_t=s_t∣x,R=r)\Pr(S\_{t}=s\_{t},R=r\mid x)=\Pr(R=r\mid x)\Pr(S\_{t}=s\_{t}\mid x,R=r), we obtain, for each token o_to\_{t},

∑_s_tϕ_t(s_t)π_θ_old(o_t∣s_t)\displaystyle\sum\_{s\_{t}}\phi\_{t}(s\_{t})\pi\_{\theta\_{\mathrm{old}}}(o\_{t}\mid s\_{t})=p(x)πˉ_G(o_t∣t,x)−(1−p(x))πˉ_B(o_t∣t,x).\displaystyle=p(x)\bar{\pi}\_{G}(o\_{t}\mid t,x)-(1-p(x))\bar{\pi}\_{B}(o\_{t}\mid t,x).(25)

Substituting Eq. (25) into Eq. (24), we define the reward-uncertainty proxy

u_t(x)≔12−12∥p(x)πˉ_G(⋅∣t,x)−(1−p(x))πˉ_B(⋅∣t,x)∥_1,u\_{t}(x)\coloneqq\frac{1}{2}-\frac{1}{2}\left\|p(x)\bar{\pi}\_{G}(\cdot\mid t,x)-(1-p(x))\bar{\pi}\_{B}(\cdot\mid t,x)\right\|\_{1},(26)

which satisfies

E ⁣[Var(R∣S_t)∣x]≤u_t(x).\mathbb{E}\!\left[\mathrm{Var}(R\mid S\_{t})\mid x\right]\leq u\_{t}(x).(27)

In practice, p(x)p(x), πˉ_G\bar{\pi}\_{G}, and πˉ_B\bar{\pi}\_{B} are estimated from the KK completions sampled for the same prompt. This yields the empirical quantity u^_t(x)\hat{u}\_{t}(x), which is used as the reward-uncertainty term in the cutoff-design objective.

We design monotone inclusion probabilities ξ_1:T\xi\_{1:T} under an expected-update budget BB:

min⁡_ξ_1:T  ∑_t=1Tw_tξ_ts.t.∑_t=1Tξ_t=B,  1≥ξ_1≥⋯≥ξ_T>0,\min\_{\xi\_{1:T}}\;\sum\_{t=1}^{T}\frac{w\_{t}}{\xi\_{t}}\quad\text{s.t.}\quad\sum\_{t=1}^{T}\xi\_{t}=B,\;1\geq\xi\_{1}\geq\cdots\geq\xi\_{T}>0,(28)

where w_t≥0w\_{t}\geq 0 is the timestep weight and ξ_t=Pr(t≤H)\xi\_{t}=\mathrm{Pr}(t\leq H).

Unconstrained solution (ignoring monotonicity).

Section titled “Unconstrained solution (ignoring monotonicity).”

First ignore the monotonicity constraints and consider

min⁡_ξ_t>0  ∑_t=1Tw_tξ_ts.t.∑_t=1Tξ_t=B.\min\_{\xi\_{t}>0}\;\sum\_{t=1}^{T}\frac{w\_{t}}{\xi\_{t}}\quad\text{s.t.}\quad\sum\_{t=1}^{T}\xi\_{t}=B.(29)

The Lagrangian is

L(ξ,λ)=∑_t=1Tw_tξ_t+λ(∑_t=1Tξ_t−B).\mathcal{L}(\xi,\lambda)=\sum\_{t=1}^{T}\frac{w\_{t}}{\xi\_{t}}+\lambda\Big(\sum\_{t=1}^{T}\xi\_{t}-B\Big).

For any tt with ξ_t>0\xi\_{t}>0, the stationarity condition gives

∂L∂ξ_t=−w_tξ_t2+λ=0⟹ξ_t=w_tλ.\frac{\partial\mathcal{L}}{\partial\xi\_{t}}=-\frac{w\_{t}}{\xi\_{t}^{2}}+\lambda=0\quad\Longrightarrow\quad\xi\_{t}=\sqrt{\frac{w\_{t}}{\lambda}}.

Using the budget constraint,

∑_t=1Tw_tλ=B⟹1λ=B∑_j=1Tw_j,\sum\_{t=1}^{T}\sqrt{\frac{w\_{t}}{\lambda}}=B\quad\Longrightarrow\quad\frac{1}{\sqrt{\lambda}}=\frac{B}{\sum\_{j=1}^{T}\sqrt{w\_{j}}},

so the closed form is

ξ_t⋆=B⋅w_t∑_j=1Tw_j.\xi\_{t}^{\star}=B\cdot\frac{\sqrt{w\_{t}}}{\sum\_{j=1}^{T}\sqrt{w\_{j}}}.(30)

(If one also enforces ξ_t≤1\xi\_{t}\leq 1, the KKT conditions imply a prefix of saturated coordinates ξ_t=1\xi\_{t}=1 may occur; the same derivation applies to the remaining suffix with a reduced budget.)

Under the monotonicity constraint ξ_1≥⋯≥ξ_T\xi\_{1}\geq\cdots\geq\xi\_{T}, the KKT conditions imply that the optimal solution is piecewise constant over contiguous blocks. Let {[i_m,j_m]}_m=1M\{[i\_{m},j\_{m}]\}\_{m=1}^{M} be a partition of {1,…,T}\{1,\ldots,T\} into contiguous intervals, and define the block length L_m≔j_m−i_m+1L\_{m}\coloneqq j\_{m}-i\_{m}+1 and the aggregated weight W_m≔∑_t=i_mj_mw_tW\_{m}\coloneqq\sum\_{t=i\_{m}}^{j\_{m}}w\_{t}. Restricting to blockwise-constant variables ξ_t=ξ_m\xi\_{t}=\xi\_{m} for t∈[i_m,j_m]t\in[i\_{m},j\_{m}] yields the reduced program

min⁡_ξ_1:M  ∑_m=1MW_mξ_ms.t.∑_m=1ML_mξ_m=B,  ξ_1≥⋯≥ξ_M>0.\min\_{\xi\_{1:M}}\;\sum\_{m=1}^{M}\frac{W\_{m}}{\xi\_{m}}\quad\text{s.t.}\quad\sum\_{m=1}^{M}L\_{m}\xi\_{m}=B,\;\xi\_{1}\geq\cdots\geq\xi\_{M}>0.(31)

For a fixed block partition, temporarily drop the inter-block monotonicity in (31) and solve

min⁡_ξ_m>0  ∑_m=1MW_mξ_ms.t.∑_m=1ML_mξ_m=B.\min\_{\xi\_{m}>0}\;\sum\_{m=1}^{M}\frac{W\_{m}}{\xi\_{m}}\quad\text{s.t.}\quad\sum\_{m=1}^{M}L\_{m}\xi\_{m}=B.

The Lagrangian is

L(ξ,λ)=∑_m=1MW_mξ_m+λ(∑_m=1ML_mξ_m−B),\mathcal{L}(\xi,\lambda)=\sum\_{m=1}^{M}\frac{W\_{m}}{\xi\_{m}}+\lambda\Big(\sum\_{m=1}^{M}L\_{m}\xi\_{m}-B\Big),

and stationarity gives

−W_mξ_m2+λL_m=0⟹ξ_m=W_mλL_m.-\frac{W\_{m}}{\xi\_{m}^{2}}+\lambda L\_{m}=0\quad\Longrightarrow\quad\xi\_{m}=\sqrt{\frac{W\_{m}}{\lambda L\_{m}}}.

Imposing the budget constraint,

∑_m=1ML_mW_mλ=B⟹1λ=B∑_j=1ML_jW_j.\sum\_{m=1}^{M}\sqrt{\frac{L\_{m}W\_{m}}{\lambda}}=B\quad\Longrightarrow\quad\frac{1}{\sqrt{\lambda}}=\frac{B}{\sum\_{j=1}^{M}\sqrt{L\_{j}W\_{j}}}.

Therefore the blockwise optimum for the fixed partition is

ξ_m⋆=B⋅W_m/L_m∑_j=1ML_jW_j=B⋅s_m∑_j=1ML_js_j,s_m≔W_m/L_m.\xi\_{m}^{\star}=B\cdot\frac{\sqrt{W\_{m}/L\_{m}}}{\sum\_{j=1}^{M}\sqrt{L\_{j}W\_{j}}}=B\cdot\frac{s\_{m}}{\sum\_{j=1}^{M}L\_{j}s\_{j}},\qquad s\_{m}\coloneqq\sqrt{W\_{m}/L\_{m}}.(32)

When the block scores satisfy s_1≥⋯≥s_Ms\_{1}\geq\cdots\geq s\_{M}, this solution already obeys the monotonicity constraint; otherwise, PAV merges adjacent violating blocks until the scores become nonincreasing, yielding the globally optimal monotone solution.

Appendix G Text Generation Tasks with Continuous Rewards

Section titled “Appendix G Text Generation Tasks with Continuous Rewards”

We evaluate PS-PPO and baselines on text generation tasks with continuous scalar rewards produced by learned reward models. We use Qwen2.5-3B-Instruct33 3 https://huggingface.co/Qwen/Qwen2.5-3B-Instruct and Llama-3.1-8B-Instruct44 4 https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct as base models. For Positive Generation, prompts are drawn from the IMDB dataset (Maas et al., 2011) and rewards are computed using lvwerra/gpt2-imdb55 5 https://huggingface.co/lvwerra/gpt2-imdb. For Helpful Assistant, prompts are drawn from HH-RLHF (Bai et al., 2022) and rewards are computed using weqweasdas/RM-Gemma-2B66 6 https://huggingface.co/weqweasdas/RM-Gemma-2B.

To reuse the same u_t(x)u\_{t}(x) estimator under continuous rewards, we stochastically convert the scalar reward rr into a binary variable only for u_t(x)u\_{t}(x) estimation. Specifically, we map rr to a Bernoulli probability via a sigmoid:

p=σ(r)=11+exp⁡(−r),p=\sigma(r)=\frac{1}{1+\exp(-r)},

and sample a binary label y~∼Bernoulli(p)\tilde{y}\sim\mathrm{Bernoulli}(p). We use y~∈{0,1}\tilde{y}\in\{0,1\} only inside u_t(x)u\_{t}(x) estimation, while the policy update still uses the original continuous reward rr.

Table 7: Results on generation tasks measured by average reward. All values are averaged over three independent runs. (Bold: best, underlined: second best).

Base modelMethodHelpful assistantPositive GenerationAvg.
Qwen2.5-3B-InstructBase4.08±0.064.08\pm 0.065.74±0.085.74\pm 0.084.93±0.054.93\pm 0.05
GRPO5.29±0.085.29\pm 0.087.58±0.10‾\underline{7.58\pm 0.10}6.43±0.076.43\pm 0.07
Dr.GRPO5.61±0.095.61\pm 0.097.14±0.117.14\pm 0.116.35±0.086.35\pm 0.08
RLOO4.89±0.074.89\pm 0.077.00±0.097.00\pm 0.095.93±0.065.93\pm 0.06
DAPO6.18±0.07\mathbf{6.18\pm 0.07}7.97±0.08\mathbf{7.97\pm 0.08}7.07±0.06\mathbf{7.07\pm 0.06}
DAPO (w/ forking tokens)5.95±0.085.95\pm 0.087.46±0.097.46\pm 0.096.71±0.076.71\pm 0.07
S-GRPO5.11±0.105.11\pm 0.106.73±0.126.73\pm 0.125.90±0.085.90\pm 0.08
PS-PPO (Ours)6.02±0.08‾\underline{6.02\pm 0.08}7.42±0.097.42\pm 0.096.72±0.07‾\underline{6.72\pm 0.07}
Llama-3.1-8B-InstructBase4.71±0.054.71\pm 0.056.44±0.066.44\pm 0.065.59±0.055.59\pm 0.05
GRPO6.36±0.076.36\pm 0.078.16±0.088.16\pm 0.087.26±0.077.26\pm 0.07
Dr.GRPO6.82±0.086.82\pm 0.088.75±0.07‾\underline{8.75\pm 0.07}7.79±0.067.79\pm 0.06
RLOO5.94±0.065.94\pm 0.067.71±0.097.71\pm 0.096.81±0.076.81\pm 0.07
DAPO7.12±0.06\mathbf{7.12\pm 0.06}9.13±0.05\mathbf{9.13\pm 0.05}8.13±0.04\mathbf{8.13\pm 0.04}
DAPO (w/ forking tokens)6.90±0.076.90\pm 0.078.65±0.078.65\pm 0.077.78±0.057.78\pm 0.05
S-GRPO6.14±0.076.14\pm 0.077.99±0.087.99\pm 0.087.09±0.067.09\pm 0.06
PS-PPO (Ours)7.00±0.06‾\underline{7.00\pm 0.06}8.69±0.068.69\pm 0.067.85±0.05‾\underline{7.85\pm 0.05}

Table 8: Efficiency–performance trade-off on continuous-reward text generation tasks. Total training time and peak GPU memory are reported together with average reward. All values are averaged over three independent runs.

Base modelMethodTotal training timePeak GPU memoryAvg. reward
Qwen2.5-3B-InstructPS-PPO (Ours)3.2±0.13.2\pm 0.1 h42.8±0.742.8\pm 0.7 GB6.72±0.076.72\pm 0.07
S-GRPO6.7±0.16.7\pm 0.1 h68.9±0.968.9\pm 0.9 GB5.90±0.085.90\pm 0.08
DAPO7.3±0.17.3\pm 0.1 h73.8±1.073.8\pm 1.0 GB7.07±0.067.07\pm 0.06
Llama-3.1-8B-InstructPS-PPO (Ours)4.4±0.14.4\pm 0.1 h45.7±0.945.7\pm 0.9 GB7.85±0.057.85\pm 0.05
S-GRPO8.1±0.28.1\pm 0.2 h72.6±1.072.6\pm 1.0 GB7.09±0.067.09\pm 0.06
DAPO11.3±0.211.3\pm 0.2 h77.9±1.177.9\pm 1.1 GB8.13±0.048.13\pm 0.04

Tables 7 and 8 show that PS-PPO maintains competitive reward performance on continuous-reward generation tasks while reducing total training time and peak GPU memory. These results suggest that PS-PPO is not limited to sparse binary rewards, since the stochastic truncation estimator preserves the corresponding full-sequence update in expectation under general terminal rewards.

Appendix H Output-Head Score Norm as a Proxy for the Full Score Norm

Section titled “Appendix H Output-Head Score Norm as a Proxy for the Full Score Norm”

![Figure 4 : Token-wise correlation between the output-head score norm ‖ ∇ θ out ​ log ​ π θ ​ ( o t ∣ s t ) ‖ |\nabla_{](assets/scatter_log_norms_filtered.png)

Figure 4 : Token-wise correlation between the output-head score norm ‖ ∇ θ out ​ log ​ π θ ​ ( o t ∣ s t ) ‖ |\nabla_{\theta_{\mathrm{out}}}\log\pi_{\theta}(o_{t}\mid s_{t})| (x-axis) and the full score norm ‖ ∇ θ ​ log ​ π θ ​ ( o t ∣ s t ) ‖ |\nabla_{\theta}\log\pi_{\theta}(o_{t}\mid s_{t})| (y-axis) on Qwen2.5-Math-7B (log–log scale). We plot tokens with numerically non-negligible score norms for visual clarity. The strong correlation supports using the output-head term as a lightweight proxy.

Appendix I Implementation Details for Training

Section titled “Appendix I Implementation Details for Training”

For mathematical reasoning experiments, we trained the 7B-scale models on 8 NVIDIA A100 GPUs. With this configuration, training on the MATH dataset took roughly 4 hours for the 7B models and 5 hours for the 8B models. All methods were implemented on top of the Hugging Face Open-R1 codebase.77 7 https://github.com/huggingface/open-r1 The project repository is available at https://github.com/doohwan383/PS-PPO.

We used a per-device batch size of 16, truncating input prompts to 1024 tokens and generating up to 1024 tokens per rollout during training. The learning rate was set to 5×10−55\times 10^{-5}, and PPO clipping used ϵ=0.1\epsilon=0.1. We trained for up to 3 epochs and sampled 8 completions per prompt during rollout. Unless stated otherwise, we set the cutoff budget parameter B to 128 and compute u_t(x)u\_{t}(x) using a top-kk approximation with k=16k=16.

We followed the Qwen-Math prompting template and used a binary accuracy reward: a completion receives reward 1 if its final answer exactly matches the ground-truth answer, and 0 otherwise. For evaluation across all benchmarks, we used a maximum sequence length of 4096 tokens and reported zero-shot pass@1 accuracy. Metrics were computed using Lighteval88 8 https://github.com/huggingface/lighteval and the official Qwen2.5-Math evaluation code.99 9 https://github.com/QwenLM/Qwen2.5-Math