One family, three estimators
GRPO, DAPO and RLOO train a language model with reinforcement learning on problems whose answers can be checked: a maths answer is right or wrong. None of them trains a value model. For each prompt they sample a group of answers from the current policy, score each with a rule-based reward , and judge each answer against the rest of its group. Answers that beat their group are pushed up, the others down. They differ in how that judgement is made and how it becomes a loss:
Here is one token's probability ratio between the policy being trained and the policy that sampled, and is the whole answer's. Each member tab works through one of these on its own run. This page runs all three from the same start and puts them on the same axes.
Group mean or the mean of the others
Subtracting a baseline from the reward lowers the variance of the policy gradient, and a baseline that does not depend on the sampled answer leaves it unbiased (Williams's REINFORCE). RLOO, from Kool et al., uses the mean reward of the other answers, which gives : GRPO's centring, rescaled.
GRPO subtracts the group mean, answer included, and divides by the group's standard deviation, so every group's advantages have the same spread: one right answer in eight gets the same push as a four-to-four split. Liu et al. (Dr. GRPO) argue that this over-weights problems that are almost always or almost never solved. RLOO keeps advantages in reward units. In the One group, three advantages panel the three columns have the same signs and differ in scale.
One ratio per token, or one per answer
GRPO and DAPO apply PPO's clipped surrogate token by token: after the first update on a batch, a token whose ratio has left in the direction its advantage pushes stops contributing gradient. TRL's RLOOTrainer treats the whole answer as one action, with ratio . Over 200 tokens small per-token moves add up, so the sequence ratio leaves the clip range long before any single token does, and then the whole answer stops counting. With one update per batch, the RLOO tab's setting, and the clip never binds. Here every method takes two, and the One ratio per token, or one per answer panel shows GRPO's per-token log-ratios, their sum, and RLOO's own sequence log-ratio on the second.
The averaging differs too. GRPO averages each answer's token losses, then the answers, so a token of a short answer weighs more. DAPO averages once over all tokens of the batch. RLOO multiplies the summed log-probability by , so every token carries its answer's whole advantage. Qwen's GSPO later normalised the sequence ratio by the answer's length.
What DAPO changes
DAPO (Yu et al.) keeps GRPO's advantage and changes four things for long reasoning answers, each shown in the What DAPO changes on top of GRPO panel:
- Clip-higher. The upper clip bound rises from 1.2 to 1.28, the lower stays at 0.8, so an unlikely token of a good answer can grow further. The authors found that the symmetric clip made the policy's entropy collapse.
- Dynamic sampling. A group whose answers are all right or all wrong teaches nothing; DAPO drops it and samples another problem.
- Token-level loss. One average over every token of the batch, so long answers no longer count less per token.
- Overlong reward shaping. Answers longer than tokens lose reward linearly, down to −1 at the limit.
It also drops GRPO's KL term, and with it the reference model.
One start, one schedule
The member tabs share the model, the problems (GSM8K test rows 1 and 3), the rewards (1 for the right number in the last \boxed{}, 0.5 for any \boxed{}) and the sampling, but not the schedule: GRPO and DAPO take two updates per batch over four rounds, RLOO (TRL's default) one update on each of eight batches, and DAPO's tab adds a third group from other problems to each batch. For this page all three were run again from the same Qwen2.5-0.5B-Instruct weights on GRPO's schedule: 8 answers per problem with the GRPO tab's seed for each round, 2 AdamW updates at , four rounds, and a fifth only sampled. Each keeps its own formula and settings, listed in the What each method uses strip, and every token also records the entropy of the sampling policy's next-token distribution.
So round 1 is the same 16 answers in all three runs. The GRPO run reproduces the GRPO tab exactly, every answer and every log-probability; the DAPO and RLOO runs' round 1 matches their tabs, and RLOO's first update is its tab's first update to the bit. Each loss matches its TRL trainer's own _compute_loss, and TRL's entropy agrees with the recorded one to nats.
What the runs show
Advantages. In round 1 two of the eight answers to row 1 are right. GRPO gives a right, boxed answer and a wrong one without a box −0.90; RLOO gives them +1.07 and −0.64, 0.712 times as much ( times the std, 0.623). DAPO's match GRPO's except where the overlong penalty applies: answer #6, 264 tokens long, loses 0.125, and its advantage falls from −0.10 to −0.27.
Ratios and clipping. On each round's second update GRPO clipped 11.6%, 6.1%, 3.2% and 3.4% of its tokens and DAPO 11.1%, 4.8%, 3.2% and 4.0%. DAPO's higher bound let 21, 16, 21 and 14 positive-advantage tokens keep growing between 1.2 and 1.28. RLOO's sequence ratio was clipped for 100%, 81%, 100% and 44% of its answers: after one AdamW step the average token had moved 0.14 nats but the median answer 19.9. On updates 2 and 6 every answer was clipped, so those updates had a gradient of exactly 0. Judged per answer, GRPO's own updates would have been clipped about as often: 100%, 94%, 88% and 100% of its answers.
GRPO's KL term. At GRPO's second update one token of row 3's answer #5 had fallen 9.3 nats below . The k3 estimate's gradient, , gave that token ten times the weight of the whole clipped surrogate, and the gradient norm jumped from 4.2 to 486 (DAPO 2.24, RLOO 0).
Entropy. On the same round-1 answers, the mean next-token entropy went from 0.321 nats to 0.303 under GRPO, up to 0.375 under DAPO and down to 0.228 under RLOO; on each run's own samples, to 0.295, 0.328 and 0.172. That is the direction the DAPO paper reports for clip-higher, but DAPO here also drops the KL term and averages per token, so this run cannot say which change did it.
Reward and length. The mean reward rose from 0.594 to 1.063 (GRPO), 1.219 (DAPO) and 1.063 (RLOO), a few right answers apart (one more of 16 adds 0.0625); the RLOO tab, one update per batch, reached 1.5. Answers grew from 206 tokens to 235–238 in all three, and wrong answers were mostly longer than right ones: 263 against 203 tokens in DAPO's round 2. So DAPO's token-level loss was +0.153 at the start of round 2, before the policy had moved, where GRPO's per-answer average of the same tokens is exactly 0.
Dynamic sampling. Rows 1 and 3 never gave DAPO an all-right or all-wrong group, so nothing was dropped here; RLOO trained on one (row 1 in round 4, 8 of 8 right) with every advantage 0. The DAPO tab's own run dropped row 2 in round 2 and row 7 in round 4.
What this comparison cannot say
Eight updates on two problems, 16 answers a round and one seed show how each estimator treats the same answers, not which method trains better. Each method also differs in more than one switch: DAPO changes four things and drops the KL term together, and RLOO runs here with two updates per batch, not its usual one. Each member tab shows its own run token by token.
Papers
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models GRPO: PPO's clipped objective with the group's mean and standard deviation as the baseline, no value model, and a KL term to the reference.
- DAPO: An Open-Source LLM Reinforcement Learning System at Scale DAPO: clip-higher, dynamic sampling, a token-level loss and overlong reward shaping on top of GRPO, against entropy collapse and length bias.
- Back to Basics: Revisiting REINFORCE Style Optimization for Learning from Human Feedback in LLMs RLOO for language models: the whole answer as one action and the leave-one-out baseline, matching or beating PPO.
- Buy 4 REINFORCE Samples, Get a Baseline for Free! Introduces the leave-one-out baseline for several samples per input, unbiased with no learned critic.
- Proximal Policy Optimization Algorithms The clipped probability-ratio surrogate all three methods use, per token in GRPO and DAPO, per answer in RLOO.
- Understanding R1-Zero-Like Training: A Critical Perspective Dr. GRPO: shows that GRPO's per-answer length normalisation and division by the group std bias it towards long wrong answers and towards very easy or very hard problems.
- Group Sequence Policy Optimization GSPO: a length-normalised sequence-level ratio and clip instead of per-token ones, the direction RLOO's whole-answer ratio points.
- Qwen2.5 Technical Report Qwen2.5-0.5B-Instruct, the starting policy of all three runs.