Manuscript Offprint
arXiv:2609.35433ReSPO: Reshaped Sequence Policy Optimization for Gradient Starvation in Off-Policy Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Reinforcement learning from verifiable rewards (RLVR) frequently reuses rollouts across multiple policy updates, increasing the mismatch between the current policy and the data-generating policy. We identify a sign-dependent gradient starvation problem in clipped policy optimization: clipping suppresses under-generated positive responses at the low-importance-weight tail while permitting severely over-generated negative responses to dominate the high-weight tail. To address this, we propose ReSPO (Reshaped Sequence Policy Optimization), which replaces clipping with a smooth, two-branch sequence-level kernel derived from an -divergence variational objective and an exponential variance-control tilt. The positive branch preserves a nonzero gradient weight for under-generated positive responses, while the negative branch suppresses heavily over-generated negative responses. We demonstrate that ReSPO effectively learns from long positive reasoning trajectories during early training, even when accumulated policy drift relages them to the low-importance-weight tail. On dense and MoE Qwen3 models, ReSPO accelerates early optimization, improves final training scores, and achieves higher held-out benchmark performance under a rollout reuse, validating our approach on importance-weight tail control in off-policy learning.
1 Introduction
RL from verifiable rewards (RLVR) improves LLM reasoning using scalar rewards (Chen et al., 2025; DeepSeek-AI et al., 2025; Yang et al., 2025), and GRPO (Shao et al., 2024) computes group-relative advantages without a value function. Expensive and slow generation motivates rollout reuse, making the data off-policy in training: the current policy differs from the old policy that generated the responses. The sequence importance ratio measures this mismatch on the prompt and response . A small ratio means that the response is now less likely to be generated by the current policy than the old policy, while a large means that it is more likely. GRPO clips the token importance ratio and GSPO (Zheng et al., 2025) clips the length-normalized ratio to stabilize training. Both methods use clipping, so their in-region gradients scale linearly with the importance ratio.
This linear weighting starves informative gradients in opposite ways depending on the advantage sign. We call responses with positive responses and those with negative responses, according to their group-relative reward. For positive responses, the gradient is proportional to , so already familiar tokens near the upper clip threshold receive the largest updates, while under-generated tokens with receive almost none. For negative responses, heavily over-generated tokens with remain unclipped, so their unbounded weight can overshadow the gradient contributions from other tokens. The same failure carries over to the sequence-level ratio used by GSPO. We refer to this sign-dependent misallocation of learning signal as gradient starvation.
Preprint.
We tackle the failures by reshaping the importance weight W at the sequence level. Instead of clipping, we replace the raw W with a smooth, sign-dependent kernel , and the two failures above determine the shape we need: must preserve under-generated positive responses, while must suppress both already-suppressed and severely over-generated negative responses. GRPO and GSPO clipping miss these critical tails: their effective weight vanishes on the low-ratio tail but grows without bound on the high-ratio tail. VESPO (Shen et al., 2026) suppresses both tails, fitting negative advantages but starving positive ones at . We propose ReSPO (Reshaped Sequence Policy Optimization), which derives a smooth two-branch kernel from an -divergence variational objective with exponential tilting for variance control. The choice gives the required positive tail, while the limit gives both required negative tails. On DAPO-MATH (Yu et al., 2025) with Qwen3-1.7B-Base and Qwen3-30B-A3B-Base, ReSPO attains a higher late-stage training score than every clipped baseline in all six model–N settings and a higher score than VESPO in five of six.
Sequence-level and off-policy optimization. Token-level importance correction is mismatched with sequence-level rewards. GSPO (Zheng et al., 2025) uses a length-normalized sequence ratio for stable MoE training, while VESPO (Shen et al., 2026) derives from a KL variational objective. Reusing rollouts across mini-batches causes off-policy drift (Noukhovitch et al., 2025), especially for MoE models (Zheng et al., 2025); Routing Replay (Ma et al., 2025) and truncated importance sampling (Liu et al., 2025) have been proposed to improve system stability. ReSPO complements these techniques by controlling how the importance weight allocates gradient across responses. We generalize VESPO's framework to the -divergence family with a sign-dependent two-branch kernel. Sec. 3.3.4 and Fig. 1 compare these kernel designs.
Trust regions and divergence measures. TRPO (Schulman et al., 2015) limits updates with a KL bound, and PPO approximates this with hard clipping. Softer options include probability smoothing (Dwyer et al., 2025) and adaptive gating (Gao et al., 2025). Rényi-divergence bounds have also been used to analyze the variance of importance-sampling estimators in policy optimization (Metelli et al., 2018). ReSPO instead uses separable power-Bregman geometry to derive a sequence-level reshaping family. Its two branches allocate gradient according to the advantage sign and the importance-weight tail behavior that matters for off-policy optimization.
3 Method
3.1 Preliminaries: Token-Level and Sequence Policy Optimization
LLM and GRPO. A large language model (LLM) parameterized by defines an autoregressive policy that generates a response for a prompt . In the RLVR setting, a deterministic scalar reward gives a sequence-level signal. GRPO samples responses from the old policy and forms the group-normalized advantage ; implementation details are given in App. C. GRPO then optimizes a token-level clipped surrogate:
(1) where is the per-token importance ratio. Because the reward is defined at the sequence level, applying a separate single-sample ratio to each token does not recover the exact sequence-level importance correction and can introduce noisy token-wise scaling as sequence length grows (Shen et al., 2026; Zheng et al., 2025). Routing fluctuations create an additional source of training–inference mismatch in MoE models, motivating stabilization techniques such as Routing Replay (Ma et al., 2025; Zheng et al., 2025). These instabilities compound as policy staleness grows.
Sequence-level ratio: GSPO. A natural fix is to work on the sequence-level importance weight , which aggregates token ratios at the same granularity as the reward. GSPO (Zheng et al., 2025) puts this view into practice with a length-normalized geometric-mean ratio and a clipped surrogate.
GSPO trains more stably than GRPO, notably without Routing Replay on MoE models (Zheng et al., 2025), so the sequence-level weight is a natural starting point for off-policy reshaping. However, hard clipping of keeps GRPO's gradient starvation inside the unclipped region. Moreover, the normalization induces length-dependent bias because it tempers the sequence importance ratio by an exponent that depends on response length (see App. A.6).
3.2 Gradient Starvation
Let in GRPO and in GSPO. We call a response positive when the estimated advantage and negative when . Inside the unclipped region, both objectives weight the gradient linearly by . For GRPO and GSPO, the gradients are
Apart from the length factor in GSPO, the gradient magnitude of either objective grows linearly with . Clipping discards large-ratio positive and small-ratio negative updates, but leaves two failures (Zhai et al., 2026):
-
Starved positive update. When and , a positive response is becoming less likely, but its recovery signal vanishes: receives less weight than .
-
Dominating negative update. When and , a negative response is becoming more likely. This side remains unclipped, so its weight grows without bound and can dominate repeated off-policy updates.
ReSPO addresses these GRPO failures by reshaping . The likelihood shift encoded by , together with the advantage sign, gives the four cases below.
How ReSPO should treat each tail. means "reinforce" and means "suppress"
| Response | : less likely now | : more likely now |
|---|---|---|
| : positive response being lost | : positive response already reinforced | |
| : negative response already suppressed | : negative response being amplified |
Therefore, ReSPO requires and .
3.3 ReSPO: Reshaped Sequence Policy Optimization
To address gradient starvation, ReSPO applies a soft kernel to the sequence-level importance weight. The derivation has three stages: (i) interpret reshaping as a change of measure; (ii) use an -divergence objective to obtain an unconstrained kernel ; and (iii) project this measure under a moment constraint, producing a smooth exponential tilt . We then choose by advantage sign so that the two branches satisfy the requirements above; App. A provides the full derivations.
3.3.1 Weight Reshaping as Measure Change
To find a that satisfies the properties stated in Sec. 3.2, we first ask what replacing the raw importance weight with a generic reshaped weight actually does to the gradient. Let denote the behavior policy from which rollouts are sampled and the current target policy, so that the sequence-level importance weight defined in Sec. 3.1 is . For the reward function , the policy gradient of is
Applying any reshaping function to implicitly defines an unnormalized measure . The measure-change identity is
where is given by
Eq. (5) fixes the notation used below: is the raw sequence ratio, is its reshaping kernel, and is an unnormalized measure. Let and . Then only is a probability distribution, and . This reframing suggests a design strategy. Rather than hand-picking as clipping does, we first solve for an unnormalized , read off through Eq. (5), and finally verify its tails against the requirements in Sec. 3.2.
3.3.2 Variational Derivation of the Reshaping Kernel
Our goal is to design a measure that balances three goals: staying close to the behavior distribution for sample efficiency, moving toward the target policy to reduce bias, and controlling variance for training stability. We begin with a brief review of the Bregman divergence.
Bregman divergence and the dual-proximity objective. Let be a strictly convex function, which we call the Bregman generator. The Bregman divergence induced by for (unnormalized) measures is
Borrowing the idea from annealed importance sampling (Neal, 2001), we formulate the dual-proximity objective for a general Bregman divergence:
where controls the trade-off. At we aim to recover the behavior policy , zero importance-weight variance but maximum bias), and at we target the current policy , unbiased but with possibly high variance). Throughout this paper, is an unnormalized measure; only denotes its normalized probability distribution. See App. A.1 for discussion.
Choice of Bregman generator. The choice of f determines the geometry of the interpolation and, with it, the form and tail behavior of the reshaping kernel.
KL divergence . This is the choice in VESPO (Shen et al., 2026). The first-order condition of Eq. (7) gives the geometric mixture , with reshaping kernel . This is also the continuous limit of the power-mean family below. After exponential tilting it provides the two vanishing tails required by the negative branch, but its value at cannot satisfy the positive branch.
-divergence . is strictly convex on for all . Solving the first-order condition gives the power-mean interpolation
and substituting together with Eq. (5) yields the corresponding unconstrained reshaping kernel
This kernel is valid for both and and satisfies by construction. The full first-order derivation is given in App. A.1 for completeness.
3.3.3 Exponential Tilt for Variance Control
The unconstrained kernel from Eq. (9) redistributes gradient weight and requires a separate variance-control step. Since , the natural second-moment target is . The final is still unknown, so we replace it inside the constraint by the fixed proxy and require . This proxy is sufficient because the resulting tilt leads to bounded , as shown in App. A.2. We additionally impose to prevent the measure from having unbounded mass.
For this projection step, we use the generalized KL divergence for unnormalized measures : . We find the closest measure to that satisfies both constraints in this KL geometry (Csiszár, 1975):
The KKT conditions for this KL projection give an exponential tilt of with sufficient statistic :
where is the Lagrange multiplier. Extracting the reshaping kernel via and using to normalize gives
The two divergences therefore play different roles: the -divergence determines the power-mean interpolation and its tails, while the KL projection turns a linear moment constraint into a smooth multiplicative tilt rather than a hard boundary (App. A.2). As , (App. A.4) and the kernel becomes . This differs from VESPO (Shen et al., 2026), whose exponential factor acts on the raw weight rather than the reshaped weight .
3.3.4 Tail Behavior and the Two-Branch Design
The kernel of Eq. (12) depends on three hyperparameters , and its tail behavior determines whether the gradient requirements of Sec. 3.2 are met. We extend the power-mean kernel continuously to by defining (App. A.4). The key observation is that no single value of satisfies both the positive- and negative-advantage requirements simultaneously.
Tail analysis. For , the tilt sends to zero whenever diverges. For , and , matching the positive-branch requirements. For , but , so extremely over-generated negative responses retain nonzero weight, and these outliers could impact the training. At the boundary , , exactly matching the negative-branch requirements. This is where the sign-specific design enters the variational construction.
The ReSPO kernel. We use a sign-dependent parameterization: for positive advantages and the limiting form for negative advantages, both with . The full ReSPO reshaping kernel is
where applies when and applies when , and
The negative branch is the limit of the same family. Both branches satisfy , and together they realize all four sign-specific tail requirements. Combining the kernel with group-normalized advantages gives the ReSPO policy gradient for a sampled batch from Eq. (4):
Here is the stop-gradient operator and is the sequence-level importance weight for response . We apply the kernel to the unnormalized ratio , because the variational derivation (Sec. 3.3.2) operates on distributions over sequences and is the natural Radon-Nikodym derivative; length normalization in GSPO would distort the geometry. The detached weight acts as a per-sequence gradient scaling coefficient in a REINFORCE-style estimator. For an on-policy update, and both branches reduce to unit weight (App. A.5). App. B gives the numerically stable log-space form, and Alg. 1 summarizes the complete update.
3.3.5 Hyperparameter Selection
The three parameters have separate roles: determines the tail regime, sets the behavior-target interpolation, and controls the exponential tilt. The tail analysis fixes by advantage sign. We set for a symmetric interpolation, then choose according to the desired local shape.
Positive branch: , , . At , the power mean reduces to the linear form . Setting gives the arithmetic mean , treating and symmetrically. We require \phi^{(+)}'(0) = 0, which gives and makes the global maximum. Although an importance weight cannot be negative, the linear closed form extends to the real line and has its unique maximum at zero (App. A.3). The resulting kernel is , which decreases strictly for and has maximum .
Negative branch: , , . The choice is made so that . With , its unconstrained kernel is the geometric mean . We choose by matching the two branches at the on-policy point: \phi^{(+)}'(1) = -\frac{1}{2}, while \phi^{(-)}'(1) = \beta^{(-)}(1 - \lambda^{(-)}). Equating the derivatives gives (App. A.3) and . Thus the branches match in value and slope at . Fig. 1 shows that the negative kernel peaks at with value and vanishes on both tails.

