| Sampling | |
|---|---|
| question (the prompt) | |
| -th answer sampled for , | |
| -th token of ; the tokens before it | |
| answers sampled per question | |
| length of in tokens; an episode's length in Siboni's rule | |
| policy being trained | |
| policy that sampled the answers | |
| probability of given and | |
| optimizer updates per batch of answers (VESPO, ReSPO) | |
| a minibatch of answers, its size | |
| Rewards, ratios and weights | |
| reward of , 1 if correct, else 0 | |
| group-relative advantage of | |
| token ratio | |
| sequence weight | |
| prefix ratio | |
| variance of one token's log-ratio | |
| effective sample size of weights | |
| ESS ratio , in | |
| Methods | |
| VCPO's base learning rate and its scaled rate | |
| ESS ratio on one on-policy step (VCPO) | |
| VCPO's variance-minimizing baseline | |
| tempering exponent on (TETPO) or on (Siboni) | |
| TETPO's chosen exponent, the largest meeting the ESS target | |
| stop-gradient | |
| kernel that replaces in the gradient | |
| ReSPO's kernels for and | |
| , one-sample KL estimate | |
| tokens a clip could act on (M2PO) | |
| mean of over | |
| Constants | |
| VESPO's kernel constants: for , for | |
| TETPO's target ESS fraction, 0.85 | |
| M2PO's threshold on the mean squared log-ratio, 0.04 | |
| 8 | VCPO's cap on in the update |
| Paper symbols | |
| what VESPO and ReSPO, VCPO, and TETPO write for | |
| what most of the papers write for | |
| what VESPO and ReSPO write for | |
| what VCPO and P3O write for | |
| what Siboni writes for and | |
| what ReSPO writes for VESPO's | |
Context. In RL with verifiable rewardsreinforcement learning in which a program checks each answer and returns the reward, here 1 for a correct final answer and 0 otherwise. Reading note: GRPO and DeepSeek-R1, the trainer usually updates on answers older than the current policy. Batches are split into minibatches and reused across several updates, and asynchronous pipelines keep generating while the trainer steps. Even with identical weights, the inference engine computes slightly different token probabilities from the trainer. Standard methods avoid weighting an answer by its full probability ratio. GRPOgroup relative policy optimization: PPO without a value model, in which every token of an answer gets the answer's reward minus its group's mean reward, divided by the group's standard deviation, as advantage, and each token's ratio is clipped to a band around 1. Reading note: GRPO and DeepSeek-R1 weights and clips each token by its own ratio, and GSPOgroup sequence policy optimization: one ratio per answer, the geometric mean of its token ratios, clipped to a band of order around 1. Reading note: Group Sequence Policy Optimization uses the geometric mean of an answer's token ratios. μ-GRPOGRPO run at about a thousand updates per batch of answers, with the clip band widened to and with below-average answers dropped once one of their tokens has a ratio under . Reading note: μ-GRPO drops below-average answers once any token's ratio falls near zero. Two companion notes examine per-token clipping in detail. The trust-region geometryhow the shape of a per-token clip bounds each update. Reading note: Trust regions in LLM reinforcement learning note examines how a per-token clip should be shaped, and the token frequencyhow often the sampler produces a token, and what that does to its clipped updates. Reading note: Popular and rare tokens note tracks which tokens a clip starves as data age.
Importance sampling corrects for stale answers exactly when each answer carries its full probability ratio between the current policy and the sampler. That full-answer weight is unbiased, but its variance breaks training. Because the weight multiplies ratios across an answer's tokens, often thousands of them, its spread grows with length until a few answers carry nearly all of the batch's weight. Huang et al. (2026) find that even with each weight capped, the batch's effective sample size collapses near zero before KL spikes and accuracy falls. Whatever off-policy rule a run uses, the ESS ratio of the sequence weights (the effective sample size as a fraction of the batch) is worth logging at every step. Computing it takes one reduction over ratios the loss already computes, and in every collapse Huang et al. report it fell before both KL divergence and reward.
The methods reported as stable keep the sequence or prefix weight, or in P3O and M2PO each token's own ratio, and budget its spread. They intervene in four places. Huang et al.'s VCPO keeps capped weights in the update and scales the learning rate by the square root of the ESS ratio, matching synchronous training on fresh data. Three methods reshape sequence weights directly. TETPO (Hamidi et al., 2026) tempers them to a target effective sample size, while VESPO (Shen et al., 2026) and ReSPO (Chen et al., 2026) pass them through bounded kernels. Siboni (2026) instead tempers the prefix weight that PPO-style losses omit. At the token level, P3O (Fakoor et al., 2026) caps each token's ratio at the token ESS ratio, and M2PO (Zheng et al., 2026) masks the most extreme tokens.
Setting. For a question , the sampling policy the policy that generated the answers being trained on, or in an asynchronous pipeline the version that generated each answer (the papers write , or ) draws the number of answers sampled per question, 8 in most of these papers answers , while is the policy being trained. Write for token of , for its length, for its reward, and the group-relative advantage of : its reward minus the mean reward of the question's answers, divided by their standard deviation in ReSPO, M2PO and P3O (VESPO and TETPO only subtract the mean, VCPO subtracts its own baseline , and Siboni the mean over the batch) for its advantage. Let , the probability ratio of token of , computed from the log-probabilities recorded at sampling time be the probability ratio of token given and the preceding tokens . The sequence weight, the importance weight of the whole answer (VESPO and ReSPO write , VCPO , TETPO ) of is the product of its token ratios,Because the reward belongs to the whole answer, weighting each answer's reward and log-probability gradient by recovers the exact gradient of expected reward under from stale samples:Because the score has zero expectation under , subtracting any baseline independent of keeps the gradient exact, and the papers replace by . VESPO and ReSPO reuse each batch for the number of optimizer updates made on one batch of sampled answers, one per minibatch; the last minibatch is updates stale (VESPO and ReSPO write ). Reading note: μ-GRPO updates. VCPO and TETPO instead run asynchronous pipelines where each answer carries a policy lagthe number of optimizer updates between the policy that sampled an answer and the policy being trained on it; pipelines bound it by a maximum, and an answer generated across a weight update can span several versions, the number of updates since it was generated.
Small drifts per token compound rapidly because sums token log-ratios. For weights , the effective sample sizefor weights , , between 1 and ; it equals when all weights are equal and is near 1 when one weight dominates measures how strongly a few large weights dominate. Its normalized form, the ESS ratio , in ; which weights it is computed over (sequence weights of a batch, of a group, or token ratios) depends on the method (VCPO writes , P3O ), lies in . VCPO notes that a weighted average gradient has roughly the variance of an unweighted average over answers, so a batch with small behaves like a far smaller batch. A short calculation (computed here) shows how fast decays with length. Let the variance of a single token's log-ratio under , a measure of how far the two policies have drifted per token be the variance of one token's log-ratio and approximate as Gaussian with variance . For a lognormal weight with ,With over 4,000 tokens, , so a batch of 512 answers counts as about 9. Capping or masking weights above a threshold bounds this spread at the cost of bias.
Capping weights alone delays collapse without preventing it. Huang et al. train Qwen2.5-7B Base on MATH in PipelineRLan asynchronous training setup in which the sampler keeps generating while the trainer updates, with weights loaded into generations in flight, so one answer can span several policy versions; a maximum lag bounds how old the data may be (Piché et al., 2025) with policy lag up to 10 updates. They weight each answer by , the truncated importance samplingweighting each answer by , its sequence weight capped at a constant ; the cap bounds the variance and biases the gradient against answers whose weight exceeds it rule that survived longest across the caps and masks they swept. Read off the paper's figure, the sequence-weight ESS ratio still drops from about 0.5 to near zero by step 100 and stays there. On the same curves, the sampler-learner KL divergence then spikes near step 160. Accuracy on MATH-500500 problems from the test split of the MATH dataset of competition mathematics, scored by exact match of the final answer hovers near 70% until then and falls to near zero by step 250.
VCPO treats a batch with concentrated weights as a smaller batch and shrinks its step accordingly. Replacing nominal batch size with effective sample size in the square-root scaling rule for Adam-style optimizers givesHere the base learning rate, with AdamW in VCPO's runs is the base learning rate, comes from the minibatch's uncapped sequence weights, and the ESS ratio measured on one on-policy step, a constant per task: 1.0 on VCPO's math tasks and 0.55 on its tool-use task, where even fresh data have unequal weights from the sampler-trainer mismatch is the ESS ratio on an on-policy step. When inference and training engines mismatch, can lie below 1. The update itself keeps the capped weight . To lower variance further, VCPO replaces the group mean with an optimal baseline. Write , the gradient of the log-probability of the whole answer , the sum of its tokens' log-probability gradients. The constant that minimizes the variance of is . VCPO's baseline estimates that ratio from minibatch sums over , so answers that are both upweighted and high-gradient dominate it. Computing per-answer gradient norms takes one backward pass with two gradient buffers, adding 19% to step time and 14% to memory on Qwen2.5-7B.
In the same setup where capped weights collapse, VCPO matches synchronous training on fresh data with less compute. On MATH it reaches 71.6% on MATH-500 against 72.0% for synchronous training, using 92.8 GPU hours against 134.4. On a multi-turn tool-use task with answers up to 12,288 tokens and lag up to 2, VCPO scores 27.8% on AIME 2025 against 26.7% for synchronous training. That gap is smaller than one problem of the 30-problem exam, and the run takes 168.9 GPU hours against 420.2 while the capped-weight run collapses again.
TETPO budgets spread within each question's group by raising every weight to the largest power that keeps the group's ESS above a target. It replaces by , divides by the group mean of so the weights average to 1, and picksHere is computed over the group's , with TETPO's target ESS fraction, 0.85 in its experiments: a group is tempered until its effective sample size is at least . At these are the group's self-normalized importance weights. At every weight is 1, giving a GRPO-style update on stale answers. Because and never increases with , sits where falls to , and groups already meeting the target keep . Raising to is exact importance sampling toward a geometric bridgethe policy proportional to , normalized per question; it is at and at , and divided by its mean under is its exact importance weight proportional to , trading bias toward for bounded spread. On Qwen3-1.7B-Base with each answer's lag drawn uniformly from 1 to 32 updates, TETPO averages 44.4% over five math benchmarks against 42.3% for M2PO, the best baseline. Across three seeds, their standard deviations are 0.4 and 0.5.
P3O works at the token level. It computes the ESS ratio of a micro-batch's token ratios and uses that single number both to cap every token's ratio and to weight a KL penalty. With stop-gradient: has the value of and passes no gradient holding a factor fixed during differentiation, each token's loss isThe next-token KL at that position is estimated at the sampled token by . Because , every token's weight is at most 1 and never zero. When all ratios equal 1, , the KL penalty vanishes, and the gradient matches GRPO. As ratios spread, the cap and penalty tighten together. P3O's clearest test isolates engine mismatch with no staleness by training Qwen3-8B-Base in BF16 on FP8 rolloutsanswers generated by a copy of the model quantized to 8-bit floating point for speed, while the trainer computes in BF16, so every sampled token's probability differs between the two. At iteration 30, pass@1 on AMC 2024 reaches 0.529 for P3O against 0.029 for GRPO, which has dropped below the untrained model's 0.228.
VESPO passes the sequence weight through a smooth bounded kernel that fades answers the policy has moved far from. Shen et al. replace in the gradient by the kernel a function that replaces the sequence weight in the gradient: the update is with held fixed in the gradient; is plain importance samplingheld fixed in the gradient, with no length normalization and no clip. At the kernel equals 1. The power VESPO's exponent on , which fades answers whose probability has fallen (): 2 for , 3 for fades answers whose probability has fallen (), while the exponential with rate VESPO's rate in , which fades answers whose probability has risen (): 3 for , 2 for fades those whose probability has risen (). This shape solves a variational problem. Choosing a proposal close to in KL divergence and tilted toward , subject to a bound on , gives . Its ratio to is up to a constant. The constants depend on advantage sign and are reused unchanged across three models and a code task. For , peaks at 1.21 when , and for , peaks at 1.24 when . On the mixture-of-expertsa model whose layers send each token to a few of many expert subnetworks; Qwen3-30B-A3B has 30B parameters, about 3B active per token model Qwen3-30B-A3B-Base at , VESPO averages 61.8% over four math benchmarks against 48.6% for GRPO, the better of its two baselines. Using for both signs fades below-average answers less as their probability drops and destabilizes training. Dividing by , as GSPO does, causes collapse near step 350.
Rewriting VESPO's kernels in terms of a one-sample KL estimate makes the sign-specific constants transparent (computed here, not in the papers). Define , never negative and zero only at ; over answers drawn from its mean is , so it is a one-sample estimate of that KL divergence (often called k3), which is nonnegative and has mean under because . For any ,A symmetric kernel with therefore down-weights each answer exponentially in its KL estimate at rate . Both tuned kernels share . The positive-advantage kernel multiplies by to fade answers the policy has already raised, while the negative-advantage kernel multiplies by to fade answers the policy has already pushed down.
ReSPO keeps the fade for below-average answers and reverses it for above-average ones. Chen et al. argue that a correct answer whose probability has fallen (, near 0) is the one most worth pushing back up, and that VESPO's factor starves it. Solving a variant of VESPO's variational problem with a different divergence yieldsFor , peaks at with value and decreases for . For , vanishes at both ends and peaks at with the same value. Both equal 1 with slope at . The two papers therefore agree on below-average answers, fading them at both ends. They disagree on correct answers the policy has moved away from. VESPO fades those answers like , whereas ReSPO gives them its largest weight. On Qwen3-1.7B-Base and Qwen3-30B-A3B-Base with , and 32, ReSPO beats VESPO in five of six settings on mean training score over the last 128 updates. On held-out benchmarks, however, every gap between them is smaller than twice the reported standard error.
M2PO drops clipping and masks only the most extreme token ratios. On answers at least 256 updates stale, Zheng et al. find that GRPO's clip slows learning as more tokens drift outside the band. Removing the clip speeds up early learning, but training then collapses. M2PO tracks the policy gap with the mean squared token log-ratio over the clip-eligible set the tokens a PPO clip could act on: those with and , or and ; masking removes tokens from this set, holding tokens with and , or and :Because every term is nonnegative, ratios above and below 1 both contribute. By contrast, the mean of , a one-sample KL estimate, lets opposite moves cancel. M2PO greedily removes the token with the largest from until the mean over the remaining tokens is at most M2PO's threshold on the mean squared log-ratio of the remaining tokens, the same value in every experiment of the paper, and weights surviving tokens by their plain ratio . At that fixed lag, M2PO comes within half a point of on-policy GRPO on Qwen2.5-Math-7B and beats it on the other five models (1.7B to 32B), masking just 0.06% of tokens on Qwen2.5-32B. Later papers found that M2PO fails under mixed lag. In VCPO's GSM8K runs the masked fraction turned erratic and could reach nearly all tokens, and in TETPO's runs accuracy peaked and then declined.
PPO and GRPO weight token by alone, leaving out how much the policy shift changed the probability of reaching the prefix . Siboni shows that when every state has a unique history, as in autoregressive generation, that omitted state-visitation ratio equals the prefix ratio, how much more or less likely the current policy is to produce the first tokens of (Siboni writes ) exactly on every sampled answer. In a general process, that product is only an unbiased estimator. Because , the exact per-token weight inherits the sequence weight's spread. Siboni therefore tempers it torecovering PPO at and the exact correction at . The exponent follows the heuristic rule , where is the episode length and is measured after one full round of updates on a batch. Siboni fine-tunes Qwen2.5-0.5B on a six-slot structured-record task whose reward depends on the first and last slots. There , near the rule's 0.08, beats PPO by 6.7 points of mean return over iterations 2 to 8 on all 16 paired seeds, while the exact correction at gains 0.1 points.
The central claims rest on controlled comparisons. VCPO benchmarks every run against synchronous training on fresh data, the target asynchrony aims to reproduce, and matches or exceeds it on MATH, Countdown, and the tool-use task. The collapse sequence VCPO prevents repeats on MATH, GSM8K, and Countdown. In VCPO's MATH ablation, either the ESS-scaled learning rate or the optimal baseline alone keeps training stable. Siboni pre-registers the comparison, the endpoint, and a control reward that removes dependence on the first slot. On that control, the gain of drops to 1.9 points with seeds split 8 to 8. ReSPO's rerun of VESPO with VESPO's published constants matches or beats GRPO and GSPO on late training score in all six settings.
Other parts of the evidence are thinner. VESPO, M2PO, and VCPO report no seeds, and P3O runs each configuration once. VESPO and M2PO also report each method's best checkpoint on the test benchmarks. VCPO's fixed-rate control runs ten times below its base rate. Read off the paper's figure, VCPO's own ESS ratio on MATH stays mostly between 0.4 and 0.7 with , giving effective steps of to . Because no constant rate in that range was tested, the runs do not prove that adaptive scaling beats a well-chosen constant. P3O leads on stale data only late in asynchronous GSM8K runs and collapses alongside GRPO at sampling temperature 0.6. Apart from ReSPO testing VESPO, and VCPO and TETPO testing M2PO, the papers rarely compare methods directly, so the evidence does not rank them. All language-model experiments use rule-based checkers, mostly on math, at up to 32B parameters.
Terms
- Sequence weight
- : exact for stale answers; its log sums token log-ratios, so its spread grows with length
- ESS ratio
- ; with Gaussian , (computed here)
- Collapse order
- ESS ratio falls first, then KL spikes and accuracy falls (VCPO, capped sequence weight, lag 10)
- VCPO
- learning rate , cap 8, baseline
- TETPO
- , the largest whose group ESS is at least
- P3O
- token weight , KL penalty weighted
- VESPO kernel
- : for , for ; at most 1.21 and 1.24
- KL reading (computed here)
- ; VESPO's kernels are times or
- ReSPO kernels
- for , largest at ; for
- M2PO
- mask the largest among clip-eligible tokens until their mean is at most 0.04
- Prefix ratio
- : exact state-visitation ratio for token sequences; temper by (Siboni)
Sources
- Luke J. Huang, Zhuoyang Zhang, Qinghao Hu, Shang Yang, and Song Han. Stable Asynchrony: Variance-Controlled Off-Policy RL for LLMs. ICML, 2026.
- Guobin Shen, Chenxiao Zhao, Xiang Cheng, Lei Huang, and Xing Yu. VESPO: Variational Sequence-level Soft Policy Optimization for Off-Policy LLM Training. NeurIPS, 2026.
- Yihang Chen, Yuanhao Ban, and Cho-Jui Hsieh. ReSPO: Reshaped Sequence Policy Optimization for Gradient Starvation in Off-Policy Learning. arXiv preprint, 2026.
- Shayan Mohajer Hamidi, Kayhan Behdin, Wenhui Zhu, Aida Rahmattalabi, Jincheng Cao, Jelena Markovic-Voronov, and Alborz Geramifard. Target-ESS Tempered Policy Optimization (TETPO): Smooth Variance Control via Bridge Importance Sampling. OPT 2026: Workshop on Optimization for Machine Learning, 2026.
- Haizhong Zheng, Jiawei Zhao, and Beidi Chen. Prosperity before Collapse: How Far Can Off-Policy RL Reach with Stale Data on LLMs? ICLR, 2026.
- Rasool Fakoor, Murdock Aubry, Nicholas Stranges, and Alexander J. Smola. Let the Batch Decide, On- or Off-Policy: Effective Sample Size for RL Post-Training. arXiv preprint, 2026.
- Nima H. Siboni. Free Everywhere, Exact on Trees: PPO's Dropped Correction Buys Sample Efficiency Under Aggressive Reuse. arXiv preprint, 2026.
Connected notes
SGD's expected loss is the gradient-descent loss plus a term from noise injected while the loss is still of order one, so SGD noise matters only when the kernel decays more slowly than the gradient-descent loss.
- Nonvacuous PAC-Bayes boundsGeneralization bounds · Exponential tilting
In a PAC-Bayes bound the KL from posterior to prior is the complexity term, and a Gaussian prior centered at the initialization makes it grow with how precisely the weights are specified and how far they move in training.
- Conformal Prediction Under Covariate ShiftConformal prediction and distribution shift · Importance weighting for distribution shift
Under covariate shift each calibration point is weighted by , and the test point's own weight sits on , so a test point far from the training data gets an infinite band, which correctly signals that the method cannot extrapolate to it.
- Doubly robust policy evaluationMissing and selective labels · Cutting variance without adding bias
In the variance of the doubly robust estimate the inverse-propensity factor multiplies , the squared error of the reward model, where inverse propensity scoring has , so any reward model closer to the truth than zero helps, and the reward-noise term is the same for both.