Zenaique

Predict what changes when you raise GRPO group size from 4 to 16

MCQ·Medium·4.0 · 0·~1 min·Asked atCohereJpmorganReplicate
Attempt it
TL;DR

Option A. Larger groups produce a lower-variance group baseline and more reliable advantage estimates, paid linearly in rollout compute per prompt.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine you want to know if a kid did well on a quiz by comparing them to their classmates. With four classmates, one weird score swings the average a lot, so the comparison is noisy. With sixteen classmates, the average is much steadier and the kid's score is easier to place fairly. That is GRPO's group baseline: more rollouts make the per-prompt average steadier, so each rollout's relative ranking is more trustworthy. The cost is that you have to grade sixteen quizzes instead of four every round.

Key concepts

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

GRPO is built around one design choice: replace PPO's value network with a baseline computed from the rollout group itself. That choice halves the trained-parameter footprint and removes a long list of engineering headaches. It also makes group size a first-class hyperparameter, because the baseline's quality is determined by how many rollouts you average over.

The question asks what changes when you raise group size from 4 to 16. The right answer is the one that names the variance-reduction effect and the linear compute cost. The other options test for common misconceptions: that GRPO has a value network, that KL scales with group size, or that more rollouts somehow fix mode collapse. None of these are true.

This deep dive walks through the variance argument quantitatively, why the distractors fail, and how production teams choose G in real recipes.

Why the group is GRPO's baseline, and what variance scaling means

GRPO computes each rollout's advantage by subtracting the group mean reward and dividing by the group standard deviation:

Ai=rirˉσ+ϵA_i = \frac{r_i - \bar{r}}{\sigma + \epsilon}

The statistic r-bar is a sample mean of G independent rewards. Its standard error scales as the population standard deviation divided by sqrt(G). Going from G=4 to G=16 doubles sqrt(G), which halves the standard error of the baseline estimate. The standard deviation estimate similarly improves, with the joint effect of giving each advantage A_i a substantially smaller estimation-noise floor.

Why this matters for the gradient: the policy-gradient direction is a sum of A_i times log-probability gradients over rollouts. Noise in A_i becomes noise in the gradient. Halving the baseline noise reduces the gradient variance noticeably, especially for prompts where the underlying reward distribution is wide. Lower-variance gradients mean more reliable updates per step, which usually shows up as faster convergence per token of training compute.

The cost is linear: 4x rollouts and 4x reward-model evaluations per prompt going from G=4 to G=16. Whether the variance reduction is worth the rollout cost depends on the regime; in modern RLVR with cheap rule-based rewards, the answer is usually yes.

The variance argument is mechanical. The GRPO baseline is μg=1Giri\mu_g = \frac{1}{G} \sum_i r_i, an empirical mean over G samples. Variance of that mean is σ2/G\sigma^2/G where σ2\sigma^2 is the reward variance per rollout. Quadrupling G (4 to 16) cuts baseline variance to one-quarter, which translates into roughly halved standard error on the advantage estimate. Halved gradient noise means you can take twice the effective step size at the same training stability, or hold step size constant and converge faster.

Why option B is wrong — KL is independent of group size
Why options C and D are wrong — value network and mode collapse
How production recipes choose G in practice
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • DeepSeek-R1's GRPO runs use group sizes in the 8-16 range to balance variance reduction against rollout cost on math tasks
  • Kimi K1.5 reports its RL group size as a primary tuning lever for stability of long-context reasoning training
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QWould you ever use G=2, and what does the algorithm degenerate to at that limit?
A

Discuss how G=2 collapses GRPO toward pairwise-contrast advantages, similar in spirit to DPO-style pair training, with much higher gradient variance per step.

1 more follow-up an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Believing GRPO uses a value network like PPO, or that larger groups change the KL term or guarantee response diversity.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • How GRPO computes advantages from group mean and std

  • Why GRPO has no value network

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
What is RLHF, and why is it used after pretraining?
MCQ·Easy