| Policies and tokens | |
|---|---|
| prefix: the prompt and the response tokens before the current one | |
| a token | |
| policy that sampled the batch | |
| policy being trained | |
| token ratio | |
| advantage of the token's response | |
| for the token in question | |
| response length in tokens | |
| the same quantities for token at a fixed prefix | |
| change of a token's probability | |
| ratio of a response's -th token and the prefix before it | |
| reward of a response, given at its end | |
| expected reward of a policy | |
| surrogate gain before clipping, | |
| DPPO's mask on token : 0 when and , else 1 | |
| Divergences | |
| KL divergence at one prefix | |
| -divergence , for a convex with | |
| Fisher information matrix of in its parameters | |
| Pearson | |
| of moving one token to and rescaling the rest, | |
| total variation at prefix | |
| largest per-prefix total variation, | |
| DPPO's binary or top- estimate of the divergence at | |
| Constants | |
| trust-region budget on ; RIPO's default 0.05, 0.02 in the examples | |
| PPO's clip range, 0.2; DCPO's bound in its own rule | |
| DPPO's threshold on , 0.15 to 0.2 for total variation; DRPO's on | |
| largest absolute reward | |
| tokens kept separately in DPPO's top- estimate, 20 | |
| Paper symbols | |
| what PPO, RIPO, DRPO and DPPO write for | |
| what DPPO's paper writes for and | |
| RIPO's is the budget here; TRGPPO's is a KL budget | |
Context. Policy-gradient training of a language model samples responses from one policy, the policy that sampled the current batch of responses, frozen while the batch is used, and updates another, . For token after prefix , the update maximizes a surrogate that weights each sampled token's advantage how much better the token's response scored than expected, for example its reward minus the mean reward of the responses sampled for the same prompt by its probability ratio for token after the prefix , the factor by which training has changed the token's probability. That surrogate is accurate only while stays close to . In language-model RL, the two already differ before the first gradient step, so training is off-policytrained on samples from a policy other than the one being updated, here because each batch is reused for several updates, sampling runs ahead of training, and the sampling engine computes slightly different probabilities from the trainer. Reading notes: μ-GRPO, Weighting stale samples in off-policy RL. A trust region holds the update where the surrogate stays valid. PPO clips every token's ratio to the same box . Recent rules replace that flat box with a band whose width depends on the token's probability under the sampler.
A trust region keeps the surrogate's error small by bounding a divergence between the old and new next-token distributions. To second order, every smooth divergence reduces up to a constant factor to the same quadratic form, the Fisher metricthe quadratic form on a small change of a distribution ; in the parameters it is , with the covariance of under . That metric fixes the shape of a per-token band: for a token with sampler probability , the probability the sampler gave the token in question and a trust-region budget the size of the trust region, a small number such as 0.02, made precise as a budget below, the band is , the clip of RIPORiemannian isometric policy optimization (Cai et al., 2026), a GRPO variant whose clip range for each token is in place of a constant. PPO's box is flat in , so in the Fisher metric it lets likely tokens move far while holding rare ones almost fixed. From there, principled rules differ in two choices. One is which divergence governs where the quadratic approximation fails, for rare tokens and for tokens holding nearly all the mass. The other is what gets bounded: the sampled token alone, the whole next-token distribution at a position, or the total along a response, which the error bound for long responses charges.
Whatever band a rule uses, it must measure distance from the probabilities the sampler recorded. DPPOdivergence proximal policy optimization (Qi et al., 2026): PPO's objective with the ratio test replaced by a mask that blocks a token's update when an estimate of the divergence at its position passes a threshold and the update moves further away masks tokens using a direct estimate of the divergence at their position. It trains stably when that estimate uses the sampler's recorded probabilities, and collapses when it uses the trainer's recomputed ones instead.
The surrogate matches the true objective's value and gradient at . Because it evaluates on prefixes drawn by , it ignores how the update shifts which prefixes occur. TRPO (Schulman et al., 2015) bounds the resulting error by a constant times the largest advantage times the largest KL divergence over states. CPO (Achiam et al., 2017) replaces that worst-case maximum with the total variation, half the summed absolute change of the next-token probabilities at a prefix averaged over states visited by , which a batch can estimate.
Qi et al. (2026) adapt these bounds to responses of at most tokens with one terminal reward satisfying . Write for expected reward, for the ratio of token after prefix , , and for the unclipped surrogate gain. Then the true improvement is at least bothThe first bound matches TRPO's form with horizon . The second grows only linearly with length and charges the per-position divergences summed along a sampled response. Neither gives a usable certificate at LLM lengths. For multi-thousand-token responses, runs into the millions. For the second bound, (computed here, not in the paper), so its right side is never positive and only limits how far reward can fall.
The quadratic Fisher form comes from expanding the KL divergence at one prefix. Fix and drop it from the notation, writing , , and for token . In , expand . The first-order term is , since both distributions sum to one. The second-order term can be written three ways:The middle expression is the Fisher metric. In the last expression, lies on the unit sphere because . The metric is therefore Euclidean distance on that sphere, and a small trust region is a spherical cap around . A probability change moves a token's sphere coordinate by about , so the same probability shift costs more on a rarer token.
Every smooth -divergence for a convex with ; KL in either direction, the squared Hellinger distance , Pearson and total variation are of this form with twice differentiable at 1 shares that second-order term scaled by . To second order, all of them define the same trust region. Pearson has , KL in either direction has 1, and squared Hellinger distance has . For small steps, , a budget therefore matches a KL budget and a squared-Hellinger budget . On a single token's band, that small-step condition needs well above . By , the band already reaches and the exact bands have parted. Total variation, with , has a kink at 1 and is the exception. Because it grows to first order in the change, no budget on it matches to second order.
Spending the entire budget on one token produces the square-root band. Measure the trust region by Pearson , the second-order form above without its , so that to second order it is twice the KL divergence. Because , it equals the variance of the ratio under the sampler:Capping the sampled token's own term at the full budget givesThis is RIPO's clip, derived from second-order KL with the factor 2 absorbed into . At the band's edge every token contributes to , which RIPO calls homoscedasticity. Without any expansion, also bounds a KL divergence exactly by Jensen's inequality:PPO's flat box instead takes a fixed step in , so the token's share grows with . At , PPO lets a token at probability 0.8 rise to 0.96 while holding one at 0.01 to 0.012. At , the square-root band gives 0.93 and 0.024, a principled form of clip-higherDAPO's asymmetric clip, which raises PPO's upper clip range from 0.2 to 0.28 and keeps the lower one, so that rare tokens can rise further. Reading notes: DAPO and Dr. GRPO, Popular and rare tokens. PPO itself was not derived from a divergence. It takes the minimum of clipped and unclipped surrogates as a pessimistic lower bound, so pushing past the box earns nothing.
The divergences part where second order breaks down, first when one token holds nearly all the probability. Moving that token from to forces the other tokens to absorb the shift out of their small remaining mass . The cheapest way to make that move scales every other token by , which minimizes both KL by the log-sum inequality and by Cauchy-Schwarz. Every other token's ratio shifts by , adding its cost to the two-outcome , the Pearson of the move that changes one token's probability from to and rescales all other tokens proportionally:Near , the factor dominates and the band shrinks as . Exact never lets the token take all mass, since it diverges once other tokens hit zero. RIPO counts only the token's own term, so its upper limit passes the maximum possible ratio at for , and at for its default . Above that point a likely token can take all the probability in one update, just as PPO's box allows for . The same factor makes PPO's box loose on the way down. Lowering a token from 0.99 to 0.80 gives a ratio of 0.81, which stays inside the box, yet moves 0.19 of mass and incurs .
For rare tokens the order reverses. Once a token's gain is much larger than , exact , squared Hellinger, and total variation all charge roughly the absolute probability moved. Each therefore allows a gain near its own budget regardless of , whereas the band allows only . At and , the matched KL budget lets the token gain 0.010 of probability against 0.0014 for the band. A total-variation radius of , giving , matches the KL band's rare-token limit. TRGPPO (Wang et al., 2019) uses the exact two-outcome KL band, solved per token and widened to contain PPO's box. DCPO (Yang et al., 2025) bounds , giving for rare tokens. It reaches the same square-root scaling from an importance-sampling variance argument.
DPPO arrives at a probability-difference band directly from total variation. At a prefix, . PPO's check on the sampled token's is therefore a one-sample estimate of twice the distance, while the token's actual share of the sum is . The ratio overstates a rare token's share by (computed here; the paper argues from examples). Raising a token from to , roughly what the matched KL budget allows, gives a ratio of 100 and is clipped. DPPO's binary total variation instead allows the same absolute change at every .
DPPO keeps PPO's objective and replaces only the clipping test with a divergence mask. It maximizes with the mask held fixed in the gradient,where DPPO's estimate of the total variation or KL divergence between and at the prefix , binary or top-, computed from the probabilities the sampler recorded estimates the divergence at prefix . The mask blocks an update only when the divergence has passed and the ratio pushes further in the advantage's direction. A move back toward ratio 1 is never blocked. Setting and recovers PPO's clipped objective.
Computing a full-vocabulary divergence at every token takes too much memory, so DPPO groups tokens to form . The binary version compares the sampled token against all others, giving the binary total variation above or two-outcome KL. The top- version keeps the sampled token and the most likely tokens under the sampler, merging the remaining tail. That limit comes from vLLM, which reports at most 20 log-probabilities per position. By the triangle inequality for total variation and the log-sum inequality for KL, merging can only hide mass moving within a group. Both estimates are therefore lower bounds. The mask blocks no update the exact divergence would allow, though it may allow some the exact divergence would block. For top- total variation, the gap comes solely from the merged tail and is at most the average tail probability under the two policies. In one of DPPO's large settings, the binary estimate matched top-20.
Bounding the sampled token's term is necessary for at its position, since every term is nonnegative, but not sufficient because unsampled tokens can move freely. Truly PPO (Wang et al., 2019) proves that with three or more actions, constraining the sampled action's ratio leaves state KL unbounded. DPPO's top- estimate closes this gap approximately, while TRM (Li et al., 2025) closes it exactly by computing full-vocabulary KL from stored sampler logits. Because the averaged error bound sums divergences along the response, a fixed cap at each position still lets the total grow with length. TRM drops any response whose largest per-position KL exceeds a threshold, and can also cap the mean. CPPO (Mao et al., 2026) sets tighter per-position caps at early positions, whose effects persist longer, and caps a weighted average along every prefix. M2POsecond-moment trust policy optimization (Zheng et al., 2025), which masks the tokens with the largest until the mean of over the batch's tokens that a clip could act on is at most 0.04, and weights the rest by their plain ratio. Reading note: Weighting stale samples in off-policy RL caps the batch mean of over clip-eligible tokens, which to second order estimates the mean per-position .
A sequence ratio does not bound a divergence. GSPOgroup sequence policy optimization: one ratio per response, of the mean of the token log-ratios, clipped to within of 1. Reading note: Group Sequence Policy Optimization clips of the mean of over a response. Each takes either sign, with expectation under the sampler. Tokens that rose cancel tokens that fell, so a response can sit near ratio 1 while many of its tokens moved far.
A mask stops a token's gradient at the band's edge, whereas a penalty keeps a gradient pulling the token back. PPO's paper found an adaptive KL penalty worse than clipping on MuJoCo. MDPO (Tomar et al., 2022) instead penalizes with an annealed step size and full-batch steps, and beat PPO on every reported task. A per-token quadratic penalty places its band at its stationary point, where the derivative of minus the penalty vanishes. SPO (Xie et al., 2025) subtracts and stops at PPO's box . DRPO (Yao et al., 2026) subtracts and stops at , DPPO's band.
DPPO's stability tests show that the reference policy matters as much as the band. Training R1-Distill-Qwen-1.5B on MATH with 4 gradient steps per batch in BF16 exposes the mismatch between the sampling and training engines. Without a trust region, or with each token's ratio capped at 3 as in CISPOa policy-gradient loss that keeps every token's gradient and multiplies it by the importance ratio truncated at a cap; it masks no token. Reading note: Scaling RL compute, that engine gap grows until training collapses. DPPO with binary total variation or KL keeps the gap small and reaches near-perfect training reward. Measured from the trainer's recomputation of instead of the sampler's recorded probabilities, the trust region fails. MiniRL, which clips against the recomputation, collapses despite clipping, and DPPO collapses as well when only its reference is swapped. Divergence from the recomputation is zero before the first update regardless of mismatch, so it leaves engine drift unchecked. Using the sampler's recorded probabilities also skips the recomputation pass, saving about 25% of training cost by a cited estimate.
Ablations in the same setup isolate which updates drive instability. Starting from the unconstrained run, masking only updates on wrong responses that lower a token's probability by at least 0.5 restores stability. Those updates are at most 0.5% of the total, and raising the threshold to 0.8 fails. Truncation hurts. Capping the whole ratio at 3 made the unconstrained and MiniRL runs collapse sooner. The authors attribute this, without a direct test, to the cap falling mostly on rare tokens, whose ratios vary most. Relaxing PPO's box where it is strictest also helps. Removing both clip ends for tokens below probability 0.1 made Qwen3-1.7B-Base learn substantially faster than GRPO with clip-higher while staying stable. Removing only the lower end let wrong responses push rare tokens down until entropy collapsed.
How much the band's shape matters depends on how off-policy training is. The Qwen team's stabilization study (Zheng et al., 2025) trained a cold-start fine-tune of Qwen3-30B-A3B-Base with one gradient step per batch. There, the plain policy gradient, corrected only by the engine importance weight, ran most stably and scored highest. Once each batch was split into two or more minibatches, both clipping and routing replayrecording which experts each token was routed to and reusing those choices when its probability is recomputed, so that a small weight change cannot switch a token's experts. Reading note: Group Sequence Policy Optimization became necessary to prevent collapse. ScaleRLKhatri et al. (2025): a compute-scaling study of RL recipes for language models that fits sigmoid curves of reward against compute and compares design choices by their fitted ceiling and efficiency. Reading note: Scaling RL compute tested samples up to 8 updates old and found that PPO's upper clip shifts the reward ceiling, whereas a truncated importance-weighted policy gradient was insensitive to its cap. Both leveled off at similar reward on a fixed recipe.
At 8 updates per batch, RIPO achieved the best average over seven math benchmarks on all four models it trained, beating the strongest of five other clipping rules by 0.6 to 3.2 points. DPPO learned faster and finished higher on AIME 2024 and 2025 than both CISPO and GRPO with clip-higher across all five large settings on Qwen3-30B-A3B and Qwen3-8B. Its results changed little across total-variation thresholds from 0.10 to 0.20, and it beat both baselines even without routing replay when the baselines used it.
The evidence has clear limits. RIPO's and DPPO's results are single runs. RIPO's default is the best value from an ablation scored on AIME24, one of its test benchmarks. DPPO's large-scale comparisons are read off curves on 30-problem AIME sets, and its account of collapse rests on which masks stabilize one 1.5B model. TRM, CPPO, and DRPO report no seeds either. TRGPPO, Truly PPO, MDPO, and SPO were tested only on control benchmarks such as MuJoCo and Atari, not on language models.
Terms
- Second-order divergence
- , the Fisher metric, Euclidean on the sphere of
- Calibration
- for , a budget is a KL budget and a squared-Hellinger budget ; total variation has no second-order term
- Finite-horizon bounds
- , linear in length; it never certifies a gain
- Square-root band
- , so : RIPO's clip
- as a variance
- , and
- PPO's box
- a fixed step in ; the token's share of grows with
- Dominant tokens
- the exact cost carries ; RIPO's band stops binding near at
- Rare tokens
- exact KL, Hellinger and total variation allow a gain of about their budget; allows
- Ratio as one sample
- ; PPO tests one draw, which overstates a rare token's share by
- DPPO's mask
- block a token when and ; binary and top- estimates are lower bounds
- Reference
- measure from the sampler's recorded probabilities; measured from the trainer's recomputation, DPPO and PPO clips collapsed
- What is bounded
- the sampled token (PPO, RIPO), the whole distribution at a position (DPPO, TRM), or a response or batch (TRM's response mask, CPPO's prefix averages, M2PO's batch mean)
- Sequence ratio
- GSPO clips a signed mean of , where rises and falls cancel
- Penalty or mask
- a per-token quadratic penalty's stationary point is its band: SPO gives PPO's box, DRPO gives DPPO's
- Where the rule matters
- off-policy updates; one step per batch did best with the plain importance-corrected policy gradient
Sources
- Zhicheng Cai, Xinyuan Guo, Hanlin Wu, Wei-Ying Ma, Ya-Qin Zhang, and Hao Zhou. Beyond Euclidean Clipping: Overcoming Exploration Collapse in LLM RL via Riemannian Isometric Policy Optimization. ICML, 2026.
- John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, and Pieter Abbeel. Trust Region Policy Optimization. ICML, 2015.
- Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel. Constrained Policy Optimization. ICML, 2017.
- Yuhui Wang, Hao He, Xiaoyang Tan, and Yaozhong Gan. Trust Region-Guided Proximal Policy Optimization. NeurIPS, 2019.
- Yingru Li, Jiacai Liu, Jiawei Xu, Yuxuan Tong, Ziniu Li, Qian Liu, and Baoxiang Wang. Trust Region Masking for Long-Horizon LLM Reinforcement Learning. arXiv preprint, 2025.
- Renjie Mao et al. Beyond Uniform Token-Level Trust Region in LLM Reinforcement Learning. arXiv preprint, 2026.
- Jiarui Yao et al. Rethinking the Divergence Regularization in LLM RL. arXiv preprint, 2026.
- Penghui Qi et al. Rethinking the Trust Region in LLM Reinforcement Learning. ICML, 2026.
- John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal Policy Optimization Algorithms. arXiv preprint, 2017.
- Yuhui Wang, Hao He, and Xiaoyang Tan. Truly Proximal Policy Optimization. UAI, 2019.
- Manan Tomar, Lior Shani, Yonathan Efroni, and Mohammad Ghavamzadeh. Mirror Descent Policy Optimization. ICLR, 2022.
- Zhengpeng Xie, Qiang Zhang, Fan Yang, Marco Hutter, and Renjing Xu. Simple Policy Optimization. ICML, 2025.
- Shihui Yang, Chengfeng Dou, Peidong Guo, Kai Lu, Qiang Ju, Fei Deng, and Rihui Xin. DCPO: Dynamic Clipping Policy Optimization. arXiv preprint, 2025.
- Chujie Zheng et al. Group Sequence Policy Optimization. arXiv preprint, 2025.
- Haizhong Zheng, Jiawei Zhao, and Beidi Chen. Prosperity before Collapse: How Far Can Off-Policy RL Reach with Stale Data on LLMs? ICLR, 2026.
- Qiying Yu et al. DAPO: An Open-Source LLM Reinforcement Learning System at Scale. NeurIPS, 2025.
- Devvrit Khatri, Lovish Madaan, Rishabh Tiwari, Rachit Bansal, Sai Surya Duvvuri, Manzil Zaheer, Inderjit S. Dhillon, David Brandfonbrener, and Rishabh Agarwal. The Art of Scaling Reinforcement Learning Compute for LLMs. ICLR, 2026.
- Chujie Zheng et al. Stabilizing Reinforcement Learning with LLMs: Formulation and Practices. arXiv preprint, 2025.
Connected notes
- 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.
- PPO and RLOO for language modelsReinforcement learning for reasoning · Trust regions around the sampling policy
With two gradient steps per batch the PPO loss is clipped on fewer than 5% of tokens, and turning clipping off, then dropping the ratio as well, does not hurt, since the policy has little room to move far from the one that sampled the data.
- The Foundations of Cost-Sensitive LearningCost-sensitive classification and calibration · Importance weighting for distribution shift
A change in base rates multiplies the old posterior by the prior ratio and renormalizes, which in logits adds and uses nothing about the learner.
- Post-training dataTraining data · Trust regions around the sampling policy
Because a token's ratio satisfies , any token above can never hit GRPO's upper clip, so even under zero-mean random rewards downward steps clip and rebound while upward steps drift unchecked, raising Qwen2.5-Math-7B by 21.4 points on MATH500 until clipping is removed.