Tail behavior
| Method | ||
| Clipping | ||
| VESPO | ||
| ReSPO |
Figure 1: Kernel shapes and tail limits ( ). The adjacent table gives the limits as . ReSPO preserves positive-branch signal near zero while suppressing both negative tails.
4 Experiments
We evaluate ReSPO on mathematical reasoning with one dense model, Qwen3-1.7B-Base, and one mixture-of-experts (MoE) model, Qwen3-30B-A3B-Base. For each model we vary the rollout-reuse ratio to study how the methods degrade as off-policy drift grows.
4.1 Experimental Setup
Training & evaluation protocol. All experiments use ver1 (Sheng et al., 2025), asynchronous vLLM rollouts (Kwon et al., 2023), mini-batch size , rollouts per prompt, and the GRPO advantage estimator. The dense model uses FSDP with AdamW, whereas the MoE model uses Megatron with Adam; both use a learning rate of and no KL penalty. Tab. 2 lists the shared training settings. Both models are trained on DAPO-MATH-17k (Yu et al., 2025); we use a strict-box verifier as the training reward (App. D.1). The prompt limit is 1,024 tokens, and the response limits are 15,360 and 8,192 for Qwen3-1.7B and Qwen3-30B-A3B. The 30B setting adds a soft length penalty: it is zero through 4,096 tokens and decreases linearly to -1 at the 8,192-token limit, encouraging concise responses without truncating them at 4,096. We set the global batch size to NM and split each rollout batch into N consecutive mini-batches. Thus larger N reuses the same for more updates and induces more off-policy drift. We evaluate and fix every run to 1024 policy updates, corresponding to 32,768 training prompts. Our evaluation uses the full test splits of AIME 2025, AIME 2024, and AMC 2023 (OpenCompass, 2025; Maxwell-Jia, 2024; math-ai, 2023), together with OlympiadBench (He et al., 2024), MinervaMath (Lewkowycz et al., 2022), and MATH-500 (Hendrycks et al., 2021; Lightman et al., 2024). We sample with temperature 1.0, top-p = 0.7, and no top-k truncation, allowing a maximum response length of 16,384. For each problem, we generate 16 responses on AIME 2025, AIME 2024, and AMC 2023, and 4 on each remaining benchmark; each completion is scored using Math-Verify (Kydliček, 2024) (App. D.2).
Baselines, metrics, and reporting. We compare with GRPO (Shao et al., 2024), GSPO (Zheng et al., 2025), and VESPO (Shen et al., 2026) under matched data and optimizer settings. Tabs. 2 and 3 list the shared and method-specific settings, respectively. In particular, we use VESPO's published best-performing sign-specific setting, and . Tab. 1 reports per-benchmark results at . For training curves, we apply the affine transformation to the recorded DAPO-MATH score and plot it against the number of policy updates, making experiments with different N directly comparable (App. D.1). We call this quantity training accuracy for 1.7B and penalized training accuracy for 30B. We report the maximum logged score within the first 256 policy updates without an error bar and the policy-step-weighted trapezoidal mean over the last 128 policy updates with its within-run temporal standard deviation. Tab. 1 uses a cluster-bootstrap standard error over evaluation problems (App. D.3). We discuss cross-seed standard deviations in Sec. 4.3.
4.2 Training and Evaluation Performance
Fig. 2 and Tab. 1 compare optimization and generalization across both models and all three values of N. Figs. 5 and 6 additionally report evaluation accuracy, response length, approximate KL divergence, and entropy throughout training. Normalized training score and held-out pass@1 show the same broad pattern: the observed advantage of ReSPO is generally largest at N = 32.
Training performance. ReSPO improves quickly and remains higher through most of the training trajectory. It has the highest observed early peak in five of six settings; for 30B at N = 8, its peak is 1.0 pp below GRPO. For , its early-peak differences from the highest baseline are 1.0 and 3.0 pp on 1.7B and 4.2 and 5.4 pp on 30B. ReSPO also has the highest observed last-128 mean in five of six settings; on 1.7B at N = 16, it is 0.4 pp below VESPO, and each central value lies within the other's temporal range. Its late mean exceeds the highest clipped baseline in all six settings by 4.2–8.4 pp, with non-overlapping temporal ranges. At N = 32, these differences reach 7.9 pp on 1.7B and 8.4 pp on 30B. App. E.1 gives the complete model- and N-specific comparison.
Evaluation performance. At , the macro averages are similar relative to their evaluation sampling uncertainty. For , ReSPO has the highest observed mean in all four model– settings, exceeding the highest baseline by 0.8 and 1.3 pp on 1.7B and by 3.2 and 1.9 pp on 30B. ReSPO has the highest value in 9 of the 12 model–benchmark comparisons at and 8 at . The pattern is most consistent on difficult competition benchmarks, where it has the highest AIME25 and AMC23 values in every model– setting. Averaged over AIME25, AIME24, and AMC23 on 30B, its differences from the highest baseline are 6.3, 5.8, and 3.4 pp for , respectively. App. E.1 provides a detailed summary of these comparisons.
Accuracy across response lengths. Using 10 quantile-based response-length bins shared across methods and benchmarks for each N (constructed in App. E.2), accuracy decreases toward the long-response tail for all methods (Fig. 3). ReSPO has the highest pooled accuracy in 24 of the 30 bins. At N = 8, it is highest in Q1–Q3 and Q5–Q9. At N = 16, ReSPO is highest in Q1–Q6 and Q9–Q10. The lead is largest at N = 32: ReSPO exceeds the highest baseline from Q1 through Q7 by 8.4, 16.0, 24.4, 21.6, 20.8, 15.1, and 8.5 pp, respectively. The shared-bin comparison therefore shows that ReSPO's observed advantage persists within response-length ranges and is generally largest.
(a) Qwen3-1.7B

(b) Qwen3-30B-A3B
Early peak ( )
| N | GRPO | GSPO | VESPO | ReSPO |
|---|---|---|---|---|
| Qwen3-1.7B | ||||
| 8 | 0.169 | 0.158 | 0.161 | 0.192 |
| 16 | 0.156 | 0.127 | 0.151 | 0.166 |
| 32 | 0.118 | 0.106 | 0.127 | 0.157 |
| Qwen3-30B-A3B | ||||
| 8 | 0.478 | 0.416 | 0.414 | 0.468 |
| 16 | 0.403 | 0.369 | 0.386 | 0.445 |
| 32 | 0.362 | 0.341 | 0.364 | 0.418 |
Late mean (last 128 steps)
| N | GRPO | GSPO | VESPO | ReSPO |
|---|---|---|---|---|
| Qwen3-1.7B | ||||
| 8 | ||||
| 16 | ||||
| 32 | ||||
| Qwen3-30B-A3B | ||||
| 8 | ||||
| 16 | ||||
| 32 | ||||
— GRPO — GSPO … VESPO — ReSPO
Figure 2: Normalized training-score curves and summaries. Tables report the peak through step 256 and the last-128 mean. Early peaks have no error bars; late-mean subscripts are temporal standard deviations. Bold marks each row's maximum; for late means, it also marks methods whose central value and the maximum each fall within the other's range.

— GRPO — GSPO … VESPO — ReSPO
Figure 3: 1.7B accuracy across shared response-length bins. Q1–Q9 partition uncapped responses, while Q10 contains responses at the 16,384-token cap. ReSPO has the highest accuracy in 8 of 10 bins at each N.
Table 1: Final-checkpoint pass@1. Bold marks the highest mean within each model–N block.
| Model | N | Method | AIME25 | AIME24 | AMC23 | Olymp. | Minerva | MATH500 | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Qwen31.7B | 8 | GRPO | 0.042 | 0.075 | 0.353 | 0.284 | 0.286 | 0.665 | |
| GSPO | 0.062 | 0.077 | 0.402 | 0.304 | 0.272 | 0.658 | |||
| VESPO | 0.073 | 0.127 | 0.478 | 0.388 | 0.307 | 0.742 | |||
| RESPO | 0.090 | 0.133 | 0.484 | 0.368 | 0.289 | 0.726 | |||
| 16 | GRPO | 0.071 | 0.083 | 0.431 | 0.303 | 0.278 | 0.663 | ||
| GSPO | 0.046 | 0.075 | 0.419 | 0.319 | 0.283 | 0.672 | |||
| VESPO | 0.065 | 0.106 | 0.464 | 0.364 | 0.301 | 0.712 | |||
| RESPO | 0.094 | 0.123 | 0.467 | 0.358 | 0.299 | 0.717 | |||
| 32 | GRPO | 0.052 | 0.040 | 0.383 | 0.289 | 0.278 | 0.653 | ||
| GSPO | 0.046 | 0.054 | 0.381 | 0.299 | 0.299 | 0.663 | |||
| VESPO | 0.081 | 0.131 | 0.456 | 0.341 | 0.282 | 0.698 | |||
| RESPO | 0.088 | 0.117 | 0.488 | 0.367 | 0.280 | 0.729 | |||
| Qwen330B-A3B | 8 | GRPO | 0.152 | 0.248 | 0.738 | 0.511 | 0.436 | 0.852 | |
| GSPO | 0.181 | 0.267 | 0.713 | 0.521 | 0.439 | 0.861 | |||
| VESPO | 0.154 | 0.273 | 0.700 | 0.517 | 0.454 | 0.853 | |||
| RESPO | 0.252 | 0.306 | 0.791 | 0.427 | 0.411 | 0.783 | |||
| 16 | GRPO | 0.138 | 0.246 | 0.733 | 0.490 | 0.424 | 0.831 | ||
| GSPO | 0.156 | 0.265 | 0.700 | 0.493 | 0.452 | 0.848 | |||
| VESPO | 0.152 | 0.300 | 0.700 | 0.515 | 0.436 | 0.854 | |||
| RESPO | 0.213 | 0.321 | 0.792 | 0.512 | 0.457 | 0.857 | |||
| 32 | GRPO | 0.123 | 0.313 | 0.717 | 0.503 | 0.444 | 0.850 | ||
| GSPO | 0.146 | 0.231 | 0.664 | 0.475 | 0.423 | 0.835 | |||
| VESPO | 0.177 | 0.277 | 0.709 | 0.500 | 0.444 | 0.852 | |||
| RESPO | 0.202 | 0.269 | 0.795 | 0.510 | 0.451 | 0.844 |
across short and medium responses at N = 32. In App. E.2, Tab. 4 gives the token boundaries and method-specific bin counts and Fig. 4 gives the complete per-benchmark results.
4.3 Discussion
Early learning from longer positive reasoning trajectories. The complete training trajectories in App. G complement the positive-branch diagnostics in App. E.3. Particularly at N = 32, ReSPO's response length and training score begin to separate from the baselines during the same early stage of optimization (Fig. 5). To examine this initial rapid improvement, App. E.3 focuses on the first 512 policy updates and the relationship between low-W positive responses and rapid response-length growth. Because log W accumulates token-level policy drift across a response, longer responses tend to enter the low-W tail. The diagnostic shows that ReSPO retains more coefficient mass in this tail while mean positive-response length grows faster. Together, these observations indicate that ReSPO can effectively learn from longer positive reasoning trajectories during the earliest training steps, when retaining their signal is most important for rapid improvement. On 30B, this early advantage remains 4.2 and 5.4 pp over the strongest baseline at N = 16 and N = 32, respectively, despite the soft length penalty. ReSPO also remains more accurate within shared response-length ranges (Fig. 3), indicating that its advantage extends beyond the change in length distribution.
Robustness across seeds. To assess the robustness of the observed differences at N = 32, we augment each primary ReSPO run used in Fig. 2 and Tab. 1 with two additional seeds. All means and cross-seed population standard deviations below are computed over the three runs. On Qwen3-1.7B, the three runs attain a last-128 mean of 27.07%, with a standard deviation of 0.54 pp. This mean exceeds VESPO (23.00%), GRPO (19.70%), and GSPO (18.41%) by 4.07, 7.37, and 8.66 pp. On Qwen3-30B-A3B, the three runs attain a last-128 mean of 57.92%, with a standard deviation of 0.95 pp. This mean exceeds VESPO (52.30%), GRPO (50.40%), and GSPO (49.28%) by 5.62, 7.52, and 8.64 pp. On the final-checkpoint evaluations averaged over AIME25, AIME24, and AMC23, the three-run mean is 41.94% with a standard deviation of 0.47 pp, exceeding VESPO (38.77%), GRPO (38.43%), and GSPO (34.70%) by 3.17, 3.51, and 7.24 pp. Across both model scales, the standard deviations are substantially smaller than ReSPO's performance gains over every baseline.
Combination with Routing Replay. Routing Replay (Ma et al., 2025), which reuses rollout-time expert-routing decisions during optimization, is orthogonal to ReSPO's control of sequence-level importance weights. In a matched 30B model ablation at N = 16, adding R3 increases the mean penalized training accuracy over the last 128 policy steps from 56.32% to 58.16%. In this comparison, Routing Replay improves late-stage training score and smoothness; App. E.4 and Tabs. 8 report the complete comparison.
5 Conclusion
We identify a sign-dependent gradient-allocation problem in off-policy learning: clipping suppresses under-generated positive responses on the low-importance-weight tail while allowing severely over-generated negative responses to dominate on the high-weight tail. ReSPO addresses both failures with separate positive- and negative-advantage reshaping branches derived from an -divergence variational objective. The choice preserves a nonzero positive-branch limit as , while the continuous limit suppresses both negative-branch extremes.
Across Qwen3-1.7B and Qwen3-30B-A3B at , ReSPO attains the highest observed early score in five of six settings and the highest observed late score in five of six settings, with the observed differences generally largest at . Positive-branch diagnostics show that ReSPO can effectively learn from long positive reasoning trajectories during the earliest training steps, even when accumulated policy drift might put them to the low-importance-weight tail; this early advantage remains influential on 30B despite its soft length penalty. ReSPO also obtains the highest observed final-checkpoint benchmark evaluation averages at and on both model scales, and has the highest accuracy in 24 of 30 response-length bins. The MoE ablation further shows that Routing Replay complements ReSPO by improving late-stage training score and smoothness. App. F discusses the limitations in compute budget and hyperparameter search.
Reproducibility Statement
Sec. 3.3 defines the ReSPO objective, its gradient, and the analytical conditions used to select the kernel. App. A provides the full derivations, while App. B gives the numerically stable log-space implementation and complete algorithm. The accompanying code artifact contains the ReSPO implementation and launch configurations for the dense and MoE experiments. Tabs. 2 and 3 record the shared training configuration and every method-specific hyperparameter, including model backends, parallelism, optimization settings, sampling parameters, response limits, batch construction, rollout-reuse ratios, and training horizon.
Sec. 4.1 specifies the training data, model checkpoints, baseline configurations, and evaluation protocol. App. D.1 documents the DAPO-MATH reward and length penalty, and App. D.2 describes the evaluation-generation pipeline and mathematical-equivalence verifier. Tab. 1 reports every per-benchmark result used in the main comparison. App. D.3 defines the evaluation resampling procedure and its random seed; Apps. E.1, E.3, A.5, E.2, E.4, and G provide the detailed comparisons, sequence-weight diagnostics, on-policy limit, response-length analysis, Routing-Replay comparison, and auxiliary training statistics. Together, these materials specify how to reproduce the optimization method, training runs, evaluation scores, uncertainty estimates, and reported figures.
References
Mingyang Chen, Linzhuang Sun, Tianpeng Li, Haoze Sun, Yijie Zhou, Chenzheng Zhu, Haofen Wang, Jeff Z Pan, Wen Zhang, Huajun Chen, et al. ReSearch: Learning to reason with search for LLMs via reinforcement learning. arXiv preprint arXiv:2503.19470, 2025.
Imre Csiszár. I-divergence geometry of probability distributions and minimization problems. The Annals of Probability, pp. 146–158, 1975.
DeepSeek-AI, Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
Madeleine Dwyer, Adam Sobey, and Adriane Chapman. It's not you, it's clipping: A soft trust-region via probability smoothing for LLM RL, 2025. URL https://arxiv.org/abs/2509.21282.
Chang Gao, Chujie Zheng, Xiong-Hui Chen, Kai Dang, Shixuan Liu, Bowen Yu, An Yang, Shuai Bai, Jingren Zhou, and Junyang Lin. Soft adaptive policy optimization, 2025. URL https://arxiv.org/abs/2511.20347.
Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, et al. OlympiadBench: A challenging benchmark for promoting AGI with olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3828–3850, 2024.
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.
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.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611–626, 2023. doi: 10.1145/3600006.3613165. URL https://doi.org/10.1145/3600006.3613165.
Hynek Kydliček. Math-Verify: Math verification library. https://github.com/huggingface/Math-Verify, 2024. Software, accessed September 25, 2026.
Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. Solving quantitative reasoning problems with language models. Advances in Neural Information Processing Systems, 35:3843–3857, 2022.
Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In International Conference on Learning Representations, 2024.
Jiacai Liu, Yingru Li, Yuqian Fu, Jiawei Wang, Qian Liu, and Zhuo Jiang. When speed kills stability: Demystifying RL collapse from the training-inference mismatch, September 2025. URL https://richardli.xyz/rl-collapse. Web article, accessed September 25, 2026.
Wenhan Ma, Hailin Zhang, Liang Zhao, Yifan Song, Yudong Wang, Zhifang Sui, and Fuli Luo. Stabilizing MoE reinforcement learning by aligning training and inference routers. arXiv preprint arXiv:2510.11370, 2025.
math-ai. AMC 2023 dataset release. https://huggingface.co/datasets/math-ai/amc23, 2023. Competition problems originally published by the Mathematical Association of America; accessed September 25, 2026.
Maxwell-Jia. AIME 2024 dataset release. https://huggingface.co/datasets/Maxwell-Jia/AIME_2024, 2024. Competition problems originally published by the Mathematical Association of America; accessed September 25, 2026.
Alberto Maria Metelli, Matteo Papini, Francesco Faccio, and Marcello Restelli. Policy optimization via importance sampling. Advances in Neural Information Processing Systems, 31, 2018.
Radford M Neal. Annealed importance sampling. Statistics and Computing, 11(2):125–139, 2001.
Michael Noukhovitch, Shengyi Huang, Sophie Xhonneux, Arian Hosseini, Rishabh Agarwal, and Aaron Courville. Asynchronous RLHF: Faster and more efficient off-policy RL for language models. In International Conference on Learning Representations, 2025. URL https://arxiv.org/abs/2410.18252.
OpenCompass. AIME 2025 dataset release. https://huggingface.co/datasets/opencompass/AIME2025, 2025. Competition problems originally published by the Mathematical Association of America; accessed September 25, 2026.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35: 27730–27744, 2022.
John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pp. 1889–1897. PMLR, 2015.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
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. arXiv preprint arXiv:2402.03300, 2024.
Guobin Shen, Chenxiao Zhao, Xiang Cheng, Lei Huang, and Xing Yu. VESPO: Variational sequence-level soft policy optimization for stable off-policy LLM training, 2026. URL https://arxiv.org/abs/2602.10693.
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, pp. 1279–1297, 2025.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.
Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Wang Zhang, Hang Zhu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan, Mu Qiao, Yonghui Wu, and Mingxuan Wang. DAPO: An open-source LLM reinforcement learning system at scale, 2025. URL https://arxiv.org/abs/2503.14476.
Zepeng Zhai, Meilin Chen, Jiaxuan Zhao, Junlang Qian, Lei Shen, and Yuan Lu. Rewards as labels: Revisiting RLVR from a classification perspective, 2026. URL https://arxiv.org/abs/2602.05630.
Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, and Junyang Lin. Group sequence policy optimization, 2025. URL https://arxiv.org/abs/2507.18071.
A Derivations for the Reshaping Kernel
This appendix collects the derivations referenced in Sec. 3.3.
A.1 -Bregman divergence and first-order condition
For with , is strictly convex on . The induced Bregman divergence is
The objective in Eq. (7) has derivative
so setting it to zero yields . With this reads
and solving for gives the power-mean form of Eq. (8). Substituting and using (Eq. (5)) recovers the unconstrained kernel Eq. (9). The normalized distribution is obtained only afterward as .
What if we optimize over a normalized distribution? To distinguish this alternative from our unnormalized measure , let denote the optimization variable. For , imposing with multiplier gives the KKT conditions for :
which yield
including a positivity projection. Substituting and gives
This loses the ratio-only form needed for a reshaping kernel. The normalization multiplier enters as rather than as a constant, so the optimum depends on the pair instead of on alone. Depending on the multiplier and local behavior mass, the positivity projection can also set the weight to zero, reintroducing a hard boundary. Optimizing over the unnormalized measure avoids both complications and yields the smooth kernel in Eq. (9).
A.2 Positive branch: exponential tilt derivation
Given the unconstrained solution from the dual-proximity problem (Sec. 3.3.2), we impose the second-moment constraint by solving the KL projection in Eq. (10):
Taking the functional derivative of the Lagrangian gives
and hence , as stated in Eq. (11). This is the standard KL information projection under a linear constraint (Csiszár, 1975): among all measures satisfying , the one closest to in KL divergence is obtained by tilting the density with . Substituting and extracting via gives
The response-independent factor changes only the total mass and can be absorbed into the constraint constants and . Rescaling the kernel so that , using , gives Eq. (12).
Why use the proxy ? The natural variance-control target is , which controls the second-moment term in the denominator of the standard importance-weight effective sample size. Since , this is equivalent to . However, the final kernel is itself the unknown we are solving for: writing where is the tilt function, the constraint becomes , which is not linear in (since depends on through the measure-change identity). The Gibbs variational principle requires a constraint of the form for a fixed function .
We therefore replace with its known proxy (the unconstrained kernel from Step 1) and constrain . This is linear in , so the KL projection yields the clean exponential tilt . Under this proxy, we prove that the derived satisfies bounded moments. Since the tilt satisfies , we have
Thus, bounding ensures is also bounded.
Why KL and not -divergence for the projection? One might ask why we use the KL divergence in the projection step (Step 2) rather than the same -divergence used in Step 1. Replacing the KL with for and using the linear constraint , the first-order condition becomes
Extracting yields the constraint term inside the power-mean bracket:
The factor makes this expression depend on both and the behavior mass. For sufficiently small , the bracket can become negative and activate the projection; when , the subtracted term also grows faster than the first term as increases. The resulting kernel can therefore acquire a hard cutoff rather than the smooth, ratio-only decay we seek.
The key distinction is geometric. The KL first-order condition is additive in log-space ( ), so the constraint enters as a multiplicative exponential factor on . In the power-Bregman alternative above, the constraint instead enters inside the power-mean bracket, introducing behavior-mass dependence and a possible hard boundary. The two-step procedure therefore uses each divergence where it is most natural: -divergence for reshaping (power-mean interpolation between and ), and KL for variance control (multiplicative exponential tilt).
A.3 Hyperparameter derivations
Positive branch: deriving . For , differentiating gives
At , the unconstrained kernel is , so is constant. At we have , so
We additionally require the full kernel to be stationary at the origin, \phi^{(+)}'(0) = 0. Because , this is equivalent to setting the log derivative above to zero, which gives
For any , , so and : the kernel is strictly decreasing on its feasible domain . Moreover, because makes affine, the closed form has a differentiable extension to every , even though importance weights themselves satisfy . On this extension,
which is positive for , zero at , and negative for . Thus is the unique global maximizer both on the real-valued extension and on the feasible domain, with
With , this gives and .
Why is the natural choice. We seek a non-degenerate local condition at the origin: should be finite and strictly positive, so requiring \phi^{(+)}'(0) = 0 uniquely determines . For , is singular as ; for , , so stationarity of the full kernel holds for any and does not determine the tilt. At , is finite and strictly positive, and is linear in . Thus uniquely combines an affine unconstrained kernel, a non-degenerate zero-derivative condition that fixes , and the real-line maximum at shown above.
Negative branch: matching the derivative at . With and , the continuous-limit kernel is
We share across the two branches so that both unconstrained kernels interpolate symmetrically between the behavior and target policies. The remaining parameter is fixed by matching the derivatives of the full kernels at the on-policy point. For the positive branch,
and hence \phi^{(+)}'(1) = -\frac{1}{2}. For the negative branch,
Since , its derivative at is
Requiring \phi^{(-)}'(1) = \phi^{(+)}'(1) and substituting gives
Thus the positive and negative kernels have identical value and first derivative at , making their local response to off-policy drift symmetric to first order.
A.4 Continuous limit as
Taylor-expanding around gives to first order in . Substituting this expansion into the factor of Eq. (12) gives
which tends to as . The full kernel therefore reduces to , which is the form used by ReSPO's negative branch. For comparison, VESPO's gamma-IS kernel (Shen et al., 2026) is : the exponential tilt penalizes the raw importance weight rather than the reshaped weight .
A.5 On-policy limit
In the strict on-policy limit, and every sample has . Setting removes staleness from rollout reuse and approximates this condition. At , the two kernels used in our experiments satisfy
Consequently, ReSPO assigns unit reshaping weight in the exact on-policy limit: its per-sequence multiplier is one. This recovers standard on-policy training, in which no importance-ratio weighting is applied.
A.6 Length-dependent bias from sequence normalization
Shen et al. (2026) identify a length-dependent bias in the geometric-mean normalization used by GSPO. Let , let be the per-token log-ratio, and write . The exact sequence importance weight and the GSPO weight are
The exponent 1/T controls variance, but it also changes the implied measure correction with response length. For a fixed length T, weighting samples from by s induces the proposal
Thus the target-policy exponent decreases as T grows, and is increasingly tempered toward the behavior policy . In this sense, the strength of the off-policy correction depends on length rather than only on the likelihood shift between and .
The normalization also conflates sequences with different total likelihood shifts. If two responses have lengths but the same average log-ratio , GSPO assigns both the same weight, . Their true sequence weights are instead and , with
Consequently, a short response and a much longer response can receive the same GSPO weight even when their sequence-level distribution shifts differ exponentially. Clipping can further truncate these weights, but the length dependence is already introduced by the 1/T normalization.
ReSPO instead applies a fixed kernel to the unnormalized sequence weight. Like any non-identity reshaping, this intentionally trades bias for variance. The same map is used at every response length, so length enters through the actual sequence likelihood ratio W without an additional length-dependent tempering exponent.
B Log-Space Implementation of the Two-Branch Kernel
The reshaping weight is evaluated per-sequence from the sequence-level log-ratio
We clamp to before any non-linear operation and detach it from the gradient graph, since plays the role of a gradient scaling coefficient. The branch computations use numerically stable forms. The tail limits analyzed above refer to the unclamped analytical kernels; the implementation evaluates a finite-range approximation to avoid numerical overflow. We describe the two branches separately; which one applies to a given sequence is selected by the sign of .
Positive branch ( ). With , , , the kernel simplifies to
No log-space tricks are needed: for all .
Algorithm 1 ReSPO: Reshaped Sequence Policy Optimization
Require: Policy , prompts , group size
Require: , , , ,
1: for each training iteration do
2: Sample a batch of prompts; for each , sample responses
3: Compute rewards and GRPO group-normalized advantages
4: for each response do
5:
6: if then
7:
8:
9: else
10:
11:
12:
13: end if
14:
15: end for
16:
17: Update by gradient ascent using
18: end for
Negative branch (). With , the continuous-limit kernel has . We therefore compute it directly in log-space:
The full kernel adds the exponential tilt:
Combining the branches. Given the two log-space scalars, we compute on the branch selected by , detach the result, and multiply it into the token-level loss as summarized in Alg. 1. In practice we compute both branches for every sequence and select the applicable one with a sign mask, which is simpler on a GPU than using a data-dependent branch and has negligible overhead since both kernels are per sequence.
C Detailed Hyperparameters
Tab. 2 lists the training hyperparameters for both experimental settings. Tab. 3 lists the method-specific hyperparameters for each baseline and ReSPO.
Group-normalized advantages. The implementation computes GRPO advantages using the sample standard deviation with added to the denominator. When all rewards in a group are identical, the centered numerators are zero, so all advantages are zero rather than undefined.
Why this normalization? For a fixed prompt, Eq. (4) is an expectation over responses sampled from . Given such responses, its standard Monte Carlo estimator is therefore the sequence mean used in Eq. (15) and Alg. 1; the outer expectation over prompts supplies the corresponding prompt average. The factor averages sampled sequences and does not normalize the unnormalized measure or its weights, so replacing it by would instead produce a different, self-normalized estimator. In the reported experiments, we use the batch-wide token-mean normalization shown in Tab. 2 for improved training stability. Relative to the sequence mean, this applies a common batch-level scale to all response contributions and therefore preserves their relative ReSPO weights within each batch.
Table 2: Training hyperparameters across experimental settings.
| Hyperparameter | Qwen3-1.7B | Qwen3-30B-A3B |
|---|---|---|
| Model & infrastructure | ||
| Training backend | FSDP | Megatron |
| Tensor parallelism (train) | - | 2 |
| Expert parallelism (train) | - | 8 |
| Tensor parallelism (rollout) | 2 | 4 |
| Data | ||
| Training set | DAPO-MATH-17k | DAPO-MATH-17k |
| Max prompt length | 1,024 | 1,024 |
| Max response length | 15,360 | 8,192 |
| Optimization | ||
| Optimizer | AdamW | Adam |
| Learning rate | ||
| Warmup ratio | 5% | |
| Weight decay | 0.1 | |
| Gradient clip norm | 1.0 | |
| KL penalty | None | |
| Rollout | ||
| Rollout engine | vLLM (async) | |
| Responses per prompt () | 8 | |
| Temperature (train) | 1.0 | |
| Top-p (train) | 1.0 | |
| Batching & budget | ||
| Mini-batch size () | 32 | |
| Rollout-reuse ratio () | {8, 16, 32} | |
| Global batch size | ||
| Total policy updates | 1024 | |
| Advantage estimator | GRPO (group-normalized) | |
| Aggregation | token-mean | |
Table 3: Method-specific hyperparameters. All methods share the training configuration in Tab. 2.
| Method | Hyperparameter | Value |
|---|---|---|
| GRPO | Clip ratio | 0.2 |
| GSPO | Clip ratio low | |
| Clip ratio high | ||
| VESPO | 2 | |
| 3 | ||
| 3 | ||
| 2 | ||
| ReSPO | 2 | |
| 0.5 | ||
| 2 | ||
| 1 | ||
| 0.5 | ||
| 2 |
The VESPO values in Tab. 3 are the best-performing sign-specific configuration reported in the hyperparameter study of the original VESPO paper (Shen et al., 2026), and we use them directly. ReSPO uses the analytically motivated parameters derived in App. A.
D Evaluation Implementation
In this section, we describe the training reward implementation and the evaluation scoring procedure.
D.1 DAPO-MATH training reward implementation
In the reported runs, training examples carry the data-source key math_dapo, which selects the strict-box verifier rather than the Math-Verify evaluator used for Tab. 1. The relevant logic is summarized below; names are simplified for clarity.
Training-reward pseudocode
if use_strict_box_reward: strict_score = strict_box_verify(response, ground_truth) correct = (strict_score == +1) reward = +1.0 if correct else -1.0
if overlong_penalty_enabled: reward -= max(0.0, (response_length - 4096) / 4096)
The strict-box verifier returns +1 or -1 after comparing the ground truth with the final boxed answer in the response suffix. Its wrapper explicitly checks for +1 before mapping the result to the floating-point reward +1.0 or -1.0. For the reported 30B experiments, the DAPO reward manager additionally applies the configured overlong-buffer term. With max_resp_len=8,192, buffer length 4,096, and penalty factor 1, the additive penalty is for response length L. It is zero through 4,096 tokens and reaches -1 at the response limit. The dense-model experiments disable this term and use only the signed strict-box score.
Range of the penalized training accuracy. For the 1.7B experiments, the signed strict-box score is in , so the affine transformation is in . For the 30B experiments, the total score also includes the additive penalty in , so the transformed quantity can range from -0.5 to 1. We retain the name penalized training accuracy because the quantity reduces to ordinary training accuracy when the penalty is zero and uses the same affine scale; a negative value denotes an incorrect overlong response with an additional length penalty, not a negative probability.
D.2 Math-Verify scoring implementation
The evaluator tags all six benchmarks as MATH-lighteval, which the verl score dispatcher routes to Math-Verify rather than the DAPO strict-box verifier. The evaluation logic is summarized as follows.
Evaluation-scoring pseudocode
gold = parse_latex(box(ground_truth)) predictions = parse(completion, modes=[expression, latex]) correct = any( mathematically_equivalent(g, p) for g in gold for p in predictions ) score = 1.0 if correct else 0.0
Parsing the completion in both modes lets the verifier accept free-form final answers in addition to strict \boxed{} answers. If either side cannot be parsed, no pair is mathematically equivalent, or the scoring worker exceeds its 30-second timeout, the completion receives zero credit. The pass@1 reported in Tab. 1 is the mean of this binary correctness indicator over samples and problems. The auxiliary majority-vote metric separately uses the DAPO boxed-answer utilities.
D.3 Bootstrap evaluation uncertainty
The error bars in Tab. 1 use a cluster bootstrap over evaluation problems, using replicates with random seed 0. For problem in benchmark , let denote the correctness of sampled completion k. We first average the completions for that problem,
where is the number of problems in benchmark j: 30 each for AIME25 and AIME24, 40 for AMC23, 674 for OlympiadBench, 272 for MinervaMath, and 500 for MATH-500. The reported macro average assigns equal weight to each benchmark.
For bootstrap replicate , we independently draw problem indices with replacement within each benchmark, keeping all completions for a sampled problem together. If these indices are , we recompute
The subscripted error bar is the bootstrap standard error,
so an entry reports one bootstrap standard error. For method contrasts, the same resampled problem indices are applied to both methods before taking the difference, giving a paired cluster bootstrap; percentile quantiles of that difference distribution form a confidence interval. These calculations quantify finite-evaluation sampling uncertainty conditional on the fixed final checkpoint and its stored generations.
E Additional Robustness Checks
E.1 Detailed training and evaluation comparisons
Within the first 256 policy updates, ReSPO has the highest peak normalized training score in five of six model–N settings. The exception is 30B at N = 8, where GRPO is higher by 1.0 pp. ReSPO's differences from the next-highest method are 2.3, 1.0, and 3.0 pp on 1.7B for , respectively, and 4.2 and 5.4 pp on 30B at N = 16, 32. Its curves remain above the baselines through most of the subsequent trajectory.
Over the last 128 policy steps, ReSPO has the highest mean in five of six settings; on 1.7B at N = 16, it is 0.4 pp below VESPO, and each central value lies within the other's temporal standard-deviation range. It exceeds the highest clipped baseline in all six settings by 4.2–8.4 pp, with non-overlapping temporal ranges. From N = 8 to N = 32, its mean decreases by 1.0 pp on 1.7B and 0.7 pp on 30B, compared with 2.5 and 4.5 pp for GSPO and 4.5 and 1.5 pp for VESPO. At N = 32, ReSPO exceeds the highest clipped baseline by 7.9 and 8.4 pp, and VESPO by 4.6 and 6.5 pp. Across the early and late summaries, ReSPO is highest in 10 of 12 settings. It is 1.0 pp below the early maximum on 30B at N = 8 and 0.4 pp below the late maximum on 1.7B at N = 16, where the temporal ranges overlap.
At , the evaluation macro averages are similar relative to their bootstrap uncertainty: ReSPO is 0.5 pp below VESPO on 1.7B and 0.2 pp below GSPO on 30B. For , ReSPO has the highest observed mean in all four model– settings, exceeding the highest baseline by 0.8 and 1.3 pp on 1.7B and by 3.2 and 1.9 pp on 30B. It has the highest value in 6, 9, and 8 of the 12 model–benchmark pairs for , respectively.
The largest observed differences occur on difficult competition benchmarks. On AIME25, ReSPO exceeds the highest baseline in all six model–N settings by 1.7, 2.3, and 0.7 pp on 1.7B and by 7.1, 5.7, and 2.5 pp on 30B as N increases. It also has the highest AMC23 value in all six settings and the highest AIME24 value in four of six. Averaged over these three benchmarks on 30B, its differences from the highest baseline are 6.3, 5.8, and 3.4 pp for , respectively. At N = 8, the other three benchmarks offset this difference in the macro average; at larger N, ReSPO also attains the highest observed overall mean.
E.2 Accuracy across response-length ranges
We analyze the stored Qwen3-1.7B evaluation generations underlying Tab. 1 for all four methods, all six benchmarks, and . Each method contributes 7,384 responses per value of , and response length is the number of Qwen3-1.7B tokenizer tokens in the generated text. For each value of , we pool the observed lengths to construct one set of boundaries shared by every method and benchmark. The generation cap produces a point mass at 16,384 tokens, so Q10 contains exactly the capped responses; Q1–Q9 divide the uncapped pooled responses into nine equal-frequency intervals. This tie-preserving construction keeps identical capped lengths in the same bin. Accuracy within a bin is the fraction of its responses accepted by the evaluation verifier.
Tab. 4 reports the resulting token upper bounds and the pooled number of responses from each method in every bin. These counts expose the method-dependent response-length distributions used to compute the pooled accuracies below.
Table 4: Shared response-length-bin upper bounds (tokens) and pooled response counts for Qwen3-1.7B. Counts aggregate the six evaluation benchmarks; each method contributes 7,384 responses for each . Q10 contains responses at the 16,384-token cap.
| N | Entry | Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7 | Q8 | Q9 | Q10 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 8 | Upper bound | 355 | 480 | 611 | 761 | 954 | 1,263 | 2,009 | 4,404 | 16,383 | 16,384 |
| GRPO count | 1,043 | 908 | 820 | 855 | 816 | 809 | 573 | 163 | 102 | 1,295 | |
| GSPO count | 1,253 | 1,087 | 1,131 | 1,074 | 917 | 775 | 420 | 79 | 46 | 602 | |
| VESPO count | 386 | 466 | 456 | 475 | 539 | 671 | 1,037 | 1,504 | 1,376 | 474 | |
| ReSPO count | 207 | 429 | 482 | 482 | 605 | 630 | 856 | 1,140 | 1,360 | 1,193 | |
| 16 | Upper bound | 366 | 481 | 604 | 736 | 907 | 1,168 | 1,785 | 4,252 | 16,383 | 16,384 |
| GRPO count | 997 | 989 | 1,009 | 1,009 | 916 | 797 | 601 | 136 | 71 | 859 | |
| GSPO count | 873 | 869 | 857 | 952 | 883 | 873 | 734 | 247 | 64 | 1,032 | |
| VESPO count | 438 | 470 | 481 | 445 | 527 | 618 | 822 | 1,139 | 841 | 1,603 | |
| ReSPO count | 506 | 483 | 450 | 405 | 472 | 506 | 640 | 1,281 | 1,827 | 814 | |
| 32 | Upper bound | 371 | 483 | 596 | 711 | 856 | 1,057 | 1,421 | 2,732 | 16,383 | 16,384 |
| GRPO count | 1,172 | 1,013 | 1,000 | 906 | 849 | 698 | 542 | 289 | 109 | 806 | |
| GSPO count | 949 | 908 | 874 | 905 | 831 | 832 | 730 | 386 | 81 | 888 | |
| VESPO count | 516 | 556 | 555 | 605 | 693 | 762 | 795 | 973 | 975 | 954 | |
| ReSPO count | 255 | 394 | 453 | 469 | 499 | 589 | 805 | 1,230 | 1,714 | 976 |
Fig. 4(a) shows the pooled curves. Accuracy generally decreases toward the long tail, and the ReSPO curve decreases monotonically for all three values of . ReSPO has the highest accuracy in eight of ten bins at each . Its separation is widest at : the differences from the highest baseline are 8.4, 16.0, 24.4, 21.6, 20.8, 15.1, and 8.5 pp from Q1 through Q7. VESPO is higher in Q8 and Q9 by 2.9 and 1.2 pp, while ReSPO is higher in the cap bin by 1.5 pp. At and , the two reshaped methods are closer, but ReSPO still has the highest accuracy in most short, medium, and uncapped long-response bins.
Fig. 4(b,c) separates the six benchmarks. The middle-length advantage at appears broadly on AMC 2023, OlympiadBench, and MATH-500. The AIME panels have fewer observations and lower base accuracy, producing more irregular bin-level curves. Across benchmarks, capped responses are generally among the least accurate groups.
E.3 Positive-response weight and length dynamics
Sec. 4.3 suggests that ReSPO learns earlier from longer positive responses. To isolate this initial rapid-improvement phase, the diagnostic runs cover the first 16 rollout batches, or 512 of the 1024 policy updates used in the complete experiments. Within this window, we ask two questions: when a positive response moves into the low-W tail, how much learning coefficient does it retain, and how does this allocation evolve with response length? Since , means that the response has become less likely under the updated policy. For , this is precisely a response whose probability the update should increase.
We measure directly in matched Qwen3-1.7B-Base runs at with a 16,384-token response limit. ReSPO and VESPO use the same DAPO-MATH data, optimizer settings, GRPO advantages,
(a) Pooled benchmarks

GRPO GSPO VESPO ReSPO
(b) AIME 2025, AIME 2024, and AMC 2023

(c) OlympiadBench, MinervaMath, and MATH-500

Figure 4: Qwen3-1.7B accuracy by shared response-length bin. Q1–Q9 partition uncapped responses using boundaries shared across methods, while Q10 contains responses at the 16,384-token cap. Columns correspond to ; gaps in the benchmark panels indicate empty method–benchmark bins.
and token-mean aggregation. Each run uses this first-half diagnostic window. For every sequence, we record its advantage sign and in fixed bins. Because this sum accumulates policy drift token by token, longer responses provide more opportunities for negative drift to build up and therefore tend to occur in the low- tail. For a positive-branch bin , we report
Here, is the fraction of positive responses in the bin, whereas is the fraction of the total positive-branch loss coefficient assigned to that bin. Their ratio is the amplification: a value above 1 means that each response in the bin receives more coefficient mass than the positive-branch average, while a value below 1 indicates suppression. The diagnostic logs each numerator and denominator under the same distributed reduction, so these ratios remain directly comparable.
Table 5: Positive-branch deep-tail allocation on Qwen3-1.7B-Base at . Values are means over rollout batches 9–16; amplification is the coefficient-mass share divided by the sequence share.
| Statistic | ReSPO | VESPO |
|---|---|---|
| Positive responses with | 22.8% | 16.7% |
| Coefficient mass on | 38.5% | 15.5% |
| Amplification on | 1.69× | 0.93× |
| Positive responses in | 7.4% | 3.7% |
| Coefficient mass in | 14.8% | 1.1% |
| Amplification in | 2.00× | 0.30× |
The distinction between response share and coefficient-mass share isolates where the methods differ. In , ReSPO observes of its positive responses but assigns them of its positive-branch coefficient mass, giving amplification. VESPO observes a similar response share but assigns the region only of its mass. The contrast sharpens in : ReSPO amplifies the bin to its response share, whereas VESPO suppresses it to . At the final rollout batch, ReSPO places of its positive-branch mass in ; VESPO instead places its largest share, , in the region immediately below .
Table 6: Mean log W and response length on the positive branch during the N = 32 diagnostic runs.
| Batch | Mean log W | Mean response length | ||
|---|---|---|---|---|
| ReSPO | VESPO | ReSPO | VESPO | |
| 1 | -0.021 | +0.134 | 752 | 829 |
| 8 | -0.188 | -0.064 | 829 | 843 |
| 16 | -0.385 | -0.064 | 1076 | 915 |
The weight and length statistics evolve together. By batch 16, mean log W reaches -0.385 for ReSPO and -0.064 for VESPO, corresponding to geometric-mean weights of approximately 0.68 and 0.94. Over the same interval, mean positive-response length grows from 752 to 1076 under ReSPO (43%) and from 829 to 915 under VESPO (10%). Thus, the faster growth of ReSPO's positive responses coincides with their movement farther into the low-W region where ReSPO retains more coefficient mass. In the complete 1024-update trajectories, ReSPO's aggregate response length and training score also separate from the baselines during the early stage of optimization and continue to diverge at N = 32 (Fig. 5). The two views together are consistent with ReSPO learning earlier from longer positive responses: this diagnostic identifies the retained learning coefficient, while App. G shows the corresponding full-training trajectory.
To test the length–weight relationship directly, we also record positive-response length within each bin over all 16 rollout batches. Tab. 7 reports pooled, count-weighted mean lengths and normalizes each value by the corresponding method's positive-branch mean over the same window. For , positive responses average 1276 tokens under ReSPO and 936 under VESPO, or and their branch-wide means, respectively. These pooled regions contain 7163 and 4918 positive responses. Responses immediately below are shorter, so the relation turns upward in the deep low- tail rather than changing monotonically. Individual extreme-bin means are descriptive because those bins are sparse. Combined with Tab. 5, the pooled result shows that the kernels differ in how much learning-coefficient mass they retain on these longer positive responses.
Table 7: Count-weighted positive-response length by sequence-weight bin over rollout batches 1–16 of the matched Qwen3-1.7B-Base follow-up runs at and a 16,384-token response limit. Parentheses give length relative to the corresponding method's positive-branch mean over the same window; is the positive-response count and “-” denotes an empty bin.
| log W bin | W range | ReSPO | VESPO | ||
|---|---|---|---|---|---|
| Length | n | Length | n | ||
| (-∞,-20] | (0,2.1×10-9] | 2155 (1.90×) | 9 | - | 0 |
| (-20,-10] | 2.1×10-9-4.5×10-5 | 2208 (1.95×) | 52 | - | 0 |
| (-10,-5] | 4.5×10-5-0.007 | 2227 (1.97×) | 240 | 5593 (6.35×) | 8 |
| (-5,-2] | 0.007-0.14 | 1501 (1.32×) | 1687 | 1085 (1.23×) | 592 |
| (-2,-1] | 0.14-0.37 | 1199 (1.06×) | 2753 | 957 (1.09×) | 2071 |
| (-1,-0.5] | 0.37-0.61 | 1090 (0.96×) | 2422 | 861 (0.98×) | 2247 |
| (-0.5,0] | 0.61-1 | 885 (0.78×) | 3867 | 759 (0.86×) | 3862 |
| (0,0.5] | 1-1.65 | 994 (0.88×) | 2877 | 840 (0.95×) | 3090 |
| (0.5,1] | 1.65-2.7 | 1042 (0.92×) | 2036 | 878 (1.00×) | 2060 |
| (1,2] | 2.7-7.4 | 1202 (1.06×) | 1794 | 981 (1.11×) | 1717 |
| (2,5] | 7.4-148 | 1835 (1.62×) | 535 | 1259 (1.43×) | 364 |
| (5,10] | 148-2.2×104 | 4985 (4.40×) | 6 | 13430 (15.26×) | 1 |
| (10,20] | 2.2×104-4.9×108 | - | 0 | - | 0 |
| (20,∞) | >4.9×108 | - | 0 | - | 0 |
| Positive-branch mean | - | 1133 | 18,278 | 880 | 16,012 |
The allocation follows directly from the positive-branch kernels. ReSPO uses
which approaches as and remains 1.348 at . VESPO uses , which vanishes as and falls to 0.245 at and 0.006 at . At the same low value of , ReSPO therefore retains a near-maximal coefficient on a positive response, whereas VESPO progressively removes its contribution. This kernel difference explains the coefficient-mass allocation in Tab. 5.
E.4 MoE training and Routing Replay
Both Qwen3-30B-A3B ReSPO runs at reach the full budget of 1024 policy updates. The Routing-Replay ablation adds R3 while matching the model, data, optimization, response cap, batch sizes, and update budget. Both use the current ReSPO parameters , , and .
Tab. 8 uses the same reporting protocol as Fig. 2. “Early peak” is the maximum through policy step 256; late metrics are policy-step-weighted trapezoidal means over [896, 1024]; and “final” is the value at step 1024. The score is (critic/score/mean + 1)/2. Because the 30B reward includes the soft overlong penalty described in App. D.1, this is a penalized training accuracy. The subscript on the late score denotes its within-run temporal standard deviation.
R3 leaves the early peak essentially unchanged but raises the late score by 1.84 pp and reduces its temporal standard deviation from 2.11 to 0.75 pp. It also substantially shortens responses and nearly eliminates response-cap hits in this window. Approximate KL rises slightly. In this matched run, R3 combines with ReSPO, raising the late-stage score and reducing its temporal variation.
Table 8: Matched Qwen3-30B-A3B ReSPO training diagnostics at , with and without R3 Routing Replay. All columns except the early peak and final score are time-weighted means over policy steps [896, 1024].
| Setting | Early peak | Late score | Final score |
|---|---|---|---|
| ReSPO | 0.445 | 0.555 | |
| ReSPO + R3 | 0.446 | 0.584 |
| Setting | Resp. len. | Cap-hit rate | Approx. KL | Entropy | Grad. norm |
|---|---|---|---|---|---|
| ReSPO | 1992 | 3.505% | 0.128 | 1.13 | |
| ReSPO + R3 | 1213 | 0.011% | 0.114 | 1.21 |
F Limitations
Compute resource limitation. Our compute budget does not support a longer Qwen3-30B-A3B study with a longer training response limit and additional policy updates. The reported 30B experiments instead use an 8,192-token limit with the soft length penalty described in Sec. 4.1. Under our current training setup, extending both the context length and training horizon could require several weeks on GPUs. Owing to the same compute constraints, we run multiple ReSPO seeds only for , where the separation from the baselines is largest and robustness is most important to verify.
Hyperparameter optimality. The ReSPO hyperparameters are selected primarily based on the analytical tail requirements and derivative matching at . This study does not exhaustively search over , , and ; other choices may further improve particular model scales, reuse ratios, or response-length regimes. However, we want to emphasize that without extensive hyperparameter tuning, matching the tail requirements only is enough to find a good algorithm.
G Detailed Training Statistics and Reproducibility
Fig. 2 uses the recorded critic/score/mean history. Each rollout batch supplies policy updates, so the horizontal coordinate is training/global_step . The plotting script truncates every curve at 1024 policy updates, applies to the signed DAPO-MATH score, and validates the response cap and ReSPO negative-branch parameters. The early statistic is the maximum logged value through step 256 and is reported without an error bar. For the late statistic, we linearly interpolate the curve over [896, 1024] and integrate its first and second moments to obtain the time-weighted mean and standard deviation. Figs. 5 and 6 use the same experiments and additionally report AIME25 evaluation accuracy, response length, approximate KL divergence, and entropy. For 1.7B at , App. E.3 resolves the aggregate response-length separation into positive-branch importance-weight and coefficient-mass statistics. The KL panel uses actor/ppo_kl for GRPO/GSPO and actor/approx_kl for VESPO/ReSPO.

Figure 5: Detailed training statistics for Qwen3-1.7B-Base on DAPO-MATH. Rows correspond to . Training accuracy is (critic/score/mean + 1)/2, and the evaluation panel reports AIME25 best@4 accuracy.

Figure 6: Detailed training statistics for Qwen3-30B-A3B-Base on DAPO-MATH. The training panel reports penalized training accuracy, and the evaluation panel reports AIME25 best@2 accuracy, the largest common best-of-k metric available for all four methods; the other panels follow Fig. 5.