GRPO Variants: DAPO, Dr. GRPO, GSPO, CISPO
A recipe that works, until you run it long enough
There are two ways to discover that a recipe has a flaw. The first is to read it. The second is to run it for three weeks on thousands of GPUs (Graphics Processing Units, the chips that run all of deep learning) and watch the curve flatten out.
GRPO belongs to the second category. The algorithm was published, it produced DeepSeek-R1, it became the default choice for training reasoning, and it was only once dozens of teams started running it at scale that its pathologies became visible. The model stops exploring after a few hundred steps. Responses get longer without getting better. Training suddenly diverges on mixture-of-experts models. A sizeable share of the training examples produce no learning at all.
This page covers those flaws and the four best-documented fixes: DAPO, Dr. GRPO, GSPO and CISPO. These are not rival algorithms doing the same thing differently; they are four sets of repairs on different parts of the same machine, and they can be combined.
GRPO samples a group of responses to the same prompt, scores each one, and assigns every response an advantage equal to its deviation from the group mean, divided by the group standard deviation: . That removes PPO's critic, the baseline comes from the neighbouring responses rather than from a learned value network. Here is the score of the -th response, (mu) the mean of the group's scores and (sigma) their standard deviation, the usual measure of how spread out they are. The full mechanism is covered in the GRPO and oDPO page; here we start from there and look at what breaks.
The four things people fault the original GRPO for
Before the fixes, name the diseases. They are independent of one another.
1. Entropy collapse. A policy's entropy measures how much it hesitates: high entropy means the model spreads probability across several possible continuations; low entropy means it almost always produces the same thing. Under GRPO, entropy drops fast. The model locks onto what it already believes, stops trying anything else, and the score plateaus. And in RL you can only reinforce what you first sampled: a model that no longer explores can no longer improve.
2. Groups with no signal. If all responses in a group receive the same reward (all correct or all wrong) then for every one of them. The advantage is zero, the gradient is zero. You paid to generate complete responses and learned nothing. In a real batch the share of such groups is far from negligible, and it grows as the model improves (more and more problems become trivial).
3. Biases introduced by the normalizations. GRPO divides by two things: the group standard deviation , and the length of each response. Both divisions look like implementation details. They are not, as we will see, they systematically distort the objective in favour of long responses and of extreme questions.
4. Instability on long sequences and mixture-of-experts models. GRPO applies the importance ratio and the clipping token by token, whereas the reward is assigned to the whole sequence. That granularity mismatch is harmless on short answers and becomes toxic on reasoning chains thousands of tokens long, and worse still on MoE architectures (Mixture of Experts, where each token is routed to a small subset of experts).
DAPO: four repairs in one package
In one sentence: DAPO fixes four of GRPO's flaws at once, collapsing entropy, groups with no signal, long responses that carry too little weight, and truncated responses scored wrongly.
DAPO stands for Decoupled Clip and Dynamic sAmpling Policy Optimization. The system was published by a ByteDance Seed team together with Tsinghua's AIR institute, with a feature that matters as much as the algorithm itself: they released the training code and the dataset, precisely because the RL recipes of the day were described in technical reports without being reproducible.
DAPO keeps the GRPO skeleton and adds four modifications, each aimed at one of the diseases above.
Lever 1, "Clip-Higher": decouple the two clipping bounds
Recall what clipping does, clipping means cutting off whatever goes past a bound: it bounds the importance ratio inside a window so updates cannot be too brutal. That window is symmetric in both PPO and GRPO.
The trouble is that the bound is multiplicative: it bounds a ratio, not a difference. So a token's room to grow is proportional to its current probability. With (that is, permission to grow by at most a factor of ) the DAPO paper gives two telling examples:
- a token already at probability would be allowed to rise to . But a probability cannot exceed 1, so the bound never bites: that token is not constrained at all;
- a token at can only rise to in one step.
In other words, the favourites get every permission and the underdogs get none. A rare but promising token can never break through, while an already dominant token keeps reinforcing itself. This is an entropy-collapse machine.
The fix is tiny: decouple the two bounds.
The symbols: (rho) is the importance ratio, sets the lower edge of the window and its upper edge. In plain words: let a token become much more likely than before, without symmetrically letting it become much less likely.
You keep the lower bound tight (you do not want a response to collapse in one step) and loosen the upper bound to give unlikely candidates room. That is "clip-higher". The reported effect is direct: policy entropy is sustained far longer, and the diversity of generated responses does not cave in.
Lever 2, Dynamic sampling: throw away the mute groups
DAPO filters out prompts whose responses all carry the same reward. In practice: oversample prompts, generate, discard the uniform-reward groups, and keep going until you have filled a constant-size batch made only of groups that carry signal.
You might think it is enough to let the mute groups through: their gradient being zero, they would do "nothing bad". Except that the number of useful examples then varies from batch to batch, which makes the effective variance of the gradient jump from one step to the next. Oversampling exists to keep a constant number of informative examples per update, hence steady training. Incidentally it is also a form of automatic curriculum: the system concentrates compute on the problems the model solves sometimes.
The cost is real: you generate responses you then throw away. In exchange, every optimization step carries signal, and the authors report the trade is worth it, the time lost in generation being won back in useful steps.
Lever 3, Token-level loss instead of sequence-level
Original GRPO computes, for each response, the mean loss over its tokens, then averages over the responses in the group:
The symbols: is the number of responses in the group, the -th response, its length in tokens, the token's index within the response, and the loss attached to that one token. The two fractions are two nested averages: first the average over one response's tokens, then the average over the group's responses.
The consequence: every response carries the same total weight regardless of its length. A 100-token response and a 4,000-token response count the same. So each individual token in a long response counts forty times less than a token in a short one.
That hurts in both directions. Good long chains of reasoning are under-rewarded token by token, so they are barely learned. And more importantly, the typical failure modes of long responses (repetition loops, rambling, incoherent text at the end of a generation) are also under-penalized. The model is not under enough pressure to stop rambling.
DAPO switches to a token-level loss: sum over all tokens in the batch, divide by the total token count of the batch.
The only change is the denominator: is the total number of tokens in the batch, no longer each response's own length. So there is a single average, over all the batch's tokens at once.
Every token weighs the same, so a long response weighs proportionally more than a short one, which is exactly what you want when the behaviour you need to correct happens inside the long responses.
Lever 4, Shaping the reward for over-long responses
Every training run fixes a maximum generation length. What do you do with a response that gets cut off because it hit that limit? The naive reflex is to score it : it produced no final answer, so it is wrong.
That is a design error, and an instructive one. A truncated chain of reasoning may have been excellent up to the cut. Scoring it injects noise into the reward: you punish good reasoning for a reason that has nothing to do with its quality.
DAPO offers two treatments, from crudest to finest:
- filtering: simply mask the loss of truncated responses, they contribute nothing to the gradient, neither good nor bad;
- soft, length-aware punishment: define a soft threshold below the hard limit; under it, no penalty; between the threshold and the limit, a penalty that grows progressively with length. The model then gets a graded signal ("you are getting too long") instead of an arbitrary guillotine.
What about the Kullback-Leibler term?
One last point, often overlooked: for long-reasoning training, DAPO drops the Kullback-Leibler penalty against the reference model. The Kullback-Leibler divergence, abbreviated KL after its two authors, measures how far apart two probability distributions are. The logic is deliberate. The KL exists to stop the model drifting too far from its starting point, which makes sense in alignment (you do not want to break style or safety). But when the goal is precisely to elicit a reasoning behaviour the initial model does not have, the distribution has to move substantially. Constraining the KL then means braking the very thing you are trying to produce.
Dropping the KL is a choice suited to RLVR (Reinforcement Learning with Verifiable Rewards, described in the Reward modeling and RLVR page) on verifiable tasks (maths, code) where the only risk is reasoning badly. In general alignment, where the KL also guards against behavioural drift and loss of general capability, removing it is far riskier. The right setting depends on what you are training.
The paper describes the four levers above and open-sources the training code (built on the verl framework) along with the curated maths dataset. The abstract states 50 points on AIME 2024 starting from the Qwen2.5-32B base model. AIME stands for American Invitational Mathematics Examination, a US mathematics competition that has become the reference benchmark for mathematical reasoning; the score is the percentage of problems solved. The stated motive is explicit: because the technical details of state-of-the-art RL systems had stayed hidden, the community could not reproduce their results.
Dr. GRPO: remove two divisions, remove two biases
In one sentence: two of GRPO's divisions look like implementation details but distort the objective, Dr. GRPO deletes them.
Where DAPO adds mechanisms, Dr. GRPO removes them. Its thesis: those two normalizations make the gradient estimator biased, meaning that on average it does not point at the objective you think you are optimizing.
The name comes from "GRPO done right". The work grew out of a critical analysis of R1-Zero-style training by a team from Sea AI Lab with the National University of Singapore.
Bias 1, the length bias, from dividing by
Take the division by length again, but now from the point of view of the sign of the advantage.
For a wrong response, the advantage is negative: the update tries to lower the probability of that response. But since the response's loss is divided by its length, the penalty per token is smaller the longer the response is.
The result is almost comical: between two bad answers, the long one is punished less than the short one. If the model is going to be wrong, it is better off being wrong at length. Optimization finds that loophole, and it is one of the engines behind the length explosion observed on incorrect responses.
Bias 2, the difficulty bias, from dividing by
The standard deviation of a group's rewards measures how ambiguous the question is for the model. It is large when the model succeeds roughly half the time, and small when the question is almost always solved or almost never solved.
Dividing by therefore amplifies the advantages on small- questions, that is, the easiest and the hardest ones. Two questions on which the model has the same raw deviation from the mean end up with very different weights depending on their difficulty, and training starts over-weighting exactly the least informative questions.
The difficulty bias and DAPO's "mute groups" are two symptoms of the same phenomenon (the information in a group depends on how hard the question is) but the remedies differ. DAPO discards zero-variance groups before optimizing. Dr. GRPO removes the division that distorts the weight of the remaining groups. The two are compatible.
The fix
Dr. GRPO simply drops both divisions:
and the sum over tokens is no longer divided by each response's own length (a single constant is used for all, or none at all). The estimator becomes unbiased: the algorithm optimizes mean reward proper, with no hidden preference for long responses or for extreme questions.
The most visible reported effect is that the length of incorrect responses stops inflating, without hurting accuracy. That is genuinely good news about the underlying phenomenon: the inflation of bad answers was not extra reasoning, it was an artifact of a badly chosen denominator.
The paper explicitly identifies an optimization bias in GRPO that artificially increases response length, especially for incorrect outputs, and proposes Dr. GRPO as an unbiased method that improves token efficiency while maintaining reasoning performance. It also examines what base models could already do before any RL, the authors observe that DeepSeek-V3-Base already exhibits an "Aha moment" and that Qwen2.5 base models reason even without prompt templates, suggesting pretraining biases. That question comes back in the page on RL failure modes.
GSPO: reason in sequences, not in tokens
In one sentence: GRPO's reward judges the whole response but its correction works token by token; GSPO puts both back on the same scale, the sequence.
GSPO (Group Sequence Policy Optimization) comes from the Qwen team at Alibaba. It attacks the fourth flaw: the granularity mismatch.
The inconsistency at the root
In GRPO, two things live at two different scales:
- the reward and the advantage are assigned to the whole response, it is the verifier that says "this solution is correct";
- the importance ratio and the clipping apply token by token: each token carries its own .
So you are correcting, at token scale, a policy mismatch you only ever measure at sequence scale. Each token ratio is an extremely noisy estimate (a single sample) and across a response of several thousand tokens, that noise accumulates. Clipping, meant to be a safety rail, starts cutting tokens more or less at random.
The fix: one ratio for the whole sequence
GSPO defines the importance ratio directly at sequence level, normalized by length:
The symbols: is the ratio for the whole -th response; is the policy being trained (whose learned parameters are called ) and its version at generation time; is the prompt, the response, its length in tokens; the exponent means "the -th root". In plain words: by how much has the likelihood of the whole response changed, expressed per token?
This is the geometric mean of the per-token ratios. The normalization is not cosmetic: without it, the product of thousands of ratios would be an astronomically large or vanishingly small number, unusable in practice. With it, stays in a comparable range from one response to another, whatever the length.
Everything then happens at sequence scale: it is that multiplies the advantage , and that gets clipped. A response is taken or discarded as a whole, no more token-by-token tinkering.
The intuition: since the reward judges the response as a whole, the off-policy correction should judge the response as a whole. Aligning the two scales removes a source of variance that had no business being there.
Why this changes everything on MoE
It is on MoE architectures that the gain is most dramatic, and the mechanism is worth understanding.
In an MoE, a small routing network decides, for each token, which experts to send it to. That routing is a discrete decision. And a discrete decision can flip on an infinitesimal change in the weights: after a single gradient update, the same token may be routed to different experts.
The consequence is that the probability the model assigns to that token can change a lot, not because the model "changed its mind", but because it took a different computational path. Per-token importance ratios become erratic, and a token-level algorithm like GRPO reads that routing noise as a policy shift to be corrected. Hence MoE training runs that diverge.
Teams worked around this with engineering tricks, notably by replaying the routing of the old policy during training, forcing both versions of the model down the same path. It works, but it means recording and replaying routing decisions: extra code, extra memory, and a constraint on the system architecture.
GSPO does not have the problem by construction. A sequence ratio depends on the overall likelihood of the response, which stays stable even when the routing of a few tokens changes. The routing noise averages out; it does not propagate.
Because only the whole-sequence likelihood matters, GSPO is more tolerant of the small numerical discrepancies between the engine that generates rollouts (the training responses sampled from the model) and the engine that trains, two engines that never compute exactly the same probabilities (different kernels, different precisions, different batch sizes). This silent gap is a documented problem in every modern RL system; it is covered in the page on RL failure modes.
The abstract is unambiguous: unlike algorithms that adopt token-level importance ratios, GSPO defines the ratio from sequence likelihood and performs clipping, rewarding and optimization at sequence level. The authors claim three benefits (better training efficiency than GRPO, notable stabilization of MoE RL training, and simplification of RL infrastructure design) and credit GSPO with part of the improvements in the Qwen3 models. The paper also describes a GSPO-token variant that restores per-token granularity for multi-turn scenarios while preserving the sequence-level behaviour.
CISPO: clip the weights, not the gradient
In one sentence: GRPO's clipping does not merely damp down an awkward token, it wipes out its contribution entirely; CISPO caps the token's weight instead of erasing it.
CISPO stands for Clipped IS-weight Policy Optimization, "IS" for importance sampling, the statistical technique that lets you reuse samples drawn with an older version of the model by reweighting them. It arrived in June 2025 with MiniMax-M1, a 456-billion-parameter reasoning model released with open weights by MiniMax. It goes after an effect of clipping that the other three variants only half address: clipping does not merely bound a token's influence, it erases its gradient.
The tokens clipping makes disappear
Recall the PPO and GRPO mechanism. When a token's ratio leaves the window on the wrong side, the corresponding term is replaced by a constant, so its derivative is zero. That token contributes nothing at all to the update.
That would be harmless if it stayed rare. It becomes serious once you reuse the same batch of generations for several successive updates, the MiniMax report describes sixteen updates per batch. A token clipped on the very first update stays excluded from all the following ones: the batch was expensive to generate, and part of its content is mute for fifteen steps.
The observation that triggered CISPO is sharper still, and the MiniMax report documents it explicitly: the clipped tokens are not random ones. They are the reasoning fork words, the authors cite "However", "Wait", "Recheck", "Aha", the ones that mark where the model changes its mind, double-checks, or restarts down another path. The base model assigns them low probability; as soon as RL starts reinforcing them, their ratio shoots up and they leave the window. Clipping therefore removes, as a priority, the gradient of the rare, high-entropy tokens, precisely the ones carrying the reasoning behaviour you are trying to elicit.
DAPO's clip-higher targets the same symptom by loosening the upper bound. The M1 authors report that in their setting (many off-policy updates per batch) it was not enough.
The fix: cap a coefficient instead of zeroing a term
CISPO drops PPO's trust region and goes back to REINFORCE, the most elementary policy-gradient objective, the one from before any clipping: you simply raise the log-probability of the actions that worked. To that it adds an off-policy correction, each token contributes through its , weighted by the advantage and by the importance-sampling weight. The subtlety is that this weight appears as a plain multiplicative coefficient, under stop-gradient, you do not differentiate through it.
It is that coefficient, and only that, which CISPO clips:
The symbols: is the importance ratio of token in response , and ("rho hat") its capped version; and are the two bounds applied to that weight; is the advantage of the whole response; denotes the preceding tokens, so is the log-probability the model assigns to that token given the prompt and the start of its own response. As for , that is stop-gradient: an instruction saying "treat this factor as a constant, do not differentiate through it". In plain words: sum, over every token in the batch, the log-probability of that token, weighted by its response's advantage and by a capped importance weight.
The difference with GRPO fits in one sentence: you cap a token's influence instead of deleting it. A token whose ratio blows up sees its weight pulled back to , it weighs less than it would ask for, but it still weighs, and its gradient does enter the update. No token is thrown away. With no weight clipping at all, the objective would reduce exactly to the standard policy gradient.
Two implementation details are worth noting: in practice the authors bound only from above (the lower bound is left inoperative), and there is no KL term. CISPO also borrows dynamic sampling, the length penalty, and normalization of the loss by the batch's total token count from DAPO.
The price is acknowledged: capping the weight makes the estimator slightly biased. The authors judge the trade worthwhile, you lose a little exactness on the estimator, you gain the contribution of every token and lower variance.
CISPO is described in the MiniMax-M1 technical report, where it is one of the two headline innovations. The abstract puts it plainly: the algorithm clips importance-sampling weights rather than token updates, which lets it use all tokens in the gradient computation. In the body of the report, not in the abstract, the authors describe a controlled study starting from Qwen2.5-32B-base on DAPO's maths dataset, in which CISPO beats both GRPO and DAPO at equal step counts on AIME 2024, and matches DAPO's performance with half the training steps. As with the other variants, this is demonstrated in a single setting, one base model, one domain, one infrastructure, and by the method's own authors.
Comparison table: who fixes what
| Variant | Problem targeted | Mechanism | Expected effect |
|---|---|---|---|
| DAPO, clip-higher | Entropy collapse | Decoupled clipping bounds, upper bound loosened | Rare tokens can break through; exploration is sustained |
| DAPO, dynamic sampling | Uniform-reward groups (zero gradient) | Oversample then filter, constant useful batch | Every step carries signal; implicit curriculum |
| DAPO, token-level loss | Long responses under-weighted, failure modes under-punished | Sum over all batch tokens, divided by the total | Repetition and end-of-generation incoherence actually penalized |
| DAPO, overlong reward shaping | Reward noise from truncation | Mask truncated samples, or apply a soft graded penalty | Good reasoning that got cut off is no longer punished by mistake |
| Dr. GRPO, drop the | Length bias | No division by the response's own length | Wrong answers stop getting longer |
| Dr. GRPO, drop the | Difficulty bias | Advantage only | Extreme questions are no longer over-weighted |
| GSPO, sequence ratio | Granularity mismatch, variance on long responses | Importance ratio and clipping at sequence level | More stable training on long chains |
| GSPO, on MoE | Instability from routing volatility | The global ratio absorbs expert switches | No need to replay the routing |
| CISPO, importance-weight clipping | Rare fork tokens deleted by clipping | Cap the importance weight (under stop-gradient) instead of zeroing the term | Every token keeps a gradient, including the most improbable ones |
Nothing forces a choice. A modern training run happily borrows clip-higher and dynamic sampling from DAPO, the removal of from Dr. GRPO, and the sequence ratio from GSPO. LLM RL libraries in fact expose most of these settings as independent options on a single GRPO trainer, which is the best sign that these three papers describe cumulative fixes rather than rival algorithms.
What remains open
Three honest caveats.
The gains are contextual. Each paper demonstrates its fix in its own setting: a given base model, a given domain (often competition mathematics), a given infrastructure. There is, as of today, no neutral and exhaustive comparison of the three on a common benchmark. Transposing the reported gains to another context is extrapolation.
Some levers partly cancel each other. Clip-higher loosens one constraint to preserve exploration; GSPO's move to sequence level tightens another. DAPO's token-level loss and Dr. GRPO's removal of length normalization address the same bias by two different routes, and there is no reason they should stack naively. Piling on every fix without thinking is not a strategy.
The core issue (entropy) is not solved. Clip-higher delays entropy collapse; it does not eliminate it. How to sustain exploration across tens of thousands of RL steps remains an open problem, and that is probably where the next generation of variants will be decided.
Why this matters
The gap between "GRPO" and "GRPO as it is actually used in 2025-2026" is considerable, and it is made almost entirely of details like these: where to put a clipping bound, what goes in the denominator, at what scale to compute a ratio, which examples to throw away before computing a gradient. None of these decisions changes the formula by a line; all of them change the behaviour of training.
It is also a lesson about the nature of innovation in this field. The contributions that count are not always new mathematical objectives: they are often diagnoses (understanding why a curve flattens) followed by a fix that looks trivial. A practitioner who wants to read the state of the art of LLM RL correctly has to look at these implementation details, because that is where the difference lies between a run that converges and a run that collapses.
Key takeaways
- GRPO suffers from four distinct ailments: collapsing entropy, uniform-reward groups that produce no gradient, biases introduced by its normalizations, and instability from computing the importance ratio at token level.
- DAPO brings four repairs: clip-higher (decoupled clipping bounds, so rare tokens can break through), dynamic sampling (discard groups with no signal), token-level loss (so long responses carry their fair weight), and overlong reward shaping for truncated responses.
- Dr. GRPO fixes by subtraction: removing the division by length removes the length bias (which pushed wrong answers to get longer); removing the division by removes the difficulty bias (which over-weighted trivial and impossible questions).
- GSPO aligns the scales: since the reward judges the whole sequence, the importance ratio and the clipping must apply to the whole sequence, via a geometric mean of the per-token ratios.
- On MoE models this choice is decisive: expert routing can flip after a minute update, making per-token ratios erratic; a sequence-level ratio absorbs that noise and avoids having to replay the routing.
- CISPO attacks the problem from the other end: rather than clipping the ratio (which zeroes the gradient of the tokens it excludes, often the rare words that open a reasoning fork) it clips the importance weight, so every token keeps a non-zero contribution.
- These variants combine rather than compete, but their gains remain demonstrated in particular settings, there is still no neutral, exhaustive comparison of the three.
1. During a GRPO run, a group of eight answers to the same problem gets the reward 1 eight times, all correct. What does this group contribute to the update?
2. Original GRPO divides each answer's loss by its length. Between two wrong answers, one short and one long, which is punished more?
3. For reasoning training, DAPO drops the Kullback-Leibler penalty. Why must this choice not be generalized to alignment?
4. On Mixture-of-Experts models, GRPO training sometimes diverges abruptly. What is the mechanism, and why does GSPO escape it?
5. In GRPO, what happens to a token whose importance ratio leaves the clipping window, and why does CISPO see a serious problem there?