| Policies and responses | |
|---|---|
| response; its -th token; its length; maximum length | |
| prefix , with the prompt | |
| weights being updated; weights that sampled the batch | |
| sampler at ; trainer's recomputation at ; trainer at | |
| in the theory: policy that generated the data; policy being trained | |
| reward of a response; expected reward | |
| responses per prompt; reward minus the group's mean reward | |
| Ratios and distances | |
| ratio | |
| total variation between the next-token distributions after | |
| largest per-prefix distance; summed per-token distance, averaged over responses | |
| first-order term; error term of the performance identity | |
| DPPO's mask on token ; divergence estimate at | |
| Constants | |
| lower and upper clip ranges of PPO and GRPO (0.2 and 0.28, or 0.27 in the large runs) | |
| DPPO threshold: 0.15 (total variation) or 0.05 (KL) in the stability tests, 0.2 at scale | |
| largest absolute reward, in the bounds of the main result | |
| cap on the importance ratio in truncated methods (3, or 5 at scale) | |
| tokens kept in the top-K approximation (20) | |
| probability below which the clip is removed in Step 8 (0.1) | |
Context. PPOproximal policy optimization: a policy-gradient method that takes several gradient steps on each sampled batch and clips each sampled token's probability ratio so the policy moves only a little per batch, the standard algorithm for reinforcement-learning (RL) fine-tuning of language models, descends from TRPOtrust region policy optimization: maximize a first-order estimate of the improvement subject to a bound on the KL divergence between the new policy and the one that collected the data, which keeps each new policy within a set divergence of the policy that collected the data, a constraint called a trust regionthe set of policies close enough to the data-collecting policy, in KL divergence or total variation, that a first-order estimate of the improvement can be trusted. PPO replaces the constraint by clipping each sampled token's probability ratio. In language-model RL the data are off-policy for two reasons: several gradient steps are taken on each batch, and the training-inference mismatchthe difference between the token probabilities that the inference engine (the sampler) and the training engine (the trainer) assign to the same response under the same weights makes the trainer's probabilities differ from the sampler's even before the first step. Qi et al. (2026) rederive the trust-region bound for responses of bounded length with one reward at the end, argue that ratio clipping measures distance badly over the long-tailed vocabularies of language models, and replace it with a direct estimate of the divergence.
The total variation: the largest difference between the probabilities two distributions give the same event, between 0 and 1 between the sampler's and the trained policy's next-token distributions is half the expected over tokens the sampler draws, with the ratio of their probabilities. PPO's test that of the one sampled token stays within the clip range therefore tests a one-sample estimate of twice this distance, with an error that depends on the token's probability: raising a token from to gives ratio 100 and is clipped though it moves less than 0.01 of probability, while lowering one from 0.99 to 0.80 gives ratio 0.81 and passes a clip range of 0.2 though it moves 0.19. DPPOdivergence proximal policy optimization: PPO with the ratio test replaced by a test on an estimate of the divergence between the two policies' next-token distributions keeps PPO's form and blocks a token's update only when an estimate of the divergence at that position exceeds a threshold and the update moves further away. Its cheap binary estimate, the change in the sampled token's probability, equals , the ratio's deviation weighted by the token's probability under the sampler. Measured from the sampler's probabilities, DPPO trains stably where methods with no trust region, or with one measured from the trainer's recomputation, collapse, and it learns faster than GRPOgroup relative policy optimization: PPO with each response's advantage computed from the rewards of the other responses sampled for the same prompt with Clip-HigherDAPO's change to PPO's clip: a larger upper clip range (0.28) than lower (0.2), so tokens with positive advantage can gain probability faster.
Setting. A prompt gets a response of at most the maximum response length in tokens, the horizon of the finite-horizon problem tokens and a reward at the end, and the prefix before token , with the prompt is the prefix before token . Write the sampler's policy at the weights that generated the batch for the sampler's policy at the weights that generated the batch, the trainer's recomputation of the policy at the same weights for the trainer's recomputation of it, and the trainer's policy at the weights being updated for the policy being trained. The theory holds for any two policies; write for the one that generated the data, for the one being trained, , and the per-token ratio ; in the experiments for the ratio at token . The distance at a prefix is the total variation between and , the two policies' next-token distributions after prefix , and with for a token ,PPO, with GRPO as a variant of it, maximizeswith the advantage : the response's reward minus the mean reward of the responses sampled for the same prompt, shared by all its tokens the advantage and the clip range; with separate lower and upper ranges and (0.27 in the large runs) the interval is the clip range. Clipping removes a token's gradient once leaves the interval in the direction its advantage pushes.
Main result (theory). The first theorem asks how much the expected reward changes when the policy moves from to , written with expectations under only, the ones a batch of samples can estimate. The answer is a first-order term, the objective PPO optimizes before clipping, minus an error that comes from changes at later tokens; the second theorem bounds the error by the per-token distance. For responses of at most tokens with no discountingwhy: the classical trust-region bound has a factor that is infinite with no discounting (); with responses of at most tokens, takes its place, any two policies satisfywhere the sums and the product run over the tokens of :Let why: Step 2 bounds the error term by taking out of the expectation, so the bounds need a bounded reward, let the largest per-prefix distance, over all prefixes be the largest per-prefix distance, and let the summed per-token distance along a sampled response, averaged over responses: be the summed per-token distance along a response, averaged over responses drawn from . Then both bounds hold:The first has the form of TRPO's bound, with in place of ; the second grows only linearly with length and is what a per-token constraint controls.
DPPO. DPPO maximizes , with the mask held fixed in the gradient:where an estimate of the total variation or KL divergence between and , the sampler's and the trained policy's next-token distributions estimates the divergence at and DPPO's divergence threshold: 0.15 for total variation and 0.05 for KL in the stability tests, 0.2 for total variation in the large runs is a threshold. With replaced by and by this is PPO's clipped objective, so DPPO keeps PPO's structure, including that it never blocks a move back toward ratio 1, and changes only the test. Computing over the whole vocabulary at every position takes too much memory, so two approximations group the tokens. The binary form compares the sampled token against the rest, so its total variation is and its KL divergence is that of two coin flips with these probabilities; the top-K form keeps the the number of most likely tokens kept separately in the top-K approximation, 20 in the paper most likely tokens under the sampler and the sampled token, and merges the rest. Throughout, ratios and divergences are measured from the sampler's probabilities .
Main findings (empirical). (a) In a small stability test run in BF16, methods with no trust region, or with one measured from the trainer's recomputation , let the mismatch grow and collapse, while DPPO keeps it low and reaches near-perfect training reward. (b) Blocking only the updates on wrong responses that lower the sampled token's probability by at least 0.5, at most 0.5% of updates, stabilizes the unconstrained policy gradient. (c) Truncating the importance ratio makes collapse come sooner. (d) Removing both ends of the clip for tokens with probability below 0.1 speeds learning. (e) On 30B mixture-of-expertsa model in which each token is processed by a few expert sub-networks, chosen by a learned router out of many and 8B dense Qwen3 models, DPPO learns faster and ends higher on AIME 2024 and 2025 than GRPO with Clip-Higher and than CISPOa policy-gradient method that keeps every token's gradient and multiplies it by the importance ratio truncated at a cap ; it masks no token, and with a learned reward it beats GRPO too. (f) The binary approximation does as well as the top-20 one.
Consequences. For PPO-style RL on language models, measure the trust region from the probabilities the sampler recorded; this also removes the recomputation pass, about 25% of training cost by the authors' estimate. Replacing the ratio test by a mask on the change in the sampled token's probability is a few lines of code, and the threshold mattered little between 0.1 and 0.2 for total variation. Keep a trust region even at learning rates of . Watch updates on wrong responses that push a likely token far down, and avoid truncating the whole importance ratio, which biases the gradient against rare tokens. FP16 in both engines (Qi et al., 2025) and a sampler that matches the trainer exactly (Zhong et al., 2026) reduce the mismatch itself; DPPO works with the BF16 mismatch present and gains further when it is reduced, as with routing replayR3: recording which experts the sampler's router chose for each token of a mixture-of-experts model and reusing those choices in the trainer, which removes one source of mismatch for mixture-of-experts models.
The change in expected reward splits exactly into a first-order term and an error from later tokens. Write and for the probabilities of the whole response, the products of the per-token probabilities and . A difference of products telescopes when the factors are changed one at a time, from the first token on:Dividing by turns term into , so equals . Writing the product as separates , in which each token's ratio enters alone, from , which is nonzero only through changes at later tokens. and the true change have the same value and gradient at . Replacing by changes no gradient, and replacing by , which the paper calls unbiased, scales the expected gradient by (this note's computation: the group mean includes the response's own reward); the two replacements turn into PPO's objective before clipping.
Bounding the error by the per-token distance gives both bounds. Take out of and condition on the response up to token . Under , the conditional mean of given is by the identity of the Setting, and the conditional mean of given is twice the total variation between the two policies' distributions over the rest of the response. That distance is at most 1, which gives the average bound:Instead, telescoping the rest of the response as in Step 1, with the triangle inequality, bounds its distance by the expected per-token distances of the remaining tokens, at most ; bounding each by too gives . My check: by enumeration over a 3-token vocabulary and length 3, the identity and both bounds hold for hundreds of random pairs of policies. Technical note (my computation, not in the paper): since , the right side of the average bound is at most , so it never certifies an improvement and only limits how far the reward can fall. The max bound is quadratic in the step and certifies small enough steps that raise , but at lengths in the thousands is in the millions. The bounds say which quantity to constrain, the per-token distance from the sampler along the response, and do not set DPPO's thresholds.
PPO's clip test is a one-sample estimate of the per-token distance, too strict for rare tokens and too loose for likely ones. By the identity of the Setting, is half the average of over tokens drawn from , and PPO checks against for the one token drawn. A token's share of the sum is , its change in probability, so the ratio overstates the share of a rare token by the factor (this factor is the note's arithmetic; the paper makes the point with examples like those of the opening). The mismatch alone shows the same pattern: with identical weights, the ratio of the trainer's to the sampler's probability scatters widely for the low-probability tokens of Qwen3-30B-A3B-Base while the per-token total variation stays small, so rare tokens can be clipped for numerical noise. Two earlier methods address the strictness for rare tokens: Clip-Higher raises the upper clip range, and CISPO keeps every token's gradient with a truncated weight. The authors object that the first is still a ratio test and the second has no trust region.
The binary and top-K distances are lower bounds on the exact ones. Both merge tokens into groups (the sampled token and the rest for the binary form; the top , the sampled token and the rest for top-K) and compute the distance between the grouped distributions. For total variation the triangle inequality gives for each group , with equality when has one sign within each group; for KL the log-sum inequality gives the same direction, with equality when is constant within each group. So a DPPO mask built on an approximation blocks no update that the exact distance would allow, and may allow some that it would block. For top-K the gap comes only from the merged group and is at most the probability the two policies give it; in an RLHFreinforcement learning from human feedback: RL with a reward model trained on human preference comparisons run the top 20 tokens hold 99.4% of the probability at the start and 99.9% after 100 steps. The paper uses because vLLM returns at most 20 log-probabilities per position.
Without a trust region the mismatch grows and training collapses, even at a learning rate of . The stability tests use the sanity test of the FP16 study (R1-Distill-Qwen-1.5B on 1,460 MATH problems it can learn to solve, 4 gradient steps per batch), run in BF16 on purpose to expose instability. All methods share the gradientand differ in the mask and the cap the cap on the importance ratio in the truncated methods: 3 in the stability tests, 5 for CISPO in the large runs; means no cap. PG-IS has no mask and no cap, CISPO caps at 3, GRPO masks by PPO's clip of , MiniRL masks by PPO's clip of the recomputed ratio , and DPPO masks by divergence. PG-IS and CISPO let the mismatch, the mean of on sampled tokens, grow until they collapse, while DPPO with binary total variation or KL keeps it low and reaches near-perfect training reward. Truncation hurts: PG-IS and MiniRL with truncation collapse earlier and score lower than without it. The authors explain that tokens with low probability under have the most variable ratios, so the cap falls mostly on them and biases the gradient against them. This cap is on the whole ratio , including the policy's movement; the token-level corrections in the FP16 study and in Zhong et al. (2026) cap only the weight between the two engines.
The trust region has to be measured from the sampler's probabilities. Open-source frameworks often use a decoupled objective, in which the clip is applied to the ratio against the trainer's recomputation . MiniRL does this and collapses in the stability test despite clipping. Changing only this in the stable DPPO with KL divergence, measuring its divergence from instead of , makes the mismatch grow and the run collapse. This agrees with the bound, which measures distance from the policy that generated the data, and with Zhong et al. (2026), who found that clipping against the recomputed probabilities let reward degrade while KL monitors stayed flat.
A small fraction of updates on wrong responses, which push a likely token far down, causes the instability. Starting from the unstable PG-IS, the authors add the smallest mask that restores stability. Updates on correct responses are usually safe, so the mask acts only on responses with and blocks token when , that is, when the update has lowered the sampled token's probability by at least 0.5. That mask alone stabilizes training; a threshold of 0.8, or the same mask measured from , does not. The blocked updates are at most 0.5% of all updates, and their share rises when the reward curve becomes erratic. The authors' explanation, not tested directly, is that sharply lowering a token the model rates as likely damages what the model has learned.
Ratio clipping slows learning through low-probability tokens, and removing both ends of the clip for them works best. With Qwen3-1.7B-Base on DAPO's math set and GRPO with Clip-Higher as the baseline, the authors remove the clip for tokens with , with the probability below which a token's clip is removed in the relaxation experiment; is the baseline a probability threshold. At learning is substantially faster than the baseline. In the baseline the clipped tokens mostly have probability below 0.15 and occur where the next-token distribution has high entropy, and in a Qwen3-4B-Base run the most often clipped include numbers, math symbols and words such as “Wait”, “Next”, “Thus” and “Since”. At , removing only the upper end of the clip keeps entropy high without speeding learning; removing only the lower end, which lets wrong responses push rare tokens down freely, learns fastest at first and then falls as entropy collapses; removing both is fast and stable. A divergence mask relaxes both ends for rare tokens, since their probability changes are small.
At scale DPPO learns faster and ends higher than GRPO with Clip-Higher and than CISPO. The large runs train on about 13k filtered DAPO math problems in five settings: Qwen3-30B-A3B-Base with and without routing replay, Qwen3-30B-A3B (a model already trained to reason at length), Qwen3-8B-Base, and Qwen3-30B-A3B-Base with LoRAlow-rank adaptation: fine-tuning only a low-rank update added to each weight matrix, with the original weights frozen, with responses up to 16,384 tokens (8,000 for the last two) and AIME scores averaged over 32 samples. DPPO with binary total variation or KL learns faster and ends higher in all five. CISPO collapses on the base model without replay and GRPO with Clip-Higher on the reasoning model. DPPO without routing replay beats both baselines with it, and adding replay helps DPPO further. With Skywork-Reward-Llama-3.1-8B as a learned reward, DPPO raises reward faster and higher than GRPO for Gemma-2-9B-It and Qwen3-4B-Instruct; on AlpacaEval 2.0 the Qwen3-4B checkpoint at step 150 scores 80.90% length-controlled and 79.93% raw win rate after DPPO, against 77.05% and 72.20% after GRPO and 59.39% and 69.38% before training, and later checkpoints had higher reward but lower AlpacaEval scores. Top-20 approximations give no gain over the binary ones, and DPPO's results change little across thresholds from 0.10 to 0.20 (total variation) and 0.05 to 0.15 (KL), while GRPO's vary more with its upper clip.
Limits. The comparisons are single training runs read off curves, scored on AIME sets of 30 problems each, with models up to 30B parameters, and the baselines use settings from other papers. The causal claims of the stability study, that a few large negative updates drive collapse and that sharply lowering likely tokens damages the model, rest on which masks stabilize one 1.5B model on one filtered set. The bounds justify the form of the constraint but give no usable guarantee at these lengths (Step 2). Like PPO, DPPO judges each update by the sampled token only, and the binary distance ignores how the rest of the distribution moves.
Terms
- Per-token total variation
- ; PPO's clip tests one sample of
- Ratio test's bias
- a token's share of the distance is , so the ratio overstates rare tokens by
- Performance identity
- , exact for responses of bounded length
- Average bound
- : linear in length
- DPPO mask
- block token if its divergence exceeds and the update moves the ratio away from 1
- Binary TV
- , a lower bound on the exact distance
- Anchor
- measure ratios and divergences from the sampler's ; the recomputed leads to collapse
- Bad updates
- wrong responses lowering a sampled token's probability by 0.5 or more: at most 0.5% of updates, enough to collapse
- Truncation
- capping mostly cuts rare tokens and made collapse come sooner
- Relax both ends
- removing the clip for tokens below probability 0.1 at both ends was fastest and stable
Quiz
- A token's probability goes from to , and another's from 0.99 to 0.80. How does PPO with clip range 0.2 treat them, and how much probability does each move?The ratios are 100 and about 0.81, so only the first leaves . The probability changes are 0.0099 and 0.19, so the update that moves the policy far more passes the test.
- Truncating the importance ratio at is meant to reduce variance, yet it made collapse come sooner here. What is the authors' explanation?Rare tokens have the most variable ratios, so the cap falls mostly on them and down-weights their learning signal in a consistent direction, a bias like that of ratio clipping. The truncation here caps the whole ratio , including the policy's own movement.
- For tokens with probability below 0.1, removing only the lower end of the clip learned fastest at first and then fell. What went wrong?With no lower clip, negative advantages can drive the probabilities of rare tokens toward zero, which narrows what the policy samples. Removing only the upper end kept entropy high without speeding learning, and removing both ends was fast and stable.
Sources
- Penghui Qi et al. Rethinking the Trust Region in LLM Reinforcement Learning. ICML, 2026.