
GRPO, GSPO, and CISPO in simple words
Three reinforcement learning algorithms for language models. They start from the same group reward, but they apply the importance ratio and clipping in different ways.
Reinforcement learning (RL) trains a language model from a reward. In many tasks, a test gives the reward. The code passes the test, or the math answer is correct.
The common problem
Proximal Policy Optimization (PPO) is the older standard algorithm. PPO uses a second model, the critic. The critic estimates the value of each token.
The critic is large. It costs memory and compute. But in many language model tasks, only the complete sequence gets a reward. No token gets its own reward.
The three algorithms in this post use a different start.
- The old policy samples a group of sequences for one prompt.
- A reward function gives one reward to each complete sequence.
- The algorithm compares each reward with the group mean.
- A sequence above the group mean gets a positive advantage.
- A sequence below the group mean gets a negative advantage.
- The update increases the probability of sequences with a positive advantage.
- The update decreases the probability of sequences with a negative advantage.
This group comparison replaces the critic. No second model must estimate the value of each token.
One limit remains. The new policy must not move too far from the old policy in one step. The importance ratio and clipping control that step. The importance ratio is the token probability under the new policy divided by the token probability under the old policy.
1. GRPO: one ratio for each token
Group Relative Policy Optimization (GRPO) comes from DeepSeek. DeepSeek used it in DeepSeekMath and later in the reasoning training of DeepSeek-R1.
How GRPO works
Take one prompt. The old policy samples a group of sequences, for example eight sequences. A rule or a test gives each sequence a reward.
GRPO then normalizes the rewards inside the group. This step gives the advantage of each sequence.
For example, four sequences get rewards of 1, 0, 1, and 0. The group mean is 0.5, and the group standard deviation is 0.5. The advantages are +1, −1, +1, and −1.
Every token in one sequence receives the same advantage. The update increases the probability of each token in a good sequence. The update decreases the probability of each token in a bad sequence.
For each token, GRPO calculates an importance ratio. It clips each ratio to a narrow interval around 1, for example 0.8 to 1.2. The original GRPO also adds a KL penalty against a reference policy. That penalty keeps the new policy near a trusted model.
What GRPO does well
GRPO needs no critic, so training uses less memory. It also needs no learned value for each token. This makes it a good fit for verifiable rewards, such as unit tests and exact math answers.
Many training libraries support GRPO. It is the standard start point for this family of algorithms.
Where GRPO is weak
The group gives no signal when all rewards in the group are equal. If all eight sequences fail, every advantage is zero. If all eight sequences pass, every advantage is also zero.
The group also has a cost. The policy must sample many sequences for each prompt, so generation takes much of the training time.
The credit assignment is coarse. A long sequence can fail because of one wrong token, but every token in that sequence gets a negative advantage.
Two more problems sit in the update itself. The reward evaluates the complete sequence, but the clipping acts on each token alone. Those two units do not match. And a token outside the clipping interval can get zero gradient, so that token stops learning for that step.
GSPO fixes the first update problem. CISPO fixes the second update problem.
2. GSPO: one ratio for the complete sequence
Group Sequence Policy Optimization (GSPO) comes from the Qwen team. The Qwen team built it after GRPO training became unstable on large Mixture of Experts (MoE) models.
How GSPO works
GSPO keeps the group, the rewards, and the advantages of GRPO. It changes only the importance ratio.
A sequence receives its reward as one unit. GSPO therefore defines the importance ratio for that same unit: the complete sequence.
First, GSPO calculates the log-probability change of each token. Then it averages those changes over all tokens in the sequence. Then it converts that average into one sequence ratio. In short, the sequence ratio is the geometric mean of the token ratios.
The length normalization is necessary. A raw product over 1,000 tokens becomes extremely large or extremely small. The average keeps the ratio on a usable scale.
GSPO clips that one sequence ratio. Then it applies the same clipped ratio to every token in the sequence. The clipping interval for a sequence ratio is much smaller than 0.8 to 1.2, so you must tune it again. Do not copy the GRPO value.
What GSPO does well
Now the reward and the importance ratio have the same unit. Both act on the sequence.
One average is also less noisy than many single token ratios. Individual token ratios can jump from step to step, and those jumps add noise to the GRPO update. The sequence ratio changes more smoothly, so the training is more stable.
This stability matters most for long sequences and for MoE models. In an MoE model, a small policy change can change the selected experts for a token. The token ratio then jumps, even when the sequence as a whole changed only a little. Qwen reports that GSPO trains large MoE models where token-level GRPO can collapse.
Where GSPO is weak
GSPO cannot clip one token alone. Clipping acts on the whole sequence at one time.
The average can also hide one large token change. For example, one token has a ratio of 3, and 199 tokens have a ratio of 1. The sequence ratio is about 1.006, so clipping does not act. GRPO would clip that one token directly.
The credit assignment stays coarse. Every token still receives the same advantage, as in GRPO.
3. CISPO: clipping that keeps the gradient
Clipped IS-weight Policy Optimization (CISPO) comes from MiniMax. MiniMax built it for MiniMax-M1, a model trained with long chain-of-thought sequences. Here, IS means importance sampling.
How CISPO works
CISPO does not change the advantage. You can use CISPO with the same group advantages as GRPO. CISPO changes only the loss of each token.
It keeps one importance ratio for each token. It changes the clipping, not the unit.
In GRPO, clipping acts inside the objective. When a token ratio moves outside the clipping interval, the gradient of that token can become zero. The token then contributes nothing to that update.
CISPO moves the clipping to a weight in front of the loss. It clips that importance-sampling weight, and it stops the gradient through the weight. But it keeps the gradient through the log probability of the token.
A small example shows the difference. A token in a good sequence has a ratio of 1.5, and the upper clipping limit is 1.2. GRPO gives that token a gradient of zero, because the ratio already moved too far in the good direction. CISPO keeps the gradient, but it multiplies the gradient by the fixed weight 1.2, not by 1.5.
The weight has a limit. The learning signal does not stop.
What CISPO does well
The tokens that GRPO clips first are often the important tokens. A token with a low probability under the old policy can show a large ratio change after one update. Tokens that start a correction, a check, or a new reasoning step often have that low probability. MiniMax gives words such as "wait" and "however" as examples.
GRPO can remove exactly those tokens from the update. CISPO keeps them, so each sequence gives more learning signal. MiniMax reports that CISPO learns faster than GRPO and DAPO on its training tasks, and that it keeps the rare tokens in the update.
CISPO also stays at the token level. It can still limit one token without a limit on the whole sequence.
Where CISPO is weak
No token is dropped, and that includes noisy tokens. A bad or stale sequence still contributes to every update, only with a clipped weight. You must therefore watch the clip range and the age of the sampled data with care.
CISPO also does not fix the unit mismatch of GRPO. The reward still acts on the sequence, and the ratio still acts on the token.
And like GRPO and GSPO, CISPO gives every token in a sequence the same advantage. The credit assignment stays coarse.
The three algorithms side by side
| Question | GRPO | GSPO | CISPO |
|---|---|---|---|
| Unit of the importance ratio | Token | Sequence | Token |
| What does clipping limit? | The token objective | The sequence objective | The importance-sampling weight |
| Gradient outside the interval | The token gradient can become zero | All tokens in the sequence get the same clipped ratio | The gradient stays, with the clipped weight |
| Main gain | No critic | A more stable sequence update | No token is dropped by clipping |
| Main weakness | No signal when all group rewards are equal | One average can hide one large token change | Noisy tokens also keep their gradient |
Which algorithm do you use?
Use GRPO when you want the standard method with wide library support. Count the groups in which all rewards are equal. A high count means the prompts are too easy or too hard for the current policy, and a larger group or harder prompts can help.
Consider GSPO when training on long sequences is not stable. Consider it also for MoE models with noisy token ratios. Watch the sequence ratio, and tune its clipping interval as a separate hyperparameter.
Consider CISPO when clipping drops many tokens from the update. It keeps the gradient of those tokens in the loss. Watch the fraction of clipped tokens and the importance-sampling weights during training.
Implementation details and hyperparameters also change the result. The name of the algorithm is only one part of the training system.
In short: GRPO compares sequences in a group and updates each token. GSPO moves the importance ratio from the token to the sequence. CISPO keeps the token gradient after clipping.
Sources
- Shao et al., DeepSeekMath and GRPO, 2024
- MiniMax, MiniMax-M1 and CISPO, 2025
- Qwen Team, GSPO, 2025